cancel
Showing results for 
Search instead for 
Did you mean: 

Why does the data-log code furnished with the sensor tile kit not work reliably? I am including all error codes and will copy the complete code if needed. Thanks, Ralph

RTrim.1
Associate
Open On-Chip Debugger 0.10.0+dev-00021-g524e8c8 (2019-04-12-08:48)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
srst_only separate srst_nogate srst_open_drain connect_assert_srst
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 speed: 4000 kHz
adapter_nsrst_delay: 100
Info : clock speed 4000 kHz
Info : STLINK v2.1 JTAG v29 API v2 M18 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.231916
Info : Stlink adapter speed set to 4000 kHz
Info : STM32L476RGTx.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : Listening on port 3333 for gdb connections
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x00010100 msp: 0x464c457c
Info : Stlink adapter speed set to 4000 kHz
adapter speed: 4000 kHz
** Programming Started **
auto erase enabled
Info : Device id = 0x10076415
Info : STM32L4xx flash size is 1024kb, base address is 0x8000000
Info : Erase the padded zone before the write
Error: Whole bank access must start at beginning of bank.
target halted due to breakpoint, current mode: Thread 
xPSR: 0x61000000 pc: 0x20000050 msp: 0x464c457c
wrote 133120 bytes from file Release/STM32L4xx-SensorTile.elf in 3.970067s (32.745 KiB/s)
** Programming Finished **
** Verify Started **
target halted due to breakpoint, current mode: Thread 
xPSR: 0x61000000 pc: 0x2000002e msp: 0x464c457c
target halted due to breakpoint, current mode: Thread 
xPSR: 0x61000000 pc: 0x2000002e msp: 0x464c457c
verified 132280 bytes in 4.110338s (31.428 KiB/s)
** Verified OK **
** Resetting Target **
shutdown command invoked

2 REPLIES 2
Eleon BORLINI
ST Employee

Hi @RTrim.1​ , from the OpenOCD it seems that the .bin upload has properly finished... which error do you exactly refer at?

Regards

RTrim.1
Associate

Hi Eleon, All I know is that once in a great while, this code will run on the sensor tile, a second com port will open on the host computer using putty and all the sensor readings will update every 1000ms as promised but most of the time nothing happens because the "shutdown command invoked". The complete code is included below. Thanks for any solution, RalphTrimnell