Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 6 Forum Discussions

Rodo
Level 3
Level 3
50 sign-ins 10 questions asked 5 likes given

Hi all,

MTB3.0 is ModusToolBox 3.0

I have a custom board that works with MTB2.4 (and MTB3.0). Now I'm using MTB3.0 and I'm programming the board. The code is just a couple of lines to blink two LEDs on the board.  The LEDs blink just fine. The project is the  Dual core empty app with the modifications to the linker files in this post. I also commented out a line in the makefile as indicated in this other post but that gave me "Error: [psoc6.cpu.cm4] clearing lockup after double fault" so instead I changed it to match the size in the script file:  "DEFINES+=CY_CORTEX_M4_APPL_ADDR=CY_FLASH_BASE+0x8000U".  As I said the LEDs blink just fine. But Eclipse is showing some stuff after programming that I don't know what to make of it. I was expecting a "programming ok" or something like that. Eclipse also opens up a new tab titled "0x190" (picture below). I'll include a copy of the weird text after the picture... it is long. 

My question is ... what is that text at the end and why does Eclipse opens the new tab?

This is the new tab.This is the new tab.

 

Here is the text. I'm including everything that shows up after I click program (kitprog3...). I'm interested to know what the stuff is towards the end. I'll mark it as bold: Thanks.

Started by GNU MCU Eclipse
Open On-Chip Debugger 0.11.0+dev-4.4.0.2134 (2022-09-08-13:07)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
kitprog3 set_latest_version: C:/Users/wgates/ModusToolbox/tools_3.0/fw-loader 2.40.1241
adapter speed: 2000 kHz
adapter srst delay: 25
adapter srst pulse_width: 25
** Auto-acquire enabled, use "set ENABLE_ACQUIRE 0" to disable
cortex_m reset_config sysresetreq
cortex_m reset_config sysresetreq
Info : Using CMSIS-flash algorithms 'CY8C6xxA_SMIF' for bank 'psoc6_smif0_cm0' (footprint 17056 bytes)
Info : CMSIS-flash: ELF path: ../flm/cypress/cat1a/CY8C6xxA_SMIF.FLM
Info : CMSIS-flash: Address range: 0x18000000-0x1FFFFFFF
Info : CMSIS-flash: Program page size: 0x00001000 bytes
Info : CMSIS-flash: Erase sector size: 0x00040000 bytes, unified
Warn : SFlash programming allowed for regions: USER, TOC, KEY
Info : Using CMSIS-DAPv2 interface with VID:PID=0x04b4:0xf155, serial=050A0DF301237400
Info : CMSIS-DAP: SWD supported
Info : CMSIS-DAP: Atomic commands supported
Info : CMSIS-DAP: FW Version = 2.0.0
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : KitProg3: FW version: 2.40.1241
Info : KitProg3: Pipelined transfers enabled
Info : KitProg3: Asynchronous USB transfers enabled
Info : VTarget = 3.032 V
Info : kitprog3: acquiring the device (mode: reset)...
Info : clock speed 2000 kHz
Info : SWD DPIDR 0x6ba02477
Info : [psoc6.cpu.cm0] Cortex-M0+ r0p1 processor detected
Info : [psoc6.cpu.cm0] target has 4 breakpoints, 2 watchpoints
Info : [psoc6.cpu.cm0] external reset detected
***************************************
** Silicon: 0xE40B, Family: 0x102, Rev.: 0x11 (A0)
** Detected Device: CY8C624AAZI-D44
** Detected Main Flash size, kb: 2048
** Flash Boot version: 3.1.0.45
** Chip Protection: VIRGIN
***************************************
Info : [psoc6.cpu.cm4] Cortex-M4 r0p1 processor detected
Info : [psoc6.cpu.cm4] target has 6 breakpoints, 4 watchpoints
Info : [psoc6.cpu.cm4] external reset detected
Info : starting gdb server for psoc6.cpu.cm0 on 3333
Info : Listening on port 3333 for gdb connections
Info : starting gdb server for psoc6.cpu.cm4 on 3334
Info : Listening on port 3334 for gdb connections
Info : SWD DPIDR 0x6ba02477
Info : kitprog3: acquiring the device (mode: reset)...
psoc6.cpu.cm0 halted due to debug-request, current mode: Thread
xPSR: 0x41000000 pc: 0x00000190 msp: 0x080ff800
** Device acquired successfully
** psoc6.cpu.cm4: Ran after reset and before halt...
psoc6.cpu.cm4 halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0000012a msp: 0x080ff800
Started by GNU MCU Eclipse
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : accepting 'gdb' connection on tcp/3333
Info : New GDB Connection: 1, Target psoc6.cpu.cm0, state: halted
Warn : Prefer GDB command "target extended-remote :3333" instead of "target remote :3333"
Verifying region (0x10000000, 23768)... Match
Verifying region (0x10008000, 10900)... Mismatch
Info : Data mismatch, proceeding with flash programming
Info : Flash write discontinued at 0x10005cd8, next section at 0x10008000
Info : Padding image section 0 at 0x10005cd8 with 296 bytes (bank write end alignment)

[ 31%] [######### ] [ Erasing ]
[ 34%] [########## ] [ Erasing ]
[ 36%] [########### ] [ Erasing ]
[ 40%] [############ ] [ Erasing ]
[ 42%] [############# ] [ Erasing ]
[ 46%] [############## ] [ Erasing ]
[ 48%] [############### ] [ Erasing ]
[ 53%] [################ ] [ Erasing ]
[ 55%] [################# ] [ Erasing ]
[ 57%] [################## ] [ Erasing ]
[ 63%] [#################### ] [ Erasing ]
[ 68%] [##################### ] [ Erasing ]
[ 70%] [###################### ] [ Erasing ]
[ 72%] [####################### ] [ Erasing ]
[ 76%] [######################## ] [ Erasing ]
[ 82%] [########################## ] [ Erasing ]
[ 85%] [########################### ] [ Erasing ]
[ 89%] [############################ ] [ Erasing ]
[ 93%] [############################# ] [ Erasing ]
[ 95%] [############################## ] [ Erasing ]
[100%] [################################] [ Erasing ]

[100%] [################################] [ Programming ]
Info : Padding image section 1 at 0x1000aa94 with 364 bytes (bank write end alignment)

[ 68%] [##################### ] [ Erasing ]
[ 72%] [####################### ] [ Erasing ]
[ 77%] [######################## ] [ Erasing ]
[ 81%] [######################### ] [ Erasing ]
[ 86%] [########################### ] [ Erasing ]
[ 90%] [############################ ] [ Erasing ]
[100%] [################################] [ Erasing ]

[100%] [################################] [ Programming ]
Info : SWD DPIDR 0x6ba02477
Info : kitprog3: acquiring the device (mode: reset)...
psoc6.cpu.cm0 halted due to debug-request, current mode: Thread
xPSR: 0x41000000 pc: 0x00000190 msp: 0x080ff800
** Device acquired successfully
** psoc6.cpu.cm4: Ran after reset and before halt...
psoc6.cpu.cm4 halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x0000012a msp: 0x080ff800
Info : SWD DPIDR 0x6ba02477
psoc6.cpu.cm0 halted due to debug-request, current mode: Thread
xPSR: 0x81000000 pc: 0x10002776 msp: 0x08001fe0
Info : dropped 'gdb' connection

0 Likes
2 Replies
Gautami_12
Moderator
Moderator
Moderator
50 solutions authored 25 likes received First comment on blog

Hi @Rodo ,

This is not an eclipse issue:-

Adding this line to the OpenOCD cfg file helps to eliminate these errors:

arm7_9 fast_memory_access disable

But might be unsafe if used with targets running at very low speeds, like the 32kHz startup clock of an AT91RM9200.

Gautami_12_2-1670848804528.png

 

Please go through the Architecture-and-Core-Commands.

Warm Regards,
Gautami J

 

 

0 Likes

Hi @Gautami_12,


I looked at the link you provided but the whole thing looks very complex and I'm not even sure the psoc62 I'm using is either an arm 7 or 9 ... LOL.

I looked for an "OpenOCD.cfg" file but there isn't any. There are several OpenOCD.tcl files in various folder:

C:\Users\userName\mtw\Project_MDR_PCB_TEST1\proj_cm4\libs\recipe-make-cat1a\make\scripts\vscode\CMx
C:\Users\userName\mtw\Project_MDR_PCB_TEST1\proj_cm4\libs\recipe-make-cat1a\make\scripts\vscode\Application
C:\Users\userName\mtw\Project_MDR_PCB_TEST1\proj_cm0p\libs\recipe-make-cat1a\make\scripts\vscode\CMx
C:\Users\userName\mtw\Project_MDR_PCB_TEST1\proj_cm0p\libs\recipe-make-cat1a\make\scripts\vscode\Application

Which file should I add the line to? Sorry but I don't know what I'm doing at this point. Thanks.

0 Likes