Not able to flash Nucleo32 stm32l432kcu6
I am trying to flash some code I wrote, using CubeMX and sw4stm, and I am seeing this in the console:
----------------------------------------------------
Open On-Chip Debugger 0.10.0-dev-00007-g58350bc-dirty (2018-01-12-12:21)
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_nsrst_delay: 100
adapter speed: 480 kHz
Info : clock speed 480 kHz
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : STLINK v2.1 JTAG v25 API v2 M14 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 3.256131
Info : Stlink adapter speed set to 480 kHz
Info : STM32L432KCUx.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : Stlink adapter speed set to 480 kHz
adapter speed: 480 kHz
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080024dc msp: 0x20010000
Info : Stlink adapter speed set to 4000 kHz
adapter speed: 4000 kHz
- Programming Started **
auto erase enabled
Info : Device id = 0x10016435
Info : STM32L4xx flash size is 256kb, 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: 0x20010000
Warn : block write succeeded
wrote 10240 bytes from file Debug/display_sense2gol32.elf in 0.371985s (26.883 KiB/s)
- Programming Finished **
- Verify Started **
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x20010000
target halted due to breakpoint, current mode: Thread
xPSR: 0x61000000 pc: 0x2000002e msp: 0x20010000
verified 9744 bytes in 0.343670s (27.688 KiB/s)
- Verified OK **
- Resetting Target **
Info : Stlink adapter speed set to 480 kHz
adapter speed: 480 kHz
shutdown command invoked
------------------------------------------------------
Can someone help me with this? I checked the device manager, and the latest driver is installed for the ST-Link.
I’m on Windows 10.
Thanks!