|
From: Jim <anc...@us...> - 2019-04-26 16:21:53
|
Two years ago is right around when this issue popped up, so I'm pretty sure it was that change that broke it :) I changed the command line to use the dual_bank config and it seems to have programmed fine. Sooooooooooo apparently not a bug and working as intended :) Thanks! --- ** [tickets:#233] Issue flashing STM32L071 processor** **Status:** new **Milestone:** 0.9.0 **Created:** Thu Apr 25, 2019 03:49 PM UTC by Jim **Last Updated:** Fri Apr 26, 2019 09:04 AM UTC **Owner:** nobody **Attachments:** - [OpenOCD-New.txt](https://sourceforge.net/p/openocd/tickets/233/attachment/OpenOCD-New.txt) (1.4 MB; text/plain) - [OpenOCD-Old.txt](https://sourceforge.net/p/openocd/tickets/233/attachment/OpenOCD-Old.txt) (1.9 MB; text/plain) Using openOCD 0.9.0 we were able to program and debug our STM32L071 boards. We had to upgrade to version 0.10.0 when the new L496 processor came out, but ever since then we've been unable to program our L0 boards. We ended up forking and modifying 0.9.0 to support the L496, but now that even newer shinier processors are coming out and we still have issues with the latest version, I figured I'd take a whole bunch of data and chime in. I'm attaching two files, one of them is the openOCD log log from our custom build based off of 2017-04-14 and one of them is the latest (2018-12-12). Both of them have -d3 turned on. The old version works every time. I can put a break point at the first instruction of main() and I'll get there every time. The new version I don't think ever works. It says it's done loading but it never hits the break point. If I hit pause its lost off in the weeds and the processors registers don't look like they have valid information: R0 through R12 all have a value of 0xffffffff. SP is 0x20004fe0. LR is 0xfffffffe. PC is 0xfffffffe. If I program the processor with ST-Link and then attach to a running firmware, then I can debug fine, it just appears to have issues with flashing it. I have confirmed this using a Nucleo board and there is no firmware running on it (I erase it with St-Link and power cycle the board before attempting to program it). --- Sent from sourceforge.net because ope...@li... is subscribed to https://sourceforge.net/p/openocd/tickets/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/openocd/admin/tickets/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |