-
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
Option: ignore flash size reported by chip #305
Comments
Here's my little hack for this:
So you call e.g., st-util as C8T6HACK= st-util and magically you get
I did this as an environment variable because setting an option may require changes in tons of Makefiles, build environments etc.; it is much less work to just set the environment variable before starting those. |
BTW, that hack is now available in my fork https://github.com/cabo/stlink |
I have same problem with F100C6T6 which should have 4KB of RAM (and don't have TIM4) like written in datasheet. But he have 8KB RAM and TIM4. stlink detects this chip like Low-density with 4KB RAM and i can't access addresses higher than 0x20000FA0 in gdb. I recompile source without this commit and it solved my problem. |
@potozi thanks for reporting! |
The bluepill board[1] is a tiny arduino-like developer board that is equipped with a powerful STM32F103 MCU. The chip is officially an STM32F103C8T6 model that in fact appears to have 128 KiB flash (cf. [2]). Thus it is recommended to use the patched stlink[3] to flash the firmware. [1] http://wiki.stm32duino.com/index.php?title=Blue_Pill [2] stlink-org/stlink#305 [3] https://github.com/cabo/stlink
The bluepill board[1] is a tiny arduino-like developer board that is equipped with a powerful STM32F103 MCU. The chip is officially an STM32F103C8T6 model that in fact appears to have 128 KiB flash (cf. [2]). Thus it is recommended to use the patched stlink[3] to flash the firmware. [1] http://wiki.stm32duino.com/index.php?title=Blue_Pill [2] stlink-org/stlink#305 [3] https://github.com/cabo/stlink
The bluepill board[1] is a tiny arduino-like developer board that is equipped with a powerful STM32F103 MCU. The chip is officially an STM32F103C8T6 model that in fact appears to have 128 KiB flash (cf. [2]). Thus it is recommended to use the patched stlink[3] to flash the firmware. [1] http://wiki.stm32duino.com/index.php?title=Blue_Pill [2] stlink-org/stlink#305 [3] https://github.com/cabo/stlink
i can confirm that also my BluePIll have 128KBytes |
The bluepill board[1] is a tiny arduino-like developer board that is equipped with a powerful STM32F103 MCU. The chip is officially an STM32F103C8T6 model that in fact appears to have 128 KiB flash (cf. [2]). Thus it is recommended to use the patched stlink[3] to flash the firmware. [1] http://wiki.stm32duino.com/index.php?title=Blue_Pill [2] stlink-org/stlink#305 [3] https://github.com/cabo/stlink
The bluepill board[1] is a tiny arduino-like developer board that is equipped with a powerful STM32F103 MCU. The chip is officially an STM32F103C8T6 model that in fact appears to have 128 KiB flash (cf. [2]). Thus it is recommended to use the patched stlink[3] to flash the firmware. [1] http://wiki.stm32duino.com/index.php?title=Blue_Pill [2] stlink-org/stlink#305 [3] https://github.com/cabo/stlink
The bluepill board[1] is a tiny arduino-like developer board that is equipped with a powerful STM32F103 MCU. The chip is officially an STM32F103C8T6 model that in fact appears to have 128 KiB flash (cf. [2]). Thus it is recommended to use the patched stlink[3] to flash the firmware. [1] http://wiki.stm32duino.com/index.php?title=Blue_Pill [2] stlink-org/stlink#305 [3] https://github.com/cabo/stlink
No flash size must normally be read from the chip before making any decision, but currently texane/stlink tools don't do that. |
I have a small dev board from ebay (like this http://www.ebay.com/itm/321569700934 ; available from many sellers) with a F103C8T6. According to the specs it should have 64k of flash. That is also what st-flash reports when writing to it.
But, and I don't know why this is actually possible, when I use the the "Flash Loader Demonstrator" from ST and flash via UART (setting bootloader pins accordingly) I can select a target "STM32F1_Med-density_128K" from a dropdown list (the only other entry being "STM32F1_Med-density_64K" for a F103C8T6). It is no problem to flash a bin (hex works of course, too, but with a bin it's easy to tell how much you really write) that is larger than 64k. It verifies the contents of the flash and whatever is written to the flash also works after that.
If I try to flash the same bin file with st-flash I get these messages:
and the write fails. Obviously it sees a bin that's too large for the flash and stops. But as seen before at least for the chips I have it's totally possible to write more than that sucessfully.
So it would be nice to have an option to either ignore the reported flash size completely or specify it on the command line (so verifying could still work and not stop reading prematurely)
The text was updated successfully, but these errors were encountered: