@@ -382,15 +382,21 @@ The option `CORTEX_M0` is automatically selected for this target.
382382The option ` NVM_FLASH_WRITEONCE=1 ` is mandatory on this target, since the IAP driver does not support
383383multiple writes after each erase operation.
384384
385- This target also supports secure memory protection on the bootloader region
386- using the ` FLASH_CR:SEC_PROT ` and ` FLASH_SECT:SEC_SIZE ` registers. This is the
385+ #### STM32G0 Secure Hide Protection Feature (Optional)
386+
387+ This part supports a "secure memory protection" feature makes the wolfBoot partition unaccessible after jump to application.
388+
389+ It uses the ` FLASH_CR:SEC_PROT ` and ` FLASH_SECT:SEC_SIZE ` registers. This is the
387390number of 2KB pages to block access to from the 0x8000000 base address.
388391
392+ Command example to enable this for 32KB bootloader:
393+
389394```
390395STM32_Programmer_CLI -c port=swd mode=hotplug -ob SEC_SIZE=0x10
391396```
392397
393- For RAMFUNCTION support (required for SEC_PROT) make sure ` RAM_CODE=1 ` .
398+ Enabled with ` CFLAGS_EXTRA+=-DFLASH_SECURABLE_MEMORY_SUPPORT ` .
399+ Requires ` RAM_CODE=1 ` to enable RAMFUNCTION support.
394400
395401### STM32G0 Programming
396402
@@ -460,10 +466,22 @@ The option `CORTEX_M0` is automatically selected for this target.
460466The option ` NVM_FLASH_WRITEONCE=1 ` is mandatory on this target, since the IAP driver does not support
461467multiple writes after each erase operation.
462468
469+ #### STM32C0 Secure Hide Protection Feature (Optional)
470+
471+ This part supports a "secure memory protection" feature makes the wolfBoot partition unaccessible after jump to application.
472+
473+ It uses the ` FLASH_CR:SEC_PROT ` and ` FLASH_SECT:SEC_SIZE ` registers. This is the
474+ number of 2KB pages to block access to from the 0x8000000 base address.
475+
476+ Command example to enable this for 10KB bootloader:
477+
463478```
464- STM32_Programmer_CLI -c port=swd mode=hotplug -ob SEC_SIZE=0x10
479+ STM32_Programmer_CLI -c port=swd mode=hotplug -ob SEC_SIZE=0x05
465480```
466481
482+ Enabled with ` CFLAGS_EXTRA+=-DFLASH_SECURABLE_MEMORY_SUPPORT ` .
483+ Requires ` RAM_CODE=1 ` to enable RAMFUNCTION support.
484+
467485### STM32C0 Programming
468486
469487Compile requirements: ` make TARGET=stm32c0 NVM_FLASH_WRITEONCE=1 `
0 commit comments