2022-03-29 08:52 AM
Hello all,
I am used to the regular MCUs STM32Fx families where I'm used that the main.h has all the #defines of the GPIOs and other peripherals.
I'm now using STM32MP1 generating code for CM4 and noticed it is generate any #define information.
also, it is not initializing GPIOs state.
Why is it generating no initialization of GPIOs or other user label #defines?
Solved! Go to Solution.
2022-03-29 09:33 AM
GPIO pin context is assigned at the pin level.
Right click the pin in pinout view -> Pin Reservation -> Cortex M4
2022-03-29 09:18 AM
Are they assigned to the CM4 core? Attach your IOC.
2022-03-29 09:22 AM
2022-03-29 09:24 AM
It gives me no option to select the target for GPIOs:
2022-03-29 09:33 AM
GPIO pin context is assigned at the pin level.
Right click the pin in pinout view -> Pin Reservation -> Cortex M4
2022-03-29 10:04 AM
Thanks, that was a new (hidden) option for me!
2023-05-10 06:38 AM
But there are still no #defines in main.h or anywhere
but now there is code generation for GPIO.
I tried with and without RESMGR_UTILITY.
2023-05-22 08:45 AM
I agree, I still have the same issue using the latest version of CubeMX. I working on a project using STM32MP157C-DK2 and the user labels are not correctly generated, except for a few of them (~30 % are correctly generated in main.h).