Flash Operations on MPC5775B

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

Flash Operations on MPC5775B

1,185 Views
Bonatto
Contributor I

Hello everyone, 

I'm writing a bootloader code for the MPC5775B microcontroller, where I plan to keep the bootloader code at the 0x008000000 address and the application code at the 0x00840000 address (as suggested by the manual). However, I'm currently facing some issues regarding the flash operations in the application region.


I used the demo codes "flash_program_erase_mpc5777c" and "pass_lock_unlock_mpc5777c" as an example.

With these codes I'm able to erase, program, verify and execute a checksum for the low, mid and high block types, without any problems. But when I try to execute one of these functions in any of the large block types (256k), the code always get stuck with the error: No source available for "SWT1_IRQHandler() at 0x811800" , even though I did not configure the watchdog at the startup.

The demo code is very simple and straighforward so what would I be missing?

0 Kudos
Reply
1 Reply

1,159 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

: No source available for "SWT1_IRQHandler()

That simply points that your SWT has expired. Make sure you disable interrupts before programming flash.

even though I did not configure the watchdog at the startup.

I cant comment here, but since the handler is called and is missing I expect that your SWTA_IR[TIF] is set due to watchdog expiration:

 
 
 
 

Note that debugger is disabling SWT on attach, so you wont see it in debugger enabled.

Best regards,

Peter

0 Kudos
Reply