-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Self bricking when uploading large payload #1
Comments
Many 64KiB STM32F103C8 parts unofficially have 128KiB flash anyways. Add support for explicitly recognizing the effective flash size we're willing to work with by allowing targets to set the flash size with FLASH_SIZE_OVERRIDE, which overrides the flash size in bytes. Previously, download sizes were not checked (see issue #1), but upload sizes were, so applications would've been limited to 56KiB when reading back the firmware. All existing configurations except for the Maple Mini (which has a real 128KiB part anyways) now set FLASH_SIZE_OVERRIDE to 128KiB.
Fixes issue #1 by making target_flash_program_array() test against the end of the flash address space, as proposed by @perillamint
Hi perillamint, Your patch looks sound to me. I've done some refactoring so that the flash size is a little better defined across all targets. I've pushed a tentative branch here: If you want to try it out, as far as I can tell, it should merge cleanly apart from the functionally equivalent changes in |
Thanks for fix. I think your refactoring much looks cleaner then my "quick n dirty" solution. 👍 |
Great, I've merged the fixes to master. |
Hello, while I porting DAPBoot on TS100 soldering iron, I discovered this problems:
To mitigate this problem, I patched DAPBoot like this: eDesignOSS@e3a5a63
Before making PR with this patch, I want to hear some comments about this patch.
Thanks.
The text was updated successfully, but these errors were encountered: