2020-10-19 10:42 PM
Hello,
I found in CubeIDE awesome feature, where it generate peripheral initialization as pair of ".c/.h" files per peripheral. So far, it works perfectly, but I noticed, that I can't anymore define user-code in some functions. For example:
This is how FMC Init function looks like, when everything is in main.c
But when is code generated in separate .c / .h file, it doesn't have user-code regions:
So, where should I put my code now? I know that I can make my own functions in those files and call them from main.c, but having user-code regions would be most elegant solution. Also, the other functions like "HAL_SDRAM_MspInit" have user code regions. Any ideas?
Thanks.
EDIT: Also, fmc.c miss USER CODE 1 region :(
2020-10-20 12:23 AM
Hello @Despair1337
Thanks for your feedback,
Could you please share some details about the part number used and the CubeMX/CubeIDE version (or share your ioc file)?
Thanks
Khouloud
2020-10-20 12:32 AM
2020-10-20 01:59 AM
Issue reproduced @Despair1337 and it will be fixed.
Thanks for bringing this to our attention.
Regards,
Khouloud