-
Notifications
You must be signed in to change notification settings - Fork 59
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
stm32l151zDT6 not supported. Check protection error #21
Comments
on the stm32L100RCT6 running sudo python3 pystlink.py -d which look like it is working |
as a workaround I was able to get it to flash my device by setting the _flash_size to 384 if it was 0 after trying to get the size in find_mcus_by_flash_size() so it seems it is having an issue detecting the flash size |
Yes, this is bug, or nonstandard by ST, I see this, in datasheet in section 31.1.1 Flash size register is exception for devices with your dev_id |
this need an workaround for this dev_id |
Cheers mate, this project is awesome, I was seaching for a stlink programmer that would run on a 32bit raspberry pi for ages and nothing worked apart from this. |
running on stm32l151zDT6:
sudo python3 pystlink.py -d
returns:
Connected to ST-Link/ V2, serial 38ff6a064d43323542092243
USB > f1 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00
USB < 28 80 83 04 48 37
USB > f5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
USB < 01 00
USB > f7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
USB < 97 06 00 00 00 08 00 00
USB > f2 43 00 00 00 00 00 00 00 00 00 00 00 00 00 00
USB < 80 00
USB > f2 30 a3 00 00 00 00 00 00 00 00 00 00 00 00 00
USB < 80 00
USB > f2 22 00 00 00 00 00 00 00 00 00 00 00 00 00 00
USB < 77 14 a0 2b
DEVICE: ST-Link/V2 V2J34S0
SUPPLY: 2.91V
COREID: 2ba01477
Stm32.core_halt()
Halted after 0 transactions
USB > f2 36 00 ed 00 e0 00 00 00 00 00 00 00 00 00 00
USB < 80 00 00 00 30 c2 2f 41
CPUID: 412fc230
CORE: CortexM3
USB > f2 36 00 20 04 e0 00 00 00 00 00 00 00 00 00 00
USB < 80 00 00 00 36 64 38 10
IDCODE: 10386436
USB > f2 36 cc 00 f8 1f 00 00 00 00 00 00 00 00 00 00
USB < 80 00 00 00 00 00 00 00
*** Connected CPU with DEV_ID: 0x436 and FLASH size: 0KB is not supported. Check Protection ***
USB > f5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
USB < 02 00
USB > f2 21 00 00 00 00 00 00 00 00 00 00 00 00 00 00
DONE in 0.14s
I get similar results with the stlink v3
The text was updated successfully, but these errors were encountered: