Skip to main content
NOLFF.1
Associate
Feb 23, 2021 9:23 AM UTC
Question

How to develop your own application starting from example application (and not template project) ?

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.

This topic has been closed for replies.

4 replies

KnarfB
Super User
Feb 23, 2021 6:47 PM UTC

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

Tesla DeLorean
Guru
Feb 23, 2021 7:19 PM UTC

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.

0693W000007ZGjUQAW.jpg

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
KnarfB
Super User
Feb 23, 2021 7:22 PM UTC

Real programmers code in binary...

Piranha
Principal III
Feb 24, 2021 6:14 PM UTC

The real issue is not "low vs high level", but "working vs broken code". ;)