-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Description
Hi,
I'm playing with RIOT, and I'm experiencing strange behavior after flashing RIOT binary onto LAUNCHXL-CC1352R1.
After flashing hello-world example I can't connect via openocd (JTAG) with the board anymore. I can recover using uniflash tool from TI to erase the flash. Also physical reset button present on the board stops working - board continues to run despite button being pressed.
Is this expected behavior? Does RIOT-OS reconfigure JTAG and reset button in runtime so it is no longer operational?
Reset button behavior is also present for the nRF52840-DK development board.
Flashing the board for the first time:
make BOARD=cc1352-launchpad flash
Building application "hello-world" for "cc1352-launchpad" with MCU "cc26x2_cc13x2".
"make" -C /home/koadas/Documents/work/projects/RIOT/boards/cc1352-launchpad
"make" -C /home/koadas/Documents/work/projects/RIOT/boards/common/init
"make" -C /home/koadas/Documents/work/projects/RIOT/core
"make" -C /home/koadas/Documents/work/projects/RIOT/core/lib
"make" -C /home/koadas/Documents/work/projects/RIOT/cpu/cc26x2_cc13x2
"make" -C /home/koadas/Documents/work/projects/RIOT/cpu/cc26x2_cc13x2/periph
"make" -C /home/koadas/Documents/work/projects/RIOT/cpu/cc26xx_cc13xx
"make" -C /home/koadas/Documents/work/projects/RIOT/cpu/cc26xx_cc13xx/periph
"make" -C /home/koadas/Documents/work/projects/RIOT/cpu/cortexm_common
"make" -C /home/koadas/Documents/work/projects/RIOT/cpu/cortexm_common/periph
"make" -C /home/koadas/Documents/work/projects/RIOT/drivers
"make" -C /home/koadas/Documents/work/projects/RIOT/drivers/periph_common
"make" -C /home/koadas/Documents/work/projects/RIOT/sys
"make" -C /home/koadas/Documents/work/projects/RIOT/sys/auto_init
"make" -C /home/koadas/Documents/work/projects/RIOT/sys/div
"make" -C /home/koadas/Documents/work/projects/RIOT/sys/libc
"make" -C /home/koadas/Documents/work/projects/RIOT/sys/malloc_thread_safe
"make" -C /home/koadas/Documents/work/projects/RIOT/sys/newlib_syscalls_default
"make" -C /home/koadas/Documents/work/projects/RIOT/sys/stdio_uart
text data bss dec hex filename
8948 112 2288 11348 2c54 /home/koadas/Documents/work/projects/RIOT/examples/hello-world/bin/cc1352-launchpad/hello-world.elf
/home/koadas/Documents/work/projects/RIOT/dist/tools/openocd/openocd.sh flash /home/koadas/Documents/work/projects/RIOT/examples/hello-world/bin/cc1352-launchpad/hello-world.elf
### Flashing Target ###
Open On-Chip Debugger 0.11.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
DEPRECATED! use 'adapter srst pulse_width' not 'adapter_nsrst_assert_width'
DEPRECATED! use 'adapter srst delay' not 'adapter_nsrst_delay'
DEPRECATED! use 'adapter speed' not 'adapter_khz'
adapter speed: 1000 kHz
Info : XDS110: connected
Info : XDS110: vid/pid = 0451/bef3
Info : XDS110: firmware version = 3.0.0.19
Info : XDS110: hardware version = 0x0023
Info : XDS110: connected to target via JTAG
Info : XDS110: TCK set to 2500 kHz
Info : clock speed 1000 kHz
Info : JTAG tap: cc26x2.jrc tap/device found: 0x3bb4102f (mfg: 0x017 (Texas Instruments), part: 0xbb41, ver: 0x3)
Info : JTAG tap: cc26x2.cpu enabled
Info : cc26x2.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : starting gdb server for cc26x2.cpu on 0
Info : Listening on port 33997 for gdb connections
TargetName Type Endian TapName State
-- ------------------ ---------- ------ ------------------ ------------
0* cc26x2.cpu cortex_m little cc26x2.cpu halted
Info : JTAG tap: cc26x2.jrc tap/device found: 0x3bb4102f (mfg: 0x017 (Texas Instruments), part: 0xbb41, ver: 0x3)
Info : JTAG tap: cc26x2.cpu enabled
Warn : Only resetting the Cortex-M core, use a reset-init event handler to reset any peripherals or configure hardware srst support.
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00000fb0 msp: 0x20001080
auto erase enabled
wrote 16384 bytes from file /home/koadas/Documents/work/projects/RIOT/examples/hello-world/bin/cc1352-launchpad/hello-world.elf in 1.457139s (10.980 KiB/s)
verified 9060 bytes in 0.090556s (97.704 KiB/s)
Info : JTAG tap: cc26x2.jrc tap/device found: 0x3bb4102f (mfg: 0x017 (Texas Instruments), part: 0xbb41, ver: 0x3)
Info : JTAG tap: cc26x2.cpu enabled
Warn : Only resetting the Cortex-M core, use a reset-init event handler to reset any peripherals or configure hardware srst support.
shutdown command invoked
Info : XDS110: disconnected
Done flashing
After first flash:
make BOARD=cc1352-launchpad flash
Building application "hello-world" for "cc1352-launchpad" with MCU "cc26x2_cc13x2".
"make" -C /home/koadas/Documents/work/projects/RIOT/boards/cc1352-launchpad
"make" -C /home/koadas/Documents/work/projects/RIOT/boards/common/init
"make" -C /home/koadas/Documents/work/projects/RIOT/core
"make" -C /home/koadas/Documents/work/projects/RIOT/core/lib
"make" -C /home/koadas/Documents/work/projects/RIOT/cpu/cc26x2_cc13x2
"make" -C /home/koadas/Documents/work/projects/RIOT/cpu/cc26x2_cc13x2/periph
"make" -C /home/koadas/Documents/work/projects/RIOT/cpu/cc26xx_cc13xx
"make" -C /home/koadas/Documents/work/projects/RIOT/cpu/cc26xx_cc13xx/periph
"make" -C /home/koadas/Documents/work/projects/RIOT/cpu/cortexm_common
"make" -C /home/koadas/Documents/work/projects/RIOT/cpu/cortexm_common/periph
"make" -C /home/koadas/Documents/work/projects/RIOT/drivers
"make" -C /home/koadas/Documents/work/projects/RIOT/drivers/periph_common
"make" -C /home/koadas/Documents/work/projects/RIOT/sys
"make" -C /home/koadas/Documents/work/projects/RIOT/sys/auto_init
"make" -C /home/koadas/Documents/work/projects/RIOT/sys/div
"make" -C /home/koadas/Documents/work/projects/RIOT/sys/libc
"make" -C /home/koadas/Documents/work/projects/RIOT/sys/malloc_thread_safe
"make" -C /home/koadas/Documents/work/projects/RIOT/sys/newlib_syscalls_default
"make" -C /home/koadas/Documents/work/projects/RIOT/sys/stdio_uart
text data bss dec hex filename
8948 112 2288 11348 2c54 /home/koadas/Documents/work/projects/RIOT/examples/hello-world/bin/cc1352-launchpad/hello-world.elf
/home/koadas/Documents/work/projects/RIOT/dist/tools/openocd/openocd.sh flash /home/koadas/Documents/work/projects/RIOT/examples/hello-world/bin/cc1352-launchpad/hello-world.elf
### Flashing Target ###
Open On-Chip Debugger 0.11.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
DEPRECATED! use 'adapter srst pulse_width' not 'adapter_nsrst_assert_width'
DEPRECATED! use 'adapter srst delay' not 'adapter_nsrst_delay'
DEPRECATED! use 'adapter speed' not 'adapter_khz'
adapter speed: 1000 kHz
Info : XDS110: connected
Info : XDS110: vid/pid = 0451/bef3
Info : XDS110: firmware version = 3.0.0.19
Info : XDS110: hardware version = 0x0023
Info : XDS110: connected to target via JTAG
Info : XDS110: TCK set to 2500 kHz
Info : clock speed 1000 kHz
Info : JTAG tap: cc26x2.jrc tap/device found: 0x3bb4102f (mfg: 0x017 (Texas Instruments), part: 0xbb41, ver: 0x3)
Info : JTAG tap: cc26x2.cpu enabled
Info : cc26x2.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : starting gdb server for cc26x2.cpu on 0
Info : Listening on port 37499 for gdb connections
TargetName Type Endian TapName State
-- ------------------ ---------- ------ ------------------ ------------
0* cc26x2.cpu cortex_m little cc26x2.cpu running
Info : JTAG tap: cc26x2.jrc tap/device found: 0x3bb4102f (mfg: 0x017 (Texas Instruments), part: 0xbb41, ver: 0x3)
Info : JTAG tap: cc26x2.cpu enabled
Warn : Only resetting the Cortex-M core, use a reset-init event handler to reset any peripherals or configure hardware srst support.
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00000930 msp: 0x20000200
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response
Error: Failed to write memory and, additionally, failed to find out where
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response
Warn : target was in unknown state when halt was requested
Error: Invalid ACK (0) in DAP response
Error: Invalid ACK (0) in DAP response
Error: failed erasing sectors 0 to 1
auto erase enabled
Info : XDS110: disconnected
make: *** [/home/koadas/Documents/work/projects/RIOT/examples/hello-world/../../Makefile.include:838: flash] Error 1
Metadata
Metadata
Assignees
Labels
No labels