cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED] - CubeIDE not downloading and restoring previously downloaded code

Ricko
Senior III

[SOLVED - It was a bouncy ground on the programming connector on the second PCB]

 

Hi,

I have two version of the same PCB only with minor HW differences which also require minor SW differences. So I made a copy of a project folder that works and renamed the folder. Then in CubeMX I also renamed the project itself.

 

It compiles but when I try to download it onto the micro - using the same Segger's J-Link I always use - it:

1) does not download the code onto the micro

2) instead of opening the source code window it shows error:

No source available for "(gdb[6].proc[42000].threadGroup[i1],gdb[6].proc[42000].OSthread[1]).thread[1].frame[0]"

but the main() source file (and other ones) are there and already opened.

3) it restarts the PCB running the old code (extremely different in functionality including which LEDs are on, so it's very obvious it is the old code)

 

The output window is shown below. From the output window, it seems the communication between the J-Link and the PCB is ok, which also seems to be confirmed by the fact that CubeMXProgrammer does read the chip memory.

 

But even in that output window it shows some errors. What might be the cause?

 

This is the full output:

 

 

 

 

SEGGER J-Link GDB Server V7.84e Command Line Version JLinkARM.dll V7.84e (DLL compiled Feb 1 2023 16:41:41) Command line: -port 2331 -s -device STM32L452RE -endian little -speed 4000 -if swd -vd -----GDB Server start settings----- GDBInit file: none GDB Server Listening port: 2331 SWO raw output listening port: 2332 Terminal I/O port: 2333 Accept remote connection: localhost only Generate logfile: off Verify download: on Init regs on start: off Silent mode: off Single run mode: on Target connection timeout: 0 ms ------J-Link related settings------ J-Link Host interface: USB J-Link script: none J-Link settings file: none ------Target related settings------ Target device: STM32L452RE Target device parameters: none Target interface: SWD Target interface speed: 4000kHz Target endian: little Connecting to J-Link... J-Link is connected. Firmware: J-Link V11 compiled May 28 2024 15:36:02 Hardware: V11.00 S/N: 261014476 OEM: SEGGER-EDU Feature(s): FlashBP, GDB Checking target voltage... Target voltage: 3.24 V Listening on TCP/IP port 2331 Connecting to target... Halting core... Connected to target Waiting for GDB connection...Connected to 0000:0000:0000:0000:0000:0000:0000:0001 GDB client (conn. 1120) requested target.xml from GDB Server Reading common registers: Read register 'r0' (4 bytes) from hardware: 0x4E510000 Read register 'r1' (4 bytes) from hardware: 0x00100000 Read register 'r2' (4 bytes) from hardware: 0xD1070000 Read register 'r3' (4 bytes) from hardware: 0x5B030000 Read register 'r4' (4 bytes) from hardware: 0x10010020 Read register 'r5' (4 bytes) from hardware: 0x00000000 Read register 'r6' (4 bytes) from hardware: 0x00000000 Read register 'r7' (4 bytes) from hardware: 0xE07F0220 Read register 'r8' (4 bytes) from hardware: 0x00000000 Read register 'r9' (4 bytes) from hardware: 0x00000000 Read register 'r10' (4 bytes) from hardware: 0x00000000 Read register 'r11' (4 bytes) from hardware: 0x00000000 Read register 'r12' (4 bytes) from hardware: 0x00000000 Read register 'sp' (4 bytes) from hardware: 0xDC7F0220 Read register 'lr' (4 bytes) from hardware: 0x690D0008 Read register 'pc' (4 bytes) from hardware: 0x260D0008 Read register 'xpsr' (4 bytes) from hardware: 0x00000021 Read 4 bytes @ address 0x08000D26 (Data = 0x4B03AF00) Reading 64 bytes @ address 0x20027FC0 Received monitor command: ReadAPEx 0x0 0xF8 O.K.:0xE00FF003 Received monitor command: ReadMemAP 0x0 0xE00FFFD0 0x8 0x0 O.K.:0x00000000,0x00000000,0x00000000,0x00000000,0x00000062,0x00000004,0x0000000A,0x00000000 Connected to 0000:0000:0000:0000:0000:0000:0000:0001 GDB client (conn. 1140) requested target.xml from GDB Server Reading common registers: Read register 'r0' (4 bytes) from hardware: 0x4E510000 Read register 'r1' (4 bytes) from hardware: 0x00100000 Read register 'r2' (4 bytes) from hardware: 0xD1070000 Read register 'r3' (4 bytes) from hardware: 0x5B030000 Read register 'r4' (4 bytes) from hardware: 0x10010020 Read register 'r5' (4 bytes) from hardware: 0x00000000 Read register 'r6' (4 bytes) from hardware: 0x00000000 Read register 'r7' (4 bytes) from hardware: 0xE07F0220 Read register 'r8' (4 bytes) from hardware: 0x00000000 Read register 'r9' (4 bytes) from hardware: 0x00000000 Read register 'r10' (4 bytes) from hardware: 0x00000000 Read register 'r11' (4 bytes) from hardware: 0x00000000 Read register 'r12' (4 bytes) from hardware: 0x00000000 Read register 'sp' (4 bytes) from hardware: 0xDC7F0220 Read 4 bytes @ address 0x00000000 (Data = 0x20028000) Read register 'lr' (4 bytes) from hardware: 0x690D0008 Read register 'pc' (4 bytes) from hardware: 0x260D0008 Read register 'xpsr' (4 bytes) from hardware: 0x00000021 Read 4 bytes @ address 0x08000D26 (Data = 0x4B03AF00) Reading 64 bytes @ address 0x20027FC0 Received monitor command: reset Resetting target Downloading 404 bytes @ address 0x08000000 - Verified OK Downloading 16048 bytes @ address 0x080001A0 - Verified OK Downloading 15984 bytes @ address 0x08004050 - Verified OK Downloading 14736 bytes @ address 0x08007EC0 - Verified OK Downloading 1300 bytes @ address 0x0800B850 - Verified OK Downloading 8 bytes @ address 0x0800BD64 - Verified OK Downloading 4 bytes @ address 0x0800BD6C - Verified OK Downloading 4 bytes @ address 0x0800BD70 - Verified OK Downloading 1180 bytes @ address 0x0800BD74 - Verified OK Writing register 'pc' = 0x08002B9C ERROR: Failed to download RAMCode. Failed to prepare for programming. Failed to download RAMCode! Read 4 bytes @ address 0x08002B9C (Data = 0xBF00621A) Read 2 bytes @ address 0x08002B9C (Data = 0x621A) Starting target CPU... GDB closed TCP/IP connection (Socket 1140) Debugger requested to halt target... ...Target halted (PC = 0x08000D70) Reading common registers: Read register 'r0' (4 bytes) from hardware: 0x16000000 Read register 'r1' (4 bytes) from hardware: 0x01000000 Read register 'r2' (4 bytes) from hardware: 0xC9000000 Read register 'r3' (4 bytes) from hardware: 0x15000000 Read register 'r4' (4 bytes) from hardware: 0x10010020 Read register 'r5' (4 bytes) from hardware: 0x00000000 Read register 'r6' (4 bytes) from hardware: 0x00000000 Read register 'r7' (4 bytes) from hardware: 0xE07F0220 Read register 'r8' (4 bytes) from hardware: 0x00000000 Read register 'r9' (4 bytes) from hardware: 0x00000000 Read register 'r10' (4 bytes) from hardware: 0x00000000 Read register 'r11' (4 bytes) from hardware: 0x00000000 Read register 'r12' (4 bytes) from hardware: 0x00000000 Read register 'sp' (4 bytes) from hardware: 0xE07F0220 Read register 'lr' (4 bytes) from hardware: 0x690D0008 Read register 'pc' (4 bytes) from hardware: 0x700D0008 Read register 'xpsr' (4 bytes) from hardware: 0x00000021 Read 4 bytes @ address 0x08000D70 (Data = 0xEC7F429A) Reading 64 bytes @ address 0x20027FC0 GDB closed TCP/IP connection (Socket 1120) Restoring target state and closing J-Link connection... Shutting down...
View more

 

 

 

 

Thank you

 

 

0 REPLIES 0