Hi,
I am trying to running hse_demoapp_s32k3xx_0_2_6_0 load demo app binary on S32K312EVB-Q172, but Tracer32 shows "stopped by hard fault", and then shows "Flash programming error at around address 0x400000", if I tried the next steps according to HSE_DEMOAPP_S32K3XX_0_2_6_0 Readme, the tracer32 was stuck. I don't know what caused this problem.
Hi @yumi
It looks like some application is already programmed in the flash memory. The problem is that the scripts in HSE DEMOAPP use "sys.attach" only for some reasons. If some application is already loaded, it can cause some unwanted interference. There's simple solution - just erase the flash at the beginning. You can use something like this:
DO ~~/demo/arm/flash/s32k3 PREPAREONLY CPU=S32K344-M7
flash.erase.all
I believe it will work after that.
And if I can remember, there could be one more catch - it may be necessary to update the paths in program_app.cmm script. Just check if the paths to elf files are correct.
Regards,
Lukas