Skip to main content
RKher.1
Associate II
October 8, 2021
Solved

Meaning of "Value" Field in Option Bytes STM32

  • October 8, 2021
  • 1 reply
  • 769 views

I am trying to understand the semantics of the "value" field in the option bytes in Cube Programmer. On my STM32G0 part, the PCROP1A_STRT and PCROP1A_END fields have "value" and "address" fields. What are valid inputs for the "value" field? Thanks!

0693W00000FBwiIQAT.jpg

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

PCROP1A_STRT can be any 9-bit value, though it will only have an effect in the corresponding memory region actually exists on the device. The value corresponds to an address according to the following formula (per the Reference Manual):

0693W00000FBx07QAD.png 

In this case, it corresponds to 0x08000000 + 0xFF * 0x200 = 0x0801FE00.

The address is shown for convenience. They are not independent values.

In this case, since the start address is after the end address, the region is empty.

1 reply

TDK
TDKBest answer
Super User
October 9, 2021

PCROP1A_STRT can be any 9-bit value, though it will only have an effect in the corresponding memory region actually exists on the device. The value corresponds to an address according to the following formula (per the Reference Manual):

0693W00000FBx07QAD.png 

In this case, it corresponds to 0x08000000 + 0xFF * 0x200 = 0x0801FE00.

The address is shown for convenience. They are not independent values.

In this case, since the start address is after the end address, the region is empty.

"If you feel a post has answered your question, please click ""Accept as Solution""."