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?
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