cancel
Showing results for 
Search instead for 
Did you mean: 

Meaning of "Value" Field in Option Bytes STM32

RKher.1
Associate III

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

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

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".

View solution in original post

1 REPLY 1
TDK
Guru

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".