[SOLVED] GigaDevice GD32F3x0 protection/security

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

  • [SOLVED] GigaDevice GD32F3x0 protection/security

    Hi,

    I need to program GD32F310F4/8 devices in production via SWD and miss the security feature which seems to be missing for all GD32F3x0.
    These two option byte registers OB_SPC/OB_SPC_N cannot be written from .hex file and there is no project option to set them.

    Source Code

    1. 0x1ffff800 OB_SPC
    2. option byte Security Protection Code
    3. 0xA5: No protection
    4. any value except 0xA5 or 0xCC: low level protection
    5. 0xCC: high level protection
    6. 0x1ffff801 OB_SPC_N OB_SPC complement value
    Writing them seems is possible via FMC_WP register.Is there a way to support this or another way to set these during mass programming? I don't want to set these in firmware for flash memory reduction.

    Thanks in advance & best regards,
    Alex
  • Hi Alex,
    I assume you are using J-Flash for programming?
    In this case, you can use the Exit steps in the J-Flash project options.

    The GD32F1 devices have mostly the same option byte programming procedure as the STM32F1 do.
    There is a J-Flash project in the SEGGER wiki that sets RDP for the STM32F1 via the exit steps.
    After some small adjustments, it should also work for the GD32F1 devices.

    Does this answer your question?

    BR
    Fabian
    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.