Hi All,
A quick heads-up on a problem, which seems to be generally unexplained.
Just when I thought I’d got the bare bones of my project working (ESP32, TFT touchscreen and SD card) I noticed a run-time error on the serial monitor …
*[esp32-hal-cpu.c:110] addApbChangeCallback(): duplicate func=0x400d9404 arg=0x3ffbdc50*
I’m using TFT_eSPSI and SD libraries.
I appears the 2 libraries conflict in some way.
Google found a few references regarding the #define USE_HSPI_PORT line in User_Setup.h , but didn’t work for me.
I’ve gone back to a previous route, using build_flags in Platformio.ini.
It appears the bottom line here has stopped the error.
Might help someone.
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
[env:nodemcu-32s]
platform = espressif32
board = nodemcu-32s
framework = arduino
monitor_speed = 115200
lib_deps =
bodmer/TFT_eSPI@^2.5.43
paulstoffregen/XPT2046_Touchscreen
SD
lib_ignore = AzureIoTHubMQTTClient //=> this one also has an SD.h file which caused trouble earlier
build_flags =
-D USER_SETUP_LOADED
-D ILI9488_DRIVER
-D TFT_WIDTH=320
-D TFT_HEIGHT=480
-D TFT_CS=15
-D TFT_RST=4
-D TFT_DC=2
-D TFT_MOSI=23
-D TFT_SCLK=18
-D TFT_MISO=19
-D TOUCH_CLK=18
-D TOUCH_CS=5
-D TOUCH_DIN=23
-D TOUCH_DO=19
-D SD_CS=22
-D SD_MISO=19
-D SD_CLK=18
-D SD_MOSI=23
-D LOAD_GLCD=1
-D LOAD_FONT2
-D LOAD_FONT3
-D LOAD_FONT4
-D LOAD_FONT6
-D LOAD_FONT7
-D LOAD_FONT8
-D LOAD_GFXFF
-D SMOOTH_FONT
-D SPI_FREQUENCY=27000000
-D USE_HSPI_PORT