googlecreativelab / open-nsynth-super

Open NSynth Super is an experimental physical interface for the NSynth algorithm
Apache License 2.0
2.42k stars 270 forks source link

Make install stm32x device protected error #76

Open songproducer opened 5 years ago

songproducer commented 5 years ago
  Prerequisite '../cube/Drivers/CMSIS/Device/ST/STM32F0xx/Source/Templates/gcc/startup_stm32f030xc.s' is older than target '../bin/main.elf'.
  No need to remake target '../bin/main.elf'.
 Finished prerequisites of target file 'install'.
Must remake target 'install'.
sudo openocd --file openocd.cfg --command "program ../bin/main.elf verify reset exit"
Putting child 0x72f8b0 (install) PID 1772 on the chain.
Live child 0x72f8b0 (install) PID 1772 
Open On-Chip Debugger 0.10.0 (2019-06-10-11:18)
Licensed under GNU GPL v2
For bug reports, read
    http://openocd.org/doc/doxygen/bugs.html
BCM2835 GPIO nums: swclk = 25, swdio = 24
BCM2835 GPIO config: srst = 23
srst_only separate srst_gates_jtag srst_push_pull connect_deassert_srst
adapter speed: 1000 kHz
adapter_nsrst_delay: 100
srst_only separate srst_nogate srst_push_pull connect_deassert_srst
cortex_m reset_config sysresetreq
srst_only separate srst_nogate srst_push_pull connect_deassert_srst
adapter_nsrst_delay: 100
adapter_nsrst_assert_width: 100
Info : BCM2835 GPIO JTAG/SWD bitbang driver
Info : SWD only mode enabled (specify tck, tms, tdi and tdo gpios to add JTAG mode)
Info : clock speed 1001 kHz
Info : SWD DPIDR 0x0bb11477
Info : stm32f0x.cpu: hardware has 4 breakpoints, 2 watchpoints
    TargetName         Type       Endian TapName            State       
--  ------------------ ---------- ------ ------------------ ------------
 0* stm32f0x.cpu       cortex_m   little stm32f0x.cpu       halted
adapter speed: 1001 kHz
target halted due to debug-request, current mode: Handler HardFault
xPSR: 0xc1000003 pc: 0xfffffffe msp: 0xfffffffc
adapter speed: 1001 kHz
target halted due to debug-request, current mode: Handler HardFault
xPSR: 0xc1000003 pc: 0xfffffffe msp: 0xfffffffc
adapter speed: 4061 kHz
** Programming Started **
auto erase enabled
Info : device id = 0x10006444
Info : flash size = 32kbytes
Error: stm32x device protected
Error: failed erasing sectors 0 to 15
** Programming Failed **
shutdown command invoked

Reaping losing child 0x72f8b0 PID 1772 
Makefile:40: recipe for target 'install' failed
make: *** [install] Error 1
Removing child 0x72f8b0 PID 1772 from chain.
AR17HY commented 2 years ago

Error: stm32x device protected => use ST-link utility to unlock your memory (you can keep the boot-loader section protected) If it is no enough, you might need to change the flash address in your Linker