CVA BlueWhale CVM011x

From SEGGER Wiki
Revision as of 16:25, 24 April 2023 by Arne.kulinna (talk | contribs) (Created page with "__TOC__ The CVA BlueWhale CVM011x are Cortex-M0+ based MCUs. ==Internal Flash== ===Supported Regions=== The internal flash is divided into program flash and data flash: *Pro...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The CVA BlueWhale CVM011x are Cortex-M0+ based MCUs.

Internal Flash

Supported Regions

The internal flash is divided into program flash and data flash:

  • Program flash storage area starting at 0x00000000 with up to 224KB
  • Program flash configuration field area starting at 0x00000400 with 1KB
  • Data flash storage area starting at 0x10000000 with 32KB

For now, the J-Link supports the program flash storage and data flash storage. Specific handling of the program flash configuration fields is not supported.

Option Byte Programming

The CVM011x series devices provides a program flash configuration field area (option bytes) which allow some "permanent" configuration as well as readout protection for the device. The option bytes become effective after a reset, or, if the read protection is set while a debugger is still connected through JTAG/SWD, become effective after a power-on-reset.

The option byte area consists of multiple configuration fields. After a reset, the values within these fields will be written into the corresponding registers. All complementary bytes are automatically set when writing the option bytes.

CVM011x
Address Register mapping
0x00000400 { backdoor keys[63:0] }
0x00000408 { FTFC_DFPRONT[27:0], Reserved[3:0], FTFC_DFPRONT[7:9], FTFC_EFPRONT[7:0], Reserved[15:0] }
0x00000410 { Reserved[3:0], FTFC_FSEC[5:4], FTFC_FSEC[7:6], Reserved[55:0] }
0x00000418 { FTFC_FSEC[1:0], Reserved[61:0] }
0x00000420 User defined Info

To avoid accidental writes of the option bytes, CVM011x devices have two flash loader options to choose from. The 'Default' loader checks, whether the option byte area is affected by new data. In this case programming or erasing returns an error. By executing chip erase the option bytes will also be erased and the FTFC_FSEC SECURE bits will be set to unsecure. The 'With option bytes' loader does not check for any overlap of the option byte area.

Note:

Writing a value of 0xFF inside FTFC_FSEC will read-protect the CVM011x . In order to keep the device unprotected you have to write the correct key value to FTFC_FSEC.

  • FTFC_FSEC = 0xF2

Reset

No device specific reset is necessary. The normal Cortex-M reset is performed.

See here for more information: https://wiki.segger.com/J-Link_Reset_Strategies#Type_0:_Normal

Evaluation Boards