2022-07-11 08:51 AM
2022-07-11 08:54 AM
In addition to that. Debug session allways start with the HardFault_Handler().
What I have noticed that for the particular MCU there is A, Z, Y, X, 1 revision (according to errata sheet) and no one has 10f8 ID CODE.
Looks like i got a clone.
2022-07-11 08:56 AM
2022-07-11 09:07 AM
Don't use the ST-LINK Utilities, it has been deprecated for several years at this point. Use STM32 Cube Programmer.
The Reference Manual and the Errata?
The RM should have details of the Chip, Stepping/Revision, and also the address in OTP to read the tested flash size from.
STM32L15xxC STM32L162xC Rev 0x10F8
Should be marked as "1" or "V", please attach a large, clear, in focus image of the part in question.
2022-07-11 09:09 AM
Pull current materials
https://www.st.com/en/microcontrollers-microprocessors/stm32l151rd.html#documentation
2022-07-11 09:15 AM
2022-07-11 09:16 AM
Pull current tools, tools which are old are not future-proof, and will not be aware of any new die, mask sets, fabs or steppings
https://www.st.com/en/development-tools/stm32cubeprog.html
2022-07-11 09:17 AM
Cube Programmer also can not recognize the REV ID:
19:16:00 : Board : --
19:16:00 : Voltage : 3.25V
19:16:00 : SWD freq : 4000 KHz
19:16:00 : Connect mode: Normal
19:16:00 : Reset mode : Software reset
19:16:01 : Device ID : 0x427
19:16:01 : Revision ID : --
19:16:01 : UPLOADING OPTION BYTES DATA ...
19:16:01 : Bank : 0x00
19:16:01 : Address : 0x40023c1c
19:16:01 : Size : 136 Bytes
19:16:01 : Bank : 0x01
19:16:01 : Address : 0x1ff80000
19:16:01 : Size : 136 Bytes
19:16:01 : UPLOADING ...
19:16:01 : Size : 1024 Bytes
19:16:01 : Address : 0x8000000
2022-07-11 09:18 AM
And the screenshot of document is page of ERRATA to L15xx family of devices
2022-07-11 09:22 AM
@Peter BENSCH @Nawres GHARBI @Sara BEN HADJ YAHYA
Can you please review this situation with the consistency of the tools, docs, and markings. Thanks.