Closed michsens closed 2 years ago
I like this.
Can you test which exception occurs in stm32.get_flash_size(family)
and/or stm32.get_uid(family)
on F4?
I'd like to catch a specific Exception instead of a broad except
.
I'll let you know as soon as I can figure it out.
Okay, I got it. It is obviously the same as the outer exception:
try:
flash_size = self.stm32.get_flash_size(family)
device_uid = self.stm32.get_uid(family)
except bootloader.CommandError:
# special fix for F4, L0 and further devices
flash_size, device_uid = self.stm32.get_flash_size_and_uid(family)
By the way, could you please update following to the bootloader.py to include the L0 family?:
CHIP_ID = {
...
# flash size to be looked up
0x417: "STM32L05xxx/06xxx",
....
}
UID_ADDRESS = {
...
# ST RM0451 25.2 Unique device ID register (96 bits)
"L0": 0x1FF80050,
...
}
and
FLASH_SIZE_ADDRESS = {
...
# ST RM4510 25.1 Memory size register
"L0": 0x1FF8007C,
...
}
Thanks.
Hi,
how is the progress? Is there any chance to see the changes is the next release?
Regards
Robert.
This will be in the next release.
But this is still a while out.
Merged in db014b2aadd07eabca4e5fac2967bd3495542bdb .
How about a change of
https://github.com/florisla/stm32loader/blob/497e1f7064129eaabd75b7a73412ac89c1f311a4/stm32loader/bootloader.py#L391-L406
to
Finally
https://github.com/florisla/stm32loader/blob/497e1f7064129eaabd75b7a73412ac89c1f311a4/stm32loader/main.py#L269-L274
Can be changed to
Other Controllers can be added.
Regards
Robert.