Hi,
I bought and use JLink EDU mini to debug my code on STM32. I run JLinkGDBServerExe and use arm-none-eabi-gdb to debug my code. When i load the binary code to the target chip, the JLinkGDBServer showed me:
....
Downloading 4168 bytes @ address 0x081D4410
Downloading 304 bytes @ address 0x081D5458
Downloading 8 bytes @ address 0x081D5588
Downloading 4777 bytes @ address 0x081D5590
ERROR: Failed to prepare for programming.
Could not preserve target memory.
Writing register (PC = 0x 8008000)
And the message in JLinkGDBServer.log file is as follows:
.....
02-00000000-00-01289988-003B: T7EF0B700 1289:992.990 JLINK_WriteReg(R15 (PC), 0x08008000)
02-00000000-00-01289988-003A: T7EF0B700 1289:993.153 CPU_ReadMem(4 bytes @ 0xE000ED90)
02-00000000-00-01289989-0043: T7EF0B700 1289:993.449 -- --------------------------------------
02-00000000-00-01289989-0072: T7EF0B700 1289:993.462 Flash bank @ 0x08000000: Default: L2 verify disabled because algorithm performs L1 verify
02-00000000-00-01289989-004C: T7EF0B700 1289:993.469 -- Start of determining dirty areas in flash cache
02-00000000-00-01289989-003B: T7EF0B700 1289:993.501 -- End of determining dirty areas
02-00000000-00-01289989-0041: T7EF0B700 1289:993.507 -- Start of preparing flash programming
02-00000000-00-01289989-0032: T7EF0B700 1289:993.514 -- Calculating RAM usage
02-00000000-00-01289989-0034: T7EF0B700 1289:993.526 -- RAM usage = 10260 Bytes
02-00000000-00-01289989-0035: T7EF0B700 1289:993.533 -- Preserving CPU registers
02-00000000-00-01289989-002D: T7EF0B700 1289:993.547 -- Preparing memory
02-00000000-00-01289989-002D: T7EF0B700 1289:993.553 -- Preparing target
02-00000000-00-01289989-0053: T7EF0B700 1289:994.059 -- Preserving target RAM temporarily used for programming
02-00000000-00-01289998-0019: T7EF0B700 1290:002.865
02-00000000-00-01289998-000F: ***** Error:
02-00000000-00-01289998-003B: T7EF0B700 1290:002.905 Failed to prepare for programming.
02-00000000-00-01289998-0021: Could not preserve target memory.
02-00000000-00-01289998-003F: T7EF0B700 1290:002.917 -- End of preparing flash programming
02-00000000-00-01290000-002B: T7EF0B700 1290:004.791 - 11.804ms returns 1
03-00000000-00-01290000-004C: ERROR: Failed to prepare for programming.
Could not preserve target memory.
Could you please tell me, do i need to have any other license to download code to flash ? or anything wrong ?
Thank you in advane.
Feng WJ
I bought and use JLink EDU mini to debug my code on STM32. I run JLinkGDBServerExe and use arm-none-eabi-gdb to debug my code. When i load the binary code to the target chip, the JLinkGDBServer showed me:
....
Downloading 4168 bytes @ address 0x081D4410
Downloading 304 bytes @ address 0x081D5458
Downloading 8 bytes @ address 0x081D5588
Downloading 4777 bytes @ address 0x081D5590
ERROR: Failed to prepare for programming.
Could not preserve target memory.
Writing register (PC = 0x 8008000)
And the message in JLinkGDBServer.log file is as follows:
.....
02-00000000-00-01289988-003B: T7EF0B700 1289:992.990 JLINK_WriteReg(R15 (PC), 0x08008000)
02-00000000-00-01289988-003A: T7EF0B700 1289:993.153 CPU_ReadMem(4 bytes @ 0xE000ED90)
02-00000000-00-01289989-0043: T7EF0B700 1289:993.449 -- --------------------------------------
02-00000000-00-01289989-0072: T7EF0B700 1289:993.462 Flash bank @ 0x08000000: Default: L2 verify disabled because algorithm performs L1 verify
02-00000000-00-01289989-004C: T7EF0B700 1289:993.469 -- Start of determining dirty areas in flash cache
02-00000000-00-01289989-003B: T7EF0B700 1289:993.501 -- End of determining dirty areas
02-00000000-00-01289989-0041: T7EF0B700 1289:993.507 -- Start of preparing flash programming
02-00000000-00-01289989-0032: T7EF0B700 1289:993.514 -- Calculating RAM usage
02-00000000-00-01289989-0034: T7EF0B700 1289:993.526 -- RAM usage = 10260 Bytes
02-00000000-00-01289989-0035: T7EF0B700 1289:993.533 -- Preserving CPU registers
02-00000000-00-01289989-002D: T7EF0B700 1289:993.547 -- Preparing memory
02-00000000-00-01289989-002D: T7EF0B700 1289:993.553 -- Preparing target
02-00000000-00-01289989-0053: T7EF0B700 1289:994.059 -- Preserving target RAM temporarily used for programming
02-00000000-00-01289998-0019: T7EF0B700 1290:002.865
02-00000000-00-01289998-000F: ***** Error:
02-00000000-00-01289998-003B: T7EF0B700 1290:002.905 Failed to prepare for programming.
02-00000000-00-01289998-0021: Could not preserve target memory.
02-00000000-00-01289998-003F: T7EF0B700 1290:002.917 -- End of preparing flash programming
02-00000000-00-01290000-002B: T7EF0B700 1290:004.791 - 11.804ms returns 1
03-00000000-00-01290000-004C: ERROR: Failed to prepare for programming.
Could not preserve target memory.
Could you please tell me, do i need to have any other license to download code to flash ? or anything wrong ?
Thank you in advane.
Feng WJ