programming CIB in STM32

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • programming CIB in STM32

    Ive not yet found a way to program the 512 byte CIB block in a STM32W.

    Ive tried using jlink commander. 123.bin is a 512 byte file, where the first 16 bytes match the pre-programmed 'option bytes' at the start of the CIB area.

    J-Link>exec device=stm32w108c8 (allow opt. bytes)
    Info: Device "STM32W108C8 (ALLOW OPT. BYTES)" selected (64 KB flash, 8 KB RAM).
    J-Link>loadbin C:\work\svn\wml.hg.factory\
    trunk\123.bin,0x8040800

    Loading binary file... [C:\work\svn\wml.hg.factory\trunk\123.bin]
    Writing bin data into target memory @ 0x08040800.
    J-Link>verifybin C:\work\svn\wml.hg.factory\trunk\123.bin,0x8040800
    Loading binary file C:\work\svn\wml.hg.factory\trunk\123.bin

    Reading 512 bytes data from target memory @ 0x08040800.
    Verify failed @ address 0x08040810.
    Expected 98 read FFJ-Link>

    The same commands work in main flash. (0x80000000). I get the same behaviour
    with the jflash gui.

    version 4.54d

    Any clues?

    Thanks,
  • Hi,

    There is some special handling required for option byte programming.
    See UM08001, chapter 9.14.2 for more information. (It describes option byte programming for the STM32F10xxx devices but it is the same for the STM32W).
    segger.com/cms/admin/uploads/p…Docs/UM08001_JLinkARM.pdf

    Notre that currently only option byte programming is supported.
    Programming the customer specific data at 0x0804 0810 - 0x0804 09FF is not supported yet. We will check what can be done to support this too.


    Best regards
    Alex
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.