-
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
STM32F103C8T6 doesn't flash #172
Comments
Did you ever find a solution to this? I'm having the same issue now and can't find anything useful on Google |
Reopening this issue, |
I managed to fix it by trying random things in openocd, can't really say how. I tried 'stm32f1 unlock' or something like that, also erase. linux, stm32f103k8, stlink 1.2.0, stlink v2 |
Hmm, doing random things will not make life easier for other people to search to reproduce it. I have seen similar issues when |
I have two of those Chinese F103 modules, so I'll pay closer attention if I encounter the issue with the second one ;-) |
I will close this issue because you got it working "sort of". Feel free to open a new issue when there are still troubles. Of course with the appropriate level of details so people can point in the right direction and try reproduce for themselves. Thank you for your feedback. |
I got the same issue as MightyPork and solved it using OpenOCD : $ openocd -f interface/stlink-v2.cfg -f target/stm32f1x.cfg In OpenOCD's telnet session :
I then unplugged the target, and plugged it back in. Flash size was correctly recognized in st-flash ! :) |
Hello, I have the same issue:
Which tools I can run and what output will help to solve this issue? Thanks |
Please read my message above. It explains all you need to do :-) |
I tried this, but result is not as expected.
But Flash size is wrong. Should be 64K, not 128K.
|
You are using an STM32F103CBT6, right ? |
No, it is STM32F103C8. |
They're the same internally ;) That's why you get reports of 128K of flash on an STM32F103C8. More infos : http://www.stm32duino.com/viewtopic.php?t=110 tldr: it is totally normal that you get reports that your MCU is 128k |
Hmm, I think my MCU has only 64K. This line from openocd output (see above) can be a problem: Blinky example flashed to board is not working. It is possible to set the Flash size via openocd explicitly? |
Issue has been reviewed and is now permanently closed. |
Hello!
I tried ST-LINK v2 to flash STM32F103C8T6, but I cannot flash my code to the chip and it gives me a weird error:
2013-08-10T16:52:48 INFO src/stlink-common.c: Loading device parameters....
2013-08-10T16:52:48 INFO src/stlink-common.c: Device connected is: F1 Medium-density device, id 0x20036410
2013-08-10T16:52:48 INFO src/stlink-common.c: SRAM size: 0x5000 bytes (20 KiB), Flash: 0 bytes (0 KiB) in pages of 1024 bytes
stlink_sram_flash() == -1
The STM32F103C8T6 has 64KiB ROM but the st-flash and st-util display: Flash: 0 bytes (0 KiB) in pages of 1024 bytes
I tried to flash the STM32F103C8T6 on Windows with J-Link and it worked fine so I'm sure there is nothing wrong with my board.
The text was updated successfully, but these errors were encountered: