cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE & TouchGFX Configuration on 32F469IDISCOVERY

ScubaBoy
Associate II

Hi

I have followed this guide for the F7 to help setup an equivalent environment for the 32F469IDISCOVERY

https://www.youtube.com/watch?v=VOs2LYO7wSA

However I don't know which pin to select for the LCD reset and which protocol option to use:

0690X000008iOT6QAM.png

Can anyone please advice?

Thanks

Robin

21 REPLIES 21

Right click on the project select 'Properties' and click 'c/c++ build'

0690X000009YHHXQA4.png

What version of CUBEIDE areu using ?

if i change in my IDE it will come like below

13:05:02 **** Incremental Build of configuration Debug for project F4DISCOCubeIDE ****

make -j12 -j4 all 

arm-none-eabi-g++ "../Src/OTM8009TouchController.cpp" -mcpu=cortex-m4 -std=gnu++14 -g3 -DUSE_HAL_DRIVER -DSTM32F469xx -DDEBUG -c -I../TouchGFX/gui/include -I../TouchGFX/generated/fonts/include -I../Drivers/BSP/Components/ts3510 -I../TouchGFX/generated/texts/include -I../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I../TouchGFX/generated/images/include -I../Middlewares/ST/STM32_USB_Host_Library/Class/CDC/Inc -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/ST/TouchGFX/touchgfx/framework/include -I../TouchGFX/generated/gui_generated/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Drivers/BSP/Components/exc7200 -I../Drivers/BSP/Components/stmpe811 -I../Drivers/STM32F4xx_HAL_Driver/Inc -I../Src -I../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I../Middlewares/ST/STM32_USB_Host_Library/Core/Inc -I../Inc -I../Drivers/CMSIS/Include -I../Drivers/BSP/Components/otm8009a -I../Drivers/BSP/Components/Common -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/ampire480272 -I"D:/Work/STM32CUBEIDE/SMT32F7LCDDisco-master/STMF4DISCOCubeIDE/STM32469I-Discovery" -I"D:/Work/STM32CUBEIDE/SMT32F7LCDDisco-master/STMF4DISCOCubeIDE/Drivers/BSP/Components/ft6x06" -O0 -ffunction-sections -fdata-sections -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-use-cxa-atexit -Wall -fstack-usage -MMD -MP -MF"Src/OTM8009TouchController.d" -MT"Src/OTM8009TouchController.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Src/OTM8009TouchController.o"

arm-none-eabi-gcc "../STM32469I-Discovery/stm32469i_discovery_ts.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32F469xx -DDEBUG -c -I../TouchGFX/gui/include -I../TouchGFX/generated/fonts/include -I../Drivers/BSP/Components/ts3510 -I../TouchGFX/generated/texts/include -I../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I../TouchGFX/generated/images/include -I../Middlewares/ST/STM32_USB_Host_Library/Class/CDC/Inc -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/ST/TouchGFX/touchgfx/framework/include -I../TouchGFX/generated/gui_generated/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Drivers/BSP/Components/exc7200 -I../Drivers/BSP/Components/stmpe811 -I../Drivers/STM32F4xx_HAL_Driver/Inc -I../Src -I../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I../Middlewares/ST/STM32_USB_Host_Library/Core/Inc -I../Inc -I../Drivers/CMSIS/Include -I../Drivers/BSP/Components/otm8009a -I../Drivers/BSP/Components/Common -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/ampire480272 -I"D:/Work/STM32CUBEIDE/SMT32F7LCDDisco-master/STMF4DISCOCubeIDE/STM32469I-Discovery" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"STM32469I-Discovery/stm32469i_discovery_ts.d" -MT"STM32469I-Discovery/stm32469i_discovery_ts.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "STM32469I-Discovery/stm32469i_discovery_ts.o"

