|
From: Luis R. <lfr...@gm...> - 2014-07-18 00:08:12
|
Hi Elliott, Thanks it was in fact a jumper placed in Boot0 that my college had left. For Nucleo F302 there is in fact no support for it in openocd, I just make it work with my board and going to submit a patch. Luis On 17 July 2014 20:10, Elliott Partridge <el...@br...> wrote: > Hello, > > On Thu, Jul 17, 2014 at 5:50 AM, Luis Rodrigues <lfr...@gm...> > wrote: > >> Hi all, >> I'm trying to use openocd (dev version) to flash Nucleo F030R8, F302R8. >> Both are falling for for different reasons. >> >> For the F030R8 I can't even run openocd: >> > >> ./src/openocd --search tcl/ -f board/st_nucleo_f030r8.cfg >> Open On-Chip Debugger 0.9.0-dev-00098-ge03eb89 (2014-07-17-11:05) >> Licensed under GNU GPL v2 >> For bug reports, read >> http://openocd.sourceforge.net/doc/doxygen/bugs.html >> srst_only separate srst_nogate srst_open_drain connect_deassert_srst >> Info : This adapter doesn't support configurable speed >> Error: read version failed >> in procedure 'init' >> in procedure 'ocd_bouncer' >> in procedure 'transport' >> in procedure 'init' >> > > Here's my output on Windows 7, using the Nucleo driver provided by ST > (WinUSB, I believe): > > C:\>openocd -f board/st_nucleo_f030r8.cfg > Open On-Chip Debugger 0.8.0 (2014-04-28-08:42) > Licensed under GNU GPL v2 > For bug reports, read > http://openocd.sourceforge.net/doc/doxygen/bugs.html > srst_only separate srst_nogate srst_open_drain connect_deassert_srst > Info : This adapter doesn't support configurable speed > Info : STLINK v2 JTAG v19 API v2 SWIM v2 VID 0x0483 PID 0x374B > Info : using stlink api v2 > Info : Target voltage: 3.249012 > Info : stm32f0x.cpu: hardware has 4 breakpoints, 2 watchpoints > > Driver problem? Board jumpers? Can you try it on a Windows machine to > verify that the board is good? Driver is available here (under Related > Tools and Software): > > http://www.st.com/web/catalog/tools/FM116/SC959/SS1532/LN1847/PF259997?icmp=nucleo-ipf_pron_pr-nucleo_feb2014&sc=nucleoF030R8-pr > > > >> >> >> ------- >> >> For the F302R8 it runs fine with (I used config for 334r8 because there >> was none for 302): >> ./src/openocd --search tcl/ -f board/st_nucleo_f334r8.cfg >> >> But if I: >> ./src/openocd --search tcl/ -f board/st_nucleo_f334r8.cfg -c init -c >> "reset halt" -c "flash probe 0" -c "stm32f2x mass_erase 0" -c "flash >> write_image erase aa.hex 0x08000000" -c "reset" -c shutdown >> Open On-Chip Debugger 0.9.0-dev-00098-ge03eb89 (2014-07-17-11:05) >> Licensed under GNU GPL v2 >> For bug reports, read >> http://openocd.sourceforge.net/doc/doxygen/bugs.html >> srst_only separate srst_nogate srst_open_drain connect_deassert_srst >> Info : This adapter doesn't support configurable speed >> Info : STLINK v2 JTAG v19 API v2 SWIM v3 VID 0x0483 PID 0x374B >> Info : using stlink api v2 >> Info : Target voltage: 3.259279 >> Info : stm32f3x.cpu: hardware has 6 breakpoints, 4 watchpoints >> target state: halted >> target halted due to debug-request, current mode: Thread >> xPSR: 0x01000000 pc: 0x1ffff198 msp: 0x20001258 >> Info : device id = 0x10016439 >> Warn : Cannot identify target as a STM32 family. >> Error: auto_probe failed >> in procedure 'flash' >> >> >> Anyone has any idea? >> >> >> ------------------------------------------------------------------------------ >> Want fast and easy access to all the code in your enterprise? Index and >> search up to 200,000 lines of code with a free copy of Black Duck >> Code Sight - the same software that powers the world's largest code >> search on Ohloh, the Black Duck Open Hub! Try it now. >> http://p.sf.net/sfu/bds >> _______________________________________________ >> OpenOCD-user mailing list >> Ope...@li... >> https://lists.sourceforge.net/lists/listinfo/openocd-user >> >> > > > ------------------------------------------------------------------------------ > Want fast and easy access to all the code in your enterprise? Index and > search up to 200,000 lines of code with a free copy of Black Duck > Code Sight - the same software that powers the world's largest code > search on Ohloh, the Black Duck Open Hub! Try it now. > http://p.sf.net/sfu/bds > _______________________________________________ > OpenOCD-user mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openocd-user > > |