STM32 Open-Bootloader memory addresses
I am working on a port of the STM32L5xx Open-Bootloader for the STM32L4xx MCUs so that I can disable some of the peripherals that I am not using. While working on the port, I had some questions about the memory regions defined in the openbootloader_config.h file. I am using the references manuals linked below to find the address and size of the memory regions (Figure 2. pg. 88 for the L5 and Figure 4. pg. 95 for the L4). The open bootloader library and reference project being used are also linked below.
ICP (system memory): In the L4 MCUs, there are two separate system memory sections as opposed to 1 region for the L5 MCUs. In the port, will I need to define a separate region in the code for each different system memory or should I use one region over the other?
OB (option bytes): Same question as the system memory. There are two regions for the option bytes for the L4 and I'm not sure which one is needed by the bootloader.
OTP/ EB (Engi bytes): In the L5 example, the length of the OTP section does not match the documentation and part of the remaining memory is labeled as EB (engi bytes) by the comments. I can not find what the engi bytes are or where to place this section for the L4 port, and I'd like to know what OTP stands for, and how large to make this section for a L4 MCU?
Also, at the top of the config file is the MSB and LSB for the device ID. Where can I find the appropriate device ID for the L4 MCUs?
openbl library: https://github.com/STMicroelectronics/stm32-mw-openbl
openbl project (STM32L5xx): https://github.com/STMicroelectronics/stm32l5-openbl-apps/tree/main
Reference manual (STM32L5xx): https://www.st.com/resource/en/reference_manual/rm0438-stm32l552xx-and-stm32l562xx-advanced-armbased-32bit-mcus-stmicroelectronics.pdf
Reference manual (STM32L4xx): https://www.st.com/resource/en/reference_manual/rm0432-stm32l4-series-advanced-armbased-32bit-mcus-stmicroelectronics.pdf
