Can't get Rust on Traveo example to run (gpio-access-t2g-bodyentry-starterkit)

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

cross mob
MerrimanInd
Level 1
Level 1
First reply posted First question asked Welcome!

Hello all,

I'm trying to run the Rust GPIO example on the T2G Body Entry Starter Kit. I seem to have the toolchain set up correctly, the code compiles, and it seems to flash but immediately halts on the microcontroller.

I'm using the ARM GNU toolchain v13, the attached OpenOCD, etc. One issue I had was with the version of KitProg3. I updated the firmware on the PSoC chip and am now running v2.40, which I don't believe is what came on the eval board but it seems to be working.

@shahzeb I didn't want to clutter up the comments on your Getting Started w/ Rust post, hope you can help here instead!

Here's my terminal output when I run the openocd Debug M0 Master:

Open On-Chip Debugger 0.10.0+dev-1.1.0.901 (2020-06-09-06:04)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
adapter speed: 2000 kHz
adapter srst delay: 25
adapter srst pulse_width: 5
** Auto-acquire enabled, use "set ENABLE_ACQUIRE 0" to disable
cortex_m reset_config sysresetreq
adapter srst delay: 100
Info : Listening on port 50002 for tcl connections
Info : Listening on port 50004 for telnet connections
Info : CMSIS-DAP: SWD  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 : VTarget = 4.816 V
Info : kitprog3: acquiring the device...
Info : clock speed 2000 kHz
Info : SWD DPIDR 0x6ba02477
Info : traveo2.cpu.cm0: hardware has 4 breakpoints, 2 watchpoints
Info : traveo2.cpu.cm0: external reset detected
***************************************
** Use overriden Main Flash size, kb: 1088
** Use overriden Work Flash size, kb: 96
** Silicon: 0xE3DA, Family: 0x101, Rev.: 0x23 (B2)
** Detected Device: CYT2B75CAE
** Flash Boot version: 3.1.0.515
** SFlash version: 318083
** Chip Protection: NORMAL
***************************************
Info : traveo2.cpu.cm4: hardware has 6 breakpoints, 4 watchpoints
Info : traveo2.cpu.cm4: external reset detected
Info : Listening on port 50000 for gdb connections
Info : Listening on port 50001 for gdb connections
Info : accepting 'gdb' connection on tcp/50000
target halted due to debug-request, current mode: Thread 
xPSR: 0x41000000 pc: 0x000002a4 msp: 0x08020000
Info : New GDB Connection: 1, Target traveo2.cpu.cm0, state: halted
semihosting is enabled
Info : SWD DPIDR 0x6ba02477
Info : kitprog3: acquiring the device...
target halted due to debug-request, current mode: Thread 
xPSR: 0x41000000 pc: 0x000002a4 msp: 0x08020000, semihosting
** Device acquired successfully
** traveo2.cpu.cm4: Ran after reset and before halt...
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x000001bc msp: 0x0801f800
Info : SWD DPIDR 0x6ba02477
Info : kitprog3: acquiring the device...
target halted due to debug-request, current mode: Thread 
xPSR: 0x41000000 pc: 0x000002a4 msp: 0x08020000, semihosting
** Device acquired successfully
** traveo2.cpu.cm4: Ran after reset and before halt...
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x000001bc msp: 0x0801f800
[100%] [################################] [ Erasing     ]
Info : Padding image section 0 at 0x10001558 with 8 bytes
Info : Padding image section 1 at 0x10001688 with 376 bytes (bank write end alignment)
[100%] [################################] [ Programming ]
Info : SWD DPIDR 0x6ba02477
Info : kitprog3: acquiring the device...
target halted due to debug-request, current mode: Thread 
xPSR: 0x41000000 pc: 0x000002a4 msp: 0x08020000, semihosting
** Device acquired successfully
** traveo2.cpu.cm4: Ran after reset and before halt...
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x000001bc msp: 0x0801f800
Info : SWD DPIDR 0x6ba02477
Info : kitprog3: acquiring the device...
target halted due to debug-request, current mode: Thread 
xPSR: 0x41000000 pc: 0x000002a4 msp: 0x08020000, semihosting
** Device acquired successfully
** traveo2.cpu.cm4: Ran after reset and before halt...
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x000001bc msp: 0x0801f800
[100%] [################################] [ Erasing     ]
Info : Padding image section 0 at 0x10008c48 with 8 bytes
Info : Padding image section 1 at 0x10008e74 with 396 bytes (bank write end alignment)
[100%] [################################] [ Programming ]
Info : SWD DPIDR 0x6ba02477
Info : kitprog3: acquiring the device...
target halted due to debug-request, current mode: Thread 
xPSR: 0x41000000 pc: 0x000002a4 msp: 0x08020000, semihosting
** Device acquired successfully
** traveo2.cpu.cm4: Ran after reset and before halt...
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x000001bc msp: 0x0801f800
Info : SWD DPIDR 0x6ba02477
Info : kitprog3: acquiring the device...
target halted due to debug-request, current mode: Thread 
xPSR: 0x41000000 pc: 0x000002a4 msp: 0x08020000, semihosting
** Device acquired successfully
** traveo2.cpu.cm4: Ran after reset and before halt...
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x000001bc msp: 0x0801f800
Info : accepting 'gdb' connection on tcp/50001
Info : New GDB Connection: 2, Target traveo2.cpu.cm4, state: halted
semihosting is enabled
Info : SWD DPIDR 0x6ba02477
Info : kitprog3: acquiring the device...
** Device acquired successfully
** traveo2.cpu.cm4: Ran after reset and before halt...
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x000001bc msp: 0x0801f800, semihosting

 

And over in the debug console there's quite a bit of printout but this seems like a possibly relevant section:

Program
-> ~" received signal SIGINT, Interrupt.\n"
received signal SIGINT, Interrupt.
-> ~"0x000002a4 in ?? ()\n"
0x000002a4 in ?? ()
-> *stopped,reason="signal-received",signal-name="SIGINT",signal-meaning="Interrupt",frame={addr="0x000002a4",func="??",args=[],arch="armv7e-m"},thread-id="1",stopped-threads="all"
mi2.status = stopped
32-break-delete
-> 32^done
33-target-disconnect
-> =thread-exited,id="1",group-id="i1"
-> =thread-group-exited,id="i1"
-> 33^done

 

0 Likes
2 Replies
shahzeb
Employee
Employee
10 likes received First like given 10 sign-ins

I'd be happy to look into this but could you please open an issue in the GitHub repo for this code example: https://github.com/Infineon/gpio-access-t2g-bodyentry-starterkit

 

 

0 Likes