-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STM32L011D4 flash/erase error #565
Comments
Probably duplicate of #564. I only added preliminary support for STM32L011xx so it would show up in the probe. It indeed seems te flashloader for this version is currently broken. |
Could you test against PR #572 (latest git master)? |
Hello!
Size of flashed program was 8.5k and interesting thing is, that program start after reset. In #572, is wrong parameter .sram_size, I thing. The amount of sram is only 2kB, so .sram_size=0x800 Next, if the MCU is in boot state (BOOT0 pin in hi state after HW reset), stlink cant connect: unknown chip id! 0 |
I tried flashing another board and got the same error (3/4 pages written as it was a small test program), so #572 might have some issues. The .sram_size parameter is a bit confusing; the chip only has 2kB of sram but table 3 of RM0377 (pg 52) seems to suggest that the total reserved memory address space is 8k. I'll try changing back to .sram_size=0x800 and see if that fixes the error. |
@duro80 I missed adding Note that I tried changing |
Hi @zakqwy .
The change is in line: src/flash_loader.c: Successfully loaded flash loader in sram |
@duro80 does running with --debug give you any more detail on the error? I can't recreate on my end, at least with my STM32L011G4 boards. |
I try on another computer, and result is here:
With parameter --debug: http://pastebin.com/6VV3VnZV |
Problem seems to be in function stlink_flash_loader_run(...), sile flash_loader.c. At the end of function (line 363) is wait cycle:
I think, that core is still RUNNING, because function stlink_flash_loader_run return -1. In my previous comment, I attached listing of st-flash with --debud parameter. The file has 3.5MB and most of the content of log output was:
But I don't now how to enter in HALT state to correctly exit stlink_flash_loader_run function. May be flashloader is no correct for L0, I don't now. |
Hmm. Again, unfortunately I have to defer to the experts on this one. I was able to get the micro flashed tying the BOOT0 pin to ground and disconnecting the nRST line from my Stlink/v2. Maybe give that a shot? |
Hi. I use ST-link like http://www.ebay.com/itm/Mini-ST-Link-V2-Stlink-Emulator-Downloader-Programming-STM8-STM32-w-Metal-Shell-/282122691251 But: interesting is, that st-flash write "Flash written and verified! jolly good!" and the end. |
Program st-info detect connected MCU, only RAM size is wrong. After try erase/flashing binary file (with st-flash), there is an error:
st-flash erase
st-flash write program.bin 0x8000000
I also try MCU STM32L031K6 (nucleo32 board) and works fine. Is there problem in flashloader or somewhere else?
Please add support for STM32L011xx.
The text was updated successfully, but these errors were encountered: