From: Leonardo S. d. S. <leo...@gm...> - 2017-06-30 11:41:39
|
Hello Nazmul, I have a suggestion that might be worth a try. I've had difficulty with low-power modes on STM32. I was using an STM32L0 Discovery board. In my case, the software that was already programmed on the chip put the CPU in a low-power mode (usually Stop Mode) immediately after reset. The debug interface gets disabled by default (this is configurable, but OpenOCD needs a chance to do it) and the connection fails. To be honest, it does not look like the same problem you are having (you would be getting completely dropped connections), but it is worth a try. Hold down the reset button on the board. Enter the "reset init" or "reset halt" command and release the reset button right after you press enter. See if the reset command works. You can try flash write_image afterwards. But make sure to use the right image for your board. What is the point of flashing an F4 image on an L4? Regards, Leonardo On Fri, Jun 30, 2017 at 12:28 AM, Nazmul Alam <fad...@gm...> wrote: > Hi Santos, > My bad. Here are the details - > > Board - STM32L4Discovery (STM32L475VG) > Debug Adapter - STLink v2.1 > OpenOCD - Open On-Chip Debugger 0.10.0+dev-00161-g1725abc > (2017-06-28-21:51) > Config - board/stm32l4discovery.cfg > > Regards, > > > On Thu, Jun 29, 2017 at 8:04 AM, <ka...@as...> wrote: > >> Karl Hammar: >> > Karl Hammar: >> ... >> > and the above shortens to: >> > >> > %.flash: %.elf >> > @echo FLASH $< >> > @openocd -f openocd.cfg \ >> > -c "program $(*).elf reset" \ >> > -c "shutdown" $(NULL) >> > @touch $@ >> >> >> %.flash: %.elf >> openocd -f openocd.cfg -c "program $(*).elf reset exit" >> @touch $@ >> >> is even shorter... (thanks Paul). >> >> Regards, >> /Karl Hammar >> >> ----------------------------------------------------------------------- >> Aspö Data >> Lilla Aspö 148 >> S-742 94 Östhammar >> Sweden >> +46 173 140 57 >> >> >> >> ------------------------------------------------------------ >> ------------------ >> Check out the vibrant tech community on one of the world's most >> engaging tech sites, Slashdot.org! http://sdm.link/slashdot >> _______________________________________________ >> OpenOCD-user mailing list >> Ope...@li... >> https://lists.sourceforge.net/lists/listinfo/openocd-user >> > > > > -- > with best regards, > Nazmul Alam Shovon > > > *শুভেচ্ছান্তে, নাজমুল আলম শোভন* > > blog : https://yourdigitaleffects.wordpress.com/ > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > OpenOCD-user mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openocd-user > > |