Newbie: Sensortile can debug but then cannot run independently
SETUP
sensortile attached to nucleo-l476rg, windows,
System Workbench for STM32 - OpenOCD (for Windows 32bits)
Version: 1.13.2.201703061529
Build id: @build@
gnu tools arm embedded Version: 1.13.2.201703061525
openocd for windows Version: 1.13.2.201703061523
PROBLEM
I am able to click “Debug” which works, i get a breakpoint in main at 0x10100, then click resume and sensortile starts happily advertising as desired. But when i disconnect from the nucleo board I can’t get the sensortile to advertise. I have tried “Run” instead of Debug, and other combinations but the sensorTile just won’t start advertising unless it’s connected to Nucleo. How can i program SensorTile and have it run powered in its own cradle?
Thanks in advance!
Allan
___
Here’s the console working fine with nucleo:
Open On-Chip Debugger 0.10.0-dev-00275-gd486ac2-dirty (2017-03-06-15:22)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
padded zone erase set to 1
adapter_nsrst_delay: 100
srst_only separate srst_nogate srst_open_drain connect_assert_srst
adapter speed: 1800 kHz
Info : clock speed 1800 kHz
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : STLINK v2 JTAG v27 API v2 M v15 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.238896
Info : STM32L476.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : accepting ‘gdb’ connection on tcp/3333
adapter speed: 240 kHz
STM32L476.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00010100 msp: 0x464c457c
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
adapter speed: 4000 kHz
Info : Device id = 0x10076415
Info : STM32L4xx flash size is 1024kb, base address is 0x8000000
adapter speed: 240 kHz
STM32L476.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00010100 msp: 0x464c457c
adapter speed: 240 kHz
STM32L476.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00010100 msp: 0x464c457c
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
Info : Unable to match requested speed 8000 kHz, using 4000 kHz
adapter speed: 4000 kHz
Info : Erase the padded zone before the write
Warn : Adding extra erase range, 0x00004000 to 0x00004187
Warn : Adding extra erase range, 0x00004190 to 0x000047ff
Info : Padding image section 0 with 8 bytes
STM32L476.cpu: target state: halted
target halted due to breakpoint, current mode: Thread
xPSR: 0x21000000 pc: 0x20000068 msp: 0x464c457c
Warn : keep_alive() was not invoked in the 1000ms timelimit. GDB alive packet not sent! (2092). Workaround: increase “set remotetimeout” in GDB
adapter speed: 240 kHz
STM32L476.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x00010100 msp: 0x464c457c