I have several question about OpenFlashLoader
1. I created FLM file for my MCU in KEIL and add my device in JLinkDevices.xml. J-Flash succesfully connect to my MCU.
But when I try to perfrom any operation I see:
- ERROR: Can not read register 0 (R0) while CPU is running
Can not read register 1 (R1) while CPU is running
Can not read register 2 (R2) while CPU is running
Can not read register 3 (R3) while CPU is running
Can not read register 4 (R4) while CPU is running
Can not read register 5 (R5) while CPU is running
Can not read register 6 (R6) while CPU is running
Can not read register 7 (R7) while CPU is running
Can not read register 10 (R8_USR) while CPU is running
Can not read register 11 (R9_USR) while CPU is running
Can not read register 12 (R10_USR) while CPU is running
Can not read register 13 (R11_USR) while CPU is running
Can not read register 14 (R12_USR) while CPU is running
Can not read register 15 (R13_USR) while CPU is running
Can not read register 16 (R14_USR) while CPU is running
Can not read register 9 (R15 (PC)) while CPU is running
Can not read register 8 (CPSR) while CPU is running
Can not read register 30 (R14_ABT) while CPU is running
Can not read register 28 (SPSR_ABT) while CPU is running
2. In KEIL project we don't use startup file, it means we didn't initialize stack of MCU. It mean we can't use local variables and fucntions calls inside openflashloader functions?
No calls from:
int Init(U32 Addr, U32 Freq, U32 Func)
int UnInit(U32 Func)int SEGGER_OPEN_Erase(U32 SectorAddr, U32 SectorIndex, U32 NumSectors)and other functionsThanks in advance!
1. I created FLM file for my MCU in KEIL and add my device in JLinkDevices.xml. J-Flash succesfully connect to my MCU.
But when I try to perfrom any operation I see:
- ERROR: Can not read register 0 (R0) while CPU is running
Can not read register 1 (R1) while CPU is running
Can not read register 2 (R2) while CPU is running
Can not read register 3 (R3) while CPU is running
Can not read register 4 (R4) while CPU is running
Can not read register 5 (R5) while CPU is running
Can not read register 6 (R6) while CPU is running
Can not read register 7 (R7) while CPU is running
Can not read register 10 (R8_USR) while CPU is running
Can not read register 11 (R9_USR) while CPU is running
Can not read register 12 (R10_USR) while CPU is running
Can not read register 13 (R11_USR) while CPU is running
Can not read register 14 (R12_USR) while CPU is running
Can not read register 15 (R13_USR) while CPU is running
Can not read register 16 (R14_USR) while CPU is running
Can not read register 9 (R15 (PC)) while CPU is running
Can not read register 8 (CPSR) while CPU is running
Can not read register 30 (R14_ABT) while CPU is running
Can not read register 28 (SPSR_ABT) while CPU is running
2. In KEIL project we don't use startup file, it means we didn't initialize stack of MCU. It mean we can't use local variables and fucntions calls inside openflashloader functions?
No calls from:
int Init(U32 Addr, U32 Freq, U32 Func)
int UnInit(U32 Func)int SEGGER_OPEN_Erase(U32 SectorAddr, U32 SectorIndex, U32 NumSectors)and other functionsThanks in advance!