Skip to main content
Visitor II
June 26, 2024
Solved

Need support to program STM32U5 Option byte using IAR IDE

  • June 26, 2024
  • 1 reply
  • 1602 views

Hi,

I am developing embedded software using IAR IDE version 9.20 on STM32U5.  I would like to modify option byte to enable SRAM ECC while programming the device using IAR IDE. Request to share the thoughts.

Regards,

Hareesha

    This topic has been closed for replies.
    Best answer by harisuvarna

    Hi All,

    I contacted IAR technical support and got support to enable ECC using IAR Flash loader Macro. Default Flashloader MACRO needs to be modified to enable SRAM ECC. IAR projects settings need to be updated as follows to use updated flash loader  file

    harisuvarna_0-1719931086081.png

    Default flash loader is available in IAR installation location

    C:\Program Files\IAR Systems\Embedded Workbench 9.0\arm\config\flashloader\ST

     

    Regards,

    Hareesha

    1 reply

    Graduate II
    June 26, 2024

    I'd imagine this is a question IAR Support could more readily answer for you.

    But, you can also program the controller from your OWN CODE.

    You can check the current settings of the OPTION BYTES, and change them to reflect the mode of operation you specifically desire, irrespective of the tools or IDE you use.

    Does your JTAG pod offer any application to set configurations? ie J-Link Commander or ST-LINK STM32 Cube Programmer CLI ?

    Visitor II
    June 27, 2024

    Hi,

    Thanks for the response, I did program the option byte using my code , however from production point of view it would be good if option bytes are programmed along with firmware as system needs to be reset upon option byte update. 

    It is possible to update Option byte using STM32Cube programmer. However we use IAR IDE for software development, hence from ease of development perspective , it would be good if we have method to update option byte from IAR IDE. Please share your thoughts.

    Regards,

    Hareesha  

    Graduate II
    June 27, 2024

    I'm not sure a licensed install of IAR at each production test station is something that scales well.

    Gang-Programming you might want to look at what protocols the System Loader offers