Encountering a Bus Error while flashing software with Trace32.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Encountering a Bus Error while flashing software with Trace32.

1,004 Views
代码织梦师
Contributor II

 _0-1768623495783.png

_1-1768624045416.png

 

Hello, I encountered a bus error when refreshing the S32K324 chip using the trace32 script, as shown in the image above. Could you please tell me what's going on? Is the chip damaged or locked? How can I solve this? 

 

0 Kudos
Reply
3 Replies

901 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Are those 2 different issues? Are you able to perform system up?

From the screenshot it seems like you are able to attach with reset = system.up.

So I see the issue in accessing the memory.

Here’s the short list of memory‑access–related solutions:

  1. Connect under reset to stop the application from blocking memory access.
  2. Full erase before flashing to remove problematic or protected flash content.
  3. Update TRACE32 to avoid flash‑driver memory‑access bugs.
  4. Fix clock configuration (e.g., oscillator mismatch) that can cause BusFault and block memory.
  5. Check C40/HSE security states and perform mass erase if memory access is restricted.
  6. Use HardFault/BusFault handler to identify which memory address is being blocked.
  7. Disable watchdogs early, as resets can interrupt flash algorithms and break memory access.

best regards,

Peter

0 Kudos
Reply

839 Views
代码织梦师
Contributor II

Hello, the first screenshot shows the issue that occurred when I ran the first data.load instruction, and the second screenshot shows the issue that occurred when I ran the second data.load instruction. I have flashed the built-in example routines of TRACE32, and the development version can be flashed normally. Thanks for your support.

0 Kudos
Reply

809 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Ok. It seems that either you are using wrong programming scripts or your flash is corrupt.

Try to separately erase flash, then verify it is erased.

Then program the data into it. Buss errors can be cause by ECC faults in flash.

I am attaching mine programming script so you can test it also.

Best regards,

Peter

0 Kudos
Reply