|
From: Jakub P. <jak...@ka...> - 2017-04-01 22:36:19
|
Hello! I am currently facing a big obstacle while trying to flash a STM32f1 Microcontroller with OpenOCD 0.7.0 with the help of a Segger JLink. The Flashing fails and as I am quite a beginner I am unable to diagnose the problem, however I am sure it is not a problem with the interface device or the connection as I am able to flash the same chip with certain binaries but not those I've built with the toolchain I recently updated (Compiled with arm-none-eabi-gcc). Could a faulty binary lead to problems with flashing? I am using a sound linker script (auto generated by openstm32 for the Chip in question) and have also disassembled the binary which seemed to be fine. Thank you very much for your help! Jakub Pawlak Here the log for my flashing attempt: adapter speed: 1000 kHz adapter_nsrst_delay: 100 jtag_ntrst_delay: 100 cortex_m3 reset_config sysresetreq undefined debug reason 6 - target needs reset invalid command name "delay" fast_load flash bank bank_id driver_name base_address size_bytes chip_width_bytes bus_width_bytes target [driver_options ...] gdb_sync halt [milliseconds] init mflash bank soc_type base_addr pin_id target nand device bank_id driver target [driver_options ...] poll ['on'|'off'] reset [run|halt|init] resume [address] soft_reset_halt stm32f1x.cpu stm32f1x.cpu array2mem arrayname bitwidth address count stm32f1x.cpu cget target_attribute stm32f1x.cpu configure [target_attribute ...] stm32f1x.cpu curstate stm32f1x.cpu eventlist stm32f1x.cpu mdb address [count] stm32f1x.cpu mdh address [count] stm32f1x.cpu mdw address [count] stm32f1x.cpu mem2array arrayname bitwidth address count stm32f1x.cpu mwb address data [count] stm32f1x.cpu mwh address data [count] stm32f1x.cpu mww address data [count] target target count target create name type '-chain-position' name [options ...] target current target init target names target number number target smp targetname1 targetname2 ... target types target_request target_request debugmsgs ['enable'|'charmsg'|'disable'] targets [target] target : command requires more arguments in procedure 'target' target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x00003264 msp: 0x20005000 auto erase enabled wrote 0 bytes from file skeleton_e17 in 0.000096s (0.000 KiB/s) Error: timed out while waiting for target halted Error: jlink_usb_read_emu_result retried requested = 1, result=0, in_length=50 Error: error executing cortex_m3 crc algorithm Error: JTAG-DP STICKY ERROR Error: MEM_AP_CSW 0x23000052, MEM_AP_TAR 0x10000004 Error: JTAG-DP STICKY ERROR Error: MEM_AP_CSW 0x23000052, MEM_AP_TAR 0x10000004 in procedure 'verify_image' target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x00003264 msp: 0x20005000 Error: jlink_usb_read_emu_result retried requested = 1, result=0, in_length=27 Error: jlink_usb_read_emu_result retried requested = 1, result=0, in_length=27 -- -- Jakub Pawlak Kaiserslautern Racing Team - KaRaT e.V. Software Developement Gottlieb-Daimler-Str. 47 | 67663 Kaiserslautern Tel.: 0631/ 205 4026 Fax.: 0631/ 205 2612 Handy: 0176 609 321 39 jak...@ka... www.karat-racing.de |