2025-05-08 4:47 AM
Hello,
I am using SPC58EE84E7 custom board, I am able to flash the application using JTAG debugger (stellar link), Please let me where I am going wrong as the led is not blinking.
Below is the configurations that I am doing to setup the project:
1.
2. Below is the main code:
Below is the debugger output as well:
Open On-Chip Debugger 0.12.0+dev-00318-g0e98d766e (2023-05-17-15:52)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter srst pulse_width: 100
Started by GNU MCU Eclipse
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 1000 kHz
Info : JTAG tap: spc58ee.tap tap/device found: 0x11110041 (mfg: 0x020 (STMicroelectronics), part: 0x1110, ver: 0x1)
Info : 0x11110041
mfg: 0x020 (STMicroelectronics),
device: 0x08 - SPC58xG / SPC58xE - (Chorus/Eiger 6M),
application: 0,
technology: 40nm,
design: 0,
cut: 2.1
Info : starting gdb server for spc58ee.cpu on 3333
Info : Listening on port 3333 for gdb connections
Info : OnCE IDCODE = 0x07c2b01d
target halted
Info : Target status: halted - PC: 0xf7fb8004
Info : accepting 'gdb' connection on tcp/3333
Info : JTAG tap: spc58ee.tap tap/device found: 0x11110041 (mfg: 0x020 (STMicroelectronics), part: 0x1110, ver: 0x1)
Info : 0x11110041
mfg: 0x020 (STMicroelectronics),
device: 0x08 - SPC58xG / SPC58xE - (Chorus/Eiger 6M),
application: 0,
technology: 40nm,
design: 0,
cut: 2.1
Info : OnCE IDCODE = 0x07c2b01d
Disable Software Watchdog Timer
Cache invalidate
Init regs
Clearing memory [0x400A8000-0x400A8FFF]
Clearing memory [0x40060000+128K+160K]
Clearing memory [0x40060000+120K+128K+64K]
setup IVOPR points
Disable Software Watchdog Timer
Cache invalidate
Init regs
Clearing memory [0x400A8000-0x400A8FFF]
Clearing memory [0x40060000+128K+160K]
Clearing memory [0x40060000+120K+128K+64K]
setup IVOPR points
Info : JTAG tap: spc58ee.tap tap/device found: 0x11110041 (mfg: 0x020 (STMicroelectronics), part: 0x1110, ver: 0x1)
Info : 0x11110041
mfg: 0x020 (STMicroelectronics),
device: 0x08 - SPC58xG / SPC58xE - (Chorus/Eiger 6M),
application: 0,
technology: 40nm,
design: 0,
cut: 2.1
Info : OnCE IDCODE = 0x07c2b01d
Info : flash: 6144 kbytes @ 0x00fc0000
Info : flash: 144 kbytes @ 0x0060c000
Info : flash: 32 kbytes @ 0x00680000
Info : flash: 256 kbytes @ 0x00800000
Warn : negative reply, retrying
Warn : acknowledgment received, but no packet pending
Warn : Prefer GDB command "target extended-remote :3333" instead of "target remote :3333"
Info : JTAG tap: spc58ee.tap tap/device found: 0x11110041 (mfg: 0x020 (STMicroelectronics), part: 0x1110, ver: 0x1)
Info : 0x11110041
mfg: 0x020 (STMicroelectronics),
device: 0x08 - SPC58xG / SPC58xE - (Chorus/Eiger 6M),
application: 0,
technology: 40nm,
design: 0,
cut: 2.1
Info : OnCE IDCODE = 0x07c2b01d
Disable Software Watchdog Timer
Cache invalidate
Init regs
Clearing memory [0x400A8000-0x400A8FFF]
Clearing memory [0x40060000+128K+160K]
Clearing memory [0x40060000+120K+128K+64K]
setup IVOPR points
force hard breakpoints
Info : JTAG tap: spc58ee.tap tap/device found: 0x11110041 (mfg: 0x020 (STMicroelectronics), part: 0x1110, ver: 0x1)
Info : 0x11110041
mfg: 0x020 (STMicroelectronics),
device: 0x08 - SPC58xG / SPC58xE - (Chorus/Eiger 6M),
application: 0,
technology: 40nm,
design: 0,
cut: 2.1
Info : OnCE IDCODE = 0x07c2b01d
Disable Software Watchdog Timer
Cache invalidate
Init regs
Clearing memory [0x400A8000-0x400A8FFF]
Clearing memory [0x40060000+128K+160K]
Clearing memory [0x40060000+120K+128K+64K]
setup IVOPR points
Info : src/flash/nor/spc58ng.c:350 spc58ng_erase()
Info : Padding image section 0 at 0x00fc03e2 with 14 bytes
Info : Padding image section 1 at 0x00fc2002 with 14 bytes
Info : Padding image section 2 at 0x00fc61a6 with 10 bytes
Info : src/flash/nor/spc58ng.c:1284 spc58ng_write()
Info : src/flash/nor/spc58ng.c:1285 spc58ng_write() offset = 0x00000000 count = 0x0000624c
Info : Sector found: 0 IN_offset= 0x00000000, bank->sectors[0].offset= 0x00000000, bank->sectors[0].size= 0x00004000
Info : bank->sectors[0].size = 16384
Info : bank->sectors[0].offset = 0x00000000
Info : bank->sectors[0].is_erased = 1
Info : bank->sectors[0].is_protected = 0
Info : JTAG tap: spc58ee.tap tap/device found: 0x11110041 (mfg: 0x020 (STMicroelectronics), part: 0x1110, ver: 0x1)
Info : 0x11110041
mfg: 0x020 (STMicroelectronics),
device: 0x08 - SPC58xG / SPC58xE - (Chorus/Eiger 6M),
application: 0,
technology: 40nm,
design: 0,
cut: 2.1
Info : OnCE IDCODE = 0x07c2b01d
Info : JTAG tap: spc58ee.tap tap/device found: 0x11110041 (mfg: 0x020 (STMicroelectronics), part: 0x1110, ver: 0x1)
Info : 0x11110041
mfg: 0x020 (STMicroelectronics),
device: 0x08 - SPC58xG / SPC58xE - (Chorus/Eiger 6M),
application: 0,
technology: 40nm,
design: 0,
cut: 2.1
Info : OnCE IDCODE = 0x07c2b01d
Info : OnCE IDCODE = 0x07c2b01d
Also my debugger is not opening at the breakpoint, It provides an error:
Error in final launch sequence
Failed to execute MI command:
-target-select remote localhost:3333
Error message from debugger back end:
Bogus trace status reply from target: OK
Failed to execute MI command:
-target-select remote localhost:3333
Error message from debugger back end:
Bogus trace status reply from target: OK
Bogus trace status reply from target: OK
This not working at all, Its an urgent request please help me resolve this.
2025-05-08 7:01 AM
Break at address "0xf7fb8004" with no debug information available, or outside of program code.
Keep getting this in breakpoint address.