2024-12-06 09:47 PM
To:
STTwo-32
ST Employee
Dear STTwo-32,
Thank you very much for your reply for the last post (2024-12-02 10:42 PM): STM32H7B3I-DK__Build Errors__MX_I2C4_Init__have void (void)
I have updated the software, and now using the STM32CubeMX V6.13.0, STM32CubeIDE V1.17.0 and the STM32CubeH7 V1.12.0.
So far, do not see the build errors asked before; thank you!
But having the following new build errors, and do not know what to do:
(Copy from the Console of STM32CubeIDE after build)
In file included from C:/STM32H7BWorkshop2020/STM32H7B3I-DK/Drivers/BSP/STM32H7B3I-DK/stm32h7b3i_discovery_ts.c:51,
from <command-line>:
../../Core/Inc/stm32h7b3i_discovery_ts.h:73:37: error: expected unqualified-id before numeric constant
73 | #define TS_I2C_ADDRESS 0x70U
| ^~~~~
../../TouchGFX/target/STM32TouchController.hpp:67:27: note: in expansion of macro 'TS_I2C_ADDRESS'
67 | static const uint16_t TS_I2C_ADDRESS = ((uint16_t)0x70);
| ^~~~~~~~~~~~~~
make: *** [Application/User/TouchGFX/target/generated/subdir.mk:32: Application/User/TouchGFX/target/generated/TouchGFXConfiguration.o] Error 1
make: *** Waiting for unfinished jobs....
"make -j2 all" terminated with exit code 2. Build might be incomplete.
14:13:49 Build Failed. 3 errors, 0 warnings. (took 1m:33s.39ms)
(End of Copy from the Console)
Below are the screenshots:
Could you please advise what to do?
Thank you very much for your attention and support.
With best regards
EY1
2024-12-12 07:03 AM
Hello @EY1 ,
we tested a TouchGFX demo project on our STM32CubeH7 FW V1.12.0, and it works correctly on the STM32H7B3I-DK board. To resolve your issue, please visit the STMicroelectronics website and navigate to the STM32CubeH7 - STM32Cube MCU Package for STM32H7 series. Download the STM32Cube MCU Package for the STM32H7 series, then go to the directory Firmware\Projects\STM32H7B3I-DK\Demonstrations\TouchGFX and follow the example provided. This should help you resolve your problem.
Br
2024-12-16 12:21 AM
Dear MOBEJ,
Thank you very much for your reply, really appreciate.
I have a quick look at the Firmware\Projects\STM32H7B3I-DK\Demonstrations\TouchGFX; and feel that the example provided is difficult to follow, do I just click the .project file inside the STM32CubeIDE folder to start. There is No related step by step detail provided in the readme.txt file, it only mention how to use the STM32CubeProgrammer to use the hex file.
Also this project is about a kitchen room animation, it is far away from what I want to do. My initial goal is to display the data (from an external ADC through SPI to MCU) on the screen, and if possible plot the data as a graph on the screen. (And further more store the data in a SD card, which means need a real time clock.)
Is it possible if we can have a workable step by step details guide to achieve above in STM32H7B3I-DK?
(At least display the data on the screen, as can be seen on a multimeter.)
Thank you very much for your attention and support. It would be good if I could hear your response.
With best regards
EY1