Hi,
I'm writing a script to update some fuses in the NVM USER AREA of a Microchip SAME54 Microcontroller.
The script reads some values, changes some flags, erases the User Area page then fails on the write back.
It fails with the following error message on the SEGGER J-Flash:
- ERROR: Error while evaluating J-Link script file: Error while compiling. Line 103, column 62:
JLINK_MEM_WriteU32(0x00804000 + n * 4, NVM[n * 4]);
^
Internal: Destination register not allocated
Is this because I'm trying to write to flash and the JLINK_MEM_WriteU32() function doesn't support it?
Is there a method for writing to flash in J-Link Script?
Thanks.
Regards, Mike.
I'm writing a script to update some fuses in the NVM USER AREA of a Microchip SAME54 Microcontroller.
The script reads some values, changes some flags, erases the User Area page then fails on the write back.
It fails with the following error message on the SEGGER J-Flash:
- ERROR: Error while evaluating J-Link script file: Error while compiling. Line 103, column 62:
JLINK_MEM_WriteU32(0x00804000 + n * 4, NVM[n * 4]);
^
Internal: Destination register not allocated
Is this because I'm trying to write to flash and the JLINK_MEM_WriteU32() function doesn't support it?
Is there a method for writing to flash in J-Link Script?
Thanks.
Regards, Mike.