Skip to main content
NOLFF.1
Associate
February 23, 2021
Question

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

  • February 23, 2021
  • 3 replies
  • 1028 views

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.

3 replies

KnarfB
Super User
February 23, 2021

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
February 23, 2021

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 VenmoUp vote any posts that you find helpful, it shows what's working..
KnarfB
Super User
February 23, 2021

Real programmers code in binary...

Piranha
Principal III
February 24, 2021

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