Hi @lpcxpresso_supp,
I think that I discovered a workaround to successfully flash the MCU even with the Relase afx.
Here the procedure I used to do it:
- Build the project as Debug or Release selecting the type from the hammer icon on the toolbar (see picture build_debug_release).
- Open the GUI Flash Tool (from the toolbar).
- Leave the File to program to its default path.
- Press Run to flash the MCU.
When I went through the process after selecting the Debug build I could successfully flash the unit.
When I went through the process after selecting the Release build I couldn't flash the unit.
Then this morning I though: What about if I use the Debug build "procedure", but before flash the unit I chose the release build? Doing that I've been able to successfully flash the unit!
So the workaround process is:
- Build the project as Debug selecting the type from the hammer icon on the toolbar (see picture build_debug_release).
- Open the GUI Flash Tool (from the toolbar).
- Change the File to program to the Release path (see picture flash_workaround).
- Press Run to flash the MCU.
Here the GUI Flash Tool Console output:
Executing flash operation 'Program' (Program file into flash: low_level_clutchTrainer.axf) - Mon Jan 23 09:59:34 CET 2023
Checking MCU info...
Scanning for targets...
Executing flash action...
MCUXpresso IDE RedlinkMulti Driver v11.6 (Jul 12 2022 16:58:24 - crt_emu_cm_redlink.exe build 4)
( 0) Reading remote configuration
Wc(03). No cache support.
Found part description in XML file LPC112x.xml
( 5) Remote configuration complete
Reconnected to existing LinkServer process.
Probe Firmware: LPC-LINK2 CMSIS-DAP V5.361 (NXP Semiconductors)
Serial Number: JQAWBQBR
VID:PID: 1FC9:0090
USB Path: \\?\hid#vid_1fc9&pid_0090&mi_00#c&2f6d6290&0&0000#{4d1e55b2-f16f-11cf-88cb-001111000030}
Using memory from core 0 after searching for a good core
( 30) Emulator Connected
( 40) Debug Halt
( 50) CPU ID
debug interface type = CoreSight DP (DAP DP ID 0BB11477) over SWD TAP 0
processor type = Cortex-M0 (CPU ID 00000C20) on DAP AP 0
number of h/w breakpoints = 4
number of flash patches = 0
number of h/w watchpoints = 2
Probe(0): Connected&Reset. DpID: 0BB11477. CpuID: 00000C20. Info: <None>
Debug protocol: SWD. RTCK: Disabled. Vector catch: Disabled.
Content of CoreSight Debug ROM(s):
RBASE E00FF000: CID B105100D PID 04000BB471 ROM (type 0x1)
ROM 1 E000E000: CID B105E00D PID 04000BB008 Gen SCS (type 0x0)
ROM 1 E0001000: CID B105E00D PID 04000BB00A Gen DWT (type 0x0)
ROM 1 E0002000: CID B105E00D PID 04000BB00B Gen FPB (type 0x0)
NXP: LPC1125/303
DAP stride is 1024 bytes (256 words)
Inspected v.2 On-chip Flash Memory LPC11_12_13_64K_8K.cfx
Image 'LPC11_12_13 (64K Flash, min 8K RAM) Jul 7 2022 12:18:00'
( 65) Chip Setup Complete
Connected: was_reset=true. was_stopped=false
( 70) License Check Complete
Loading 'low_level_clutchTrainer.axf' ELF 0x00000000 len 0x13A0
Opening flash driver LPC11_12_13_64K_8K.cfx
Sending VECTRESET to run flash driver
Flash device supported (64KB = 16*4K at 0x0)
Writing 5024 bytes to address 0x00000000 in Flash
1 of 1 ( 0) Writing sectors 0-1 at 0x00000000 with 5024 bytes
( 0) at 00000000: 0 bytes - 0/5024
( 81) at 00000000: 4096 bytes - 4096/5024
(100) at 00001000: 4096 bytes - 8192/5024
Sectors written: 2, unchanged: 0, total: 2
Erased/Wrote sector 0-1 with 5024 bytes in 200msec
Closing flash driver LPC11_12_13_64K_8K.cfx
(100) Finished writing Flash successfully.
Flash Write Done
Loaded 0x13A0 bytes in 261ms (about 19kB/s)
Reset target (system)
Starting execution using system reset
I think that this is a bug for this IDE release (MCUXpresso IDE v11.6.0 [Build 8187] [2022-07-13]), but I didn't try to any other previous versions.
Can you confirm it?
Many thanks!
AGA