[feature] Support for setting option bytes to STM32L41x_L42x #1412
Labels
code/feature-request
component/st-flash
os/linux
os/windows
programmer/STLINK/V2
V2 / V2-A / V2-B
programmer/STLINK/V3
V3SET / V3MODS / V3MINI / V3MINIE / V3E / V3EC
status/resolved
status/resolved-verified
target/stm32l4
Milestone
Feature Description
The support for setting option bytes for STM32L41x_L42x family is not present in the current version of st-link v1.8 command line tool. Although there is a configuration file for the processor family in the source code
config/chips/L41x_L42x.chip
, the values foroption base
andoption size
are set to0
, which results in thestlink_read_option_bytes32()
andstlink_write_option_bytes32()
not being executed.As the option bytes base is zero in the configuration file, the st link structure
sl->option_base
sets with a value0
. This results in the read/write operation exit every time with an error return code (-1
).Debug Logs:
Here are some debug logs for the read operation if it is helpful.
Debug command line output:
st-flash --debug --area=option read
Expected :
It would be great to have support for st-link tool to set option bytes for
STM32L41x_L42x
MCU.Thank you for taking the time ❤️
The text was updated successfully, but these errors were encountered: