2019-01-15 10:12 AM
Hi,
I tried a simple example today with STM32 Nucleo F103RB and CAN. I only generate Code with CubeMX. I do not add any line. I get a stuff error on my peak CAN if I change the
"ProjectManager.CompilerOptimize=6" to "ProjectManager.CompilerOptimize=0"
=> 0 means no optimization.
So if I use the default value everything works fine so I did not get any stuff error. Dose someone confirm that? Is there anything wrong in the HAL
many thanks
cheers
mathias
2019-01-15 11:42 AM
Usually degrading the compiler optimisation helps debugging as the code is "unfolded". Its time and latency degrades while its memory needs increase. If there are some critical timings in interrupts which are no longer fullfilled when optimisation is off, only way to prove this would be to increase SYSCLK frequency for example.
2019-01-15 11:31 PM
I do not add any Code. It is only the Code from The HAL. So I clearly know what you mean but that is not my problem I think.