2021-02-23 01:23 AM
Hi,
I am starting a project for the STM32WL using the SubGhz example application.
I want to change the content of the subghz application to have my own behavior with my own frames sent and received.
If I modify the file and I regenerate code using CubeMX, my functions are deleted and are replaced with the example application (Ping Pong).
Is there a way to exclude some files from code generation ? Or maybe a way to tell CubeMX that my project is no longer just the PingPong example project ?
Regards.
2021-02-23 10:47 AM
In STM32CubeIDE the code is generated from the .ioc file settings. Rename that file or move it out of the project tree, and no more code is generated. Renaming should be done at the file system level (Explorer,mv,..) not the IDE. In the IDE use Refresh (F5) after the changes. I would setup a local git repo before those changes and track all further changes in git.
hth
KnarfB
2021-02-23 11:19 AM
It outputs it's own boilerplate, if you don't want that stop pressing the buttons, and move it elsewhere. Have a scratch project for regeneration, and merge what you want into your main-line code.
2021-02-23 11:22 AM
Real programmers code in binary...
2021-02-24 10:14 AM
The real issue is not "low vs high level", but "working vs broken code". ;)