Fix flash size of stm32discovery vl #829
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
stlink seems to be unable to read flash size on stm32discovery F1 VL (stlink-v1):
st-flash 1.5.1-32-g4909dd8
2019-09-02T17:49:05 INFO common.c: Loading device parameters....
2019-09-02T17:49:05 INFO common.c: Device connected is: F1 Medium/Low-density Value Line device, id 0x10016420
2019-09-02T17:49:05 INFO common.c: SRAM size: 0x1000 bytes (4 KiB), Flash: 0 bytes (0 KiB) in pages of 1024 bytes
Since the flash size is equal to zero stm32F1 cannot be flashed with :
Unknown memory region
This patch add a work around like for L1 to fix manually size if value read equal 0.