Hello,
this is my first ARM Project so i might be a bit stupid here, bare with me plz
After i connect to the device via SWD everything looks OK but as soon as i start programming i get this error "Could not preserve target memory.".
What does it mean?
Display All
this is my first ARM Project so i might be a bit stupid here, bare with me plz
After i connect to the device via SWD everything looks OK but as soon as i start programming i get this error "Could not preserve target memory.".
What does it mean?
Source Code
- J-Link>connect
- Device "MK20DN512XXX10" selected.
- Connecting to target via SWD
- InitTarget()
- Found SW-DP with ID 0x2BA01477
- AP map detection skipped. User manually configured AP map.
- AP[0]: AHB-AP (IDR: Not set)
- AP[0]: Core found
- AP[0]: AHB-AP ROM base: 0xE00FF000
- CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)
- Found Cortex-M4 r0p1, Little endian.
- FPUnit: 6 code (BP) slots and 2 literal slots
- CoreSight components:
- ROMTbl[0] @ E00FF000
- ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB000 SCS
- ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT
- ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB
- ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM
- ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU
- ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM
- ROMTbl[0][6]: E0042000, CID: B105900D, PID: 003BB907 ETB
- ROMTbl[0][7]: E0043000, CID: B105900D, PID: 001BB908 CSTF
- Cortex-M4 identified.
- J-Link>r
- Reset delay: 0 ms
- Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
- Reset: Halt core after reset via DEMCR.VC_CORERESET.
- Reset: Reset device via AIRCR.SYSRESETREQ.
- AfterResetTarget()
- J-Link>loadfile C:/tmc6130.hex
- Downloading file [C:/tmc6130.hex]...
- ****** Error: Failed to prepare for programming.
- Could not preserve target memory.
- O.K.