Erase issue

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

Erase issue

656 Views
ganeshvaka2
Contributor II

Hello NXP Community,

In Our, Controller S32k116 has CAN Bootloader. As per the Customer's request we to implement LIN Bootloader for S32k16 same as CAn Bootloader. In LIN Bootloader we facing an issue with Erase memory ., While erases memory it's going to Hardfault handler or Sigint or SigTrap.

CAN Bootloader: Erase Functionality is Working FIne 
LIN Bootloader: Getting SIGINT or Sigtrap ,
If anyone has any idea please let me know 
Thank you 

0 Kudos
Reply
1 Reply

645 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,
most likely, this is caused by read-while-write error. It is not allowed to access program flash while the program flash is being programmed or erased. The code can be executed only from RAM or from data flash. If you use SDK functions, the flash commands are launched from RAM. The interrupts should be either disabled or all interrupt resources should be moved to RAM or to data flash in case you need to handle interrupts during the flash operations.
Regards,
Lukas

0 Kudos
Reply