Hello,
I'm having a problem where sometimes flashing S32K344-WB from TRACE32 fails with: "FLASH algorithm did not execute completely" error. From my investigation it seems that the error is influenced by what is currently flashed, and not what it's going to be flash. The code in question is a Zephyr application, and somehow the problem could be related to the alignment.
For example, if I flash file1.elf(output of readelf attached bellow), next time when I try to flash anything, I got the error. The workaround for this is, after the flashing is stopped by the error, manually execute: `B::FLASH.ReProgram ALL /Erase`, then hit `Go` and run the script again.
But what is interesting, is that if I have file2.elf flashed, then the error does not happen anymore. The difference between file1.elf and file2.elf is just 4 bytes, and I want to understand why this error happens to get a proper fix for the issue.
The flashing driver is the one from Lauterbach, and the status in the parameter block has value 7 for which I didn't find any documentation about it.
已解决! 转到解答。
Hello @b85a540ea,
This issue appears to be related to the flashing process rather than the S32K344 hardware itself. I recommend reaching out directly to Lauterbach support, as they are best positioned to explain the cause of the failure and provide guidance:
https://support.lauterbach.com/
Their team should be able to clarify the meaning of the status code and help troubleshoot the flash algorithm behavior.
Regards,
Daniel