arm-none-eabi-gcc "../Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32F469xx -DDEBUG -c -I../TouchGFX/gui/include -I../TouchGFX/generated/fonts/include -I../Drivers/BSP/Components/ts3510 -I../TouchGFX/generated/texts/include -I../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I../TouchGFX/generated/images/include -I../Middlewares/ST/STM32_USB_Host_Library/Class/CDC/Inc -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/ST/TouchGFX/touchgfx/framework/include -I../TouchGFX/generated/gui_generated/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Drivers/BSP/Components/exc7200 -I../Drivers/BSP/Components/stmpe811 -I../Drivers/STM32F4xx_HAL_Driver/Inc -I../Src -I../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I../Middlewares/ST/STM32_USB_Host_Library/Core/Inc -I../Inc -I../Drivers/CMSIS/Include -I../Drivers/BSP/Components/otm8009a -I../Drivers/BSP/Components/Common -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/ampire480272 -I"D:/Work/STM32CUBEIDE/SMT32F7LCDDisco-master/STMF4DISCOCubeIDE/STM32469I-Discovery" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.d" -MT"Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.o"

arm-none-eabi-gcc "../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DUSE_HAL_DRIVER -DSTM32F469xx -DDEBUG -c -I../TouchGFX/gui/include -I../TouchGFX/generated/fonts/include -I../Drivers/BSP/Components/ts3510 -I../TouchGFX/generated/texts/include -I../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I../TouchGFX/generated/images/include -I../Middlewares/ST/STM32_USB_Host_Library/Class/CDC/Inc -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/ST/TouchGFX/touchgfx/framework/include -I../TouchGFX/generated/gui_generated/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Drivers/BSP/Components/exc7200 -I../Drivers/BSP/Components/stmpe811 -I../Drivers/STM32F4xx_HAL_Driver/Inc -I../Src -I../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I../Middlewares/ST/STM32_USB_Host_Library/Core/Inc -I../Inc -I../Drivers/CMSIS/Include -I../Drivers/BSP/Components/otm8009a -I../Drivers/BSP/Components/Common -I../Middlewares/Third_Party/FatFs/src -I../Drivers/BSP/Components/ampire480272 -I"D:/Work/STM32CUBEIDE/SMT32F7LCDDisco-master/STMF4DISCOCubeIDE/STM32469I-Discovery" -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.d" -MT"Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.o"

../Src/OTM8009TouchController.cpp: In member function 'virtual void OTM8009TouchController::init()':

../Src/OTM8009TouchController.cpp:19:5: error: 'BSP_TS_Init' was not declared in this scope

   BSP_TS_Init(LCD_GetXSize(), LCD_GetYSize());

   ^~~~~~~~~~~

../Src/OTM8009TouchController.cpp: In member function 'virtual bool OTM8009TouchController::sampleTouch(int32_t&, int32_t&)':

../Src/OTM8009TouchController.cpp:27:5: error: 'TS_StateTypeDef' was not declared in this scope

   TS_StateTypeDef state;

   ^~~~~~~~~~~~~~~

../Src/OTM8009TouchController.cpp:28:24: error: 'state' was not declared in this scope

    BSP_TS_GetState(&state);

            ^~~~~

../Src/OTM8009TouchController.cpp:28:24: note: suggested alternative: 'static'

    BSP_TS_GetState(&state);

            ^~~~~

            static

../Src/OTM8009TouchController.cpp:28:7: error: 'BSP_TS_GetState' was not declared in this scope

    BSP_TS_GetState(&state);

    ^~~~~~~~~~~~~~~

make: *** [Src/subdir.mk:91: Src/OTM8009TouchController.o] Error 1

make: *** Waiting for unfinished jobs....

"make -j12 -j4 all" terminated with exit code 2. Build might be incomplete.

13:05:07 Build Failed. 6 errors, 0 warnings. (took 4s.888ms)

Just to add I've pull the code from GIT and it compiles fine.

Your Env Pls

Like CUBE IDE Version and STM32F4 Cube Firmware Version

CubeIde Version 1.0.0, also have you checked to make sure all include paths have been defined in Path and Symbols dialogue?

MIne CUBE IDE Version 1.0.1 is it make difference ?

My Path Variable0690X000009YKfmQAG.png

@senthil​  Does you cpp paths look like this?

0690X000009YKqQQAW.png

I've upgraded to version 1.0.1 projects builds with out error.

My GNU C++ Paths

0690X000009YKrdQAG.png

@senthil​  Ok, if you right click on 'BSP_TS_GetState' and select 'Open Declaration' does the ide take you to the declaration?