Just starting to use STM32CubeMX and Atollic TrueSTUDIO to code for STM32L011.
One thing I noticed is that if I made any changes to the project configuration in STM32CubeMX - they will automatically appears in the
main.c file without damaging to the code that I added to the
However this can not be applied to auxilary files, like
system_stm32l0xx.c in my case where I wanted to put my ADC interrupt service routine.
My questions are:
- How to protect my code from changing after I made the changes with STM32CubeMX?
- Why is there a different behaviour with
main.cand auxilary files?
- Is there a better way to handle changes to the project configuration with STM32CubeMX? May be I need to split up the project into more files?