TI RM48Lx

From SEGGER Knowledge Base
Jump to navigation Jump to search

The TI RM48Lx are high-performance, safety-critical Cortex-R4F based microcontrollers, designed for real-time automotive and industrial applications with built-in functional safety features.

Flash Banks

RM48L5x, RM48L7x

Flash bank Base address J-Link support Flasher support Loader
Name Bank size
Internal flash 0x00000000 Default 2048 KB
No_auto_ECC 2048 KB
EEP flash 0xF0200000 Default 64 KB
No_auto_ECC 64 KB
OTP flash 0xF0000000 Default 4 KB

RM48L9x

Flash bank Base address J-Link support Flasher support Loader
Name Bank size
Internal flash 0x00000000 Default 3072 KB
No_auto_ECC 3072 KB
EEP flash 0xF0200000 Default 64 KB
No_auto_ECC 64 KB
OTP flash 0xF0000000 Default 4 KB


ECC flash automatic generation

  • When programming internal Flash or EEPROM banks, ECC is generated automatically when using the “Default” loader and is not generated when using the “No_auto_ECC” loader.

ECC RAM

  • RAM is initialized during target setup phase.

Watchdog Handling

  • The device has two watchdogs DWD and DWWD.
  • The watchdog are fed during flash programming.

Device Specific Handling

Reset

  • The device uses custom reset: Reset is performed using reset vector catch feature and ICEPick interface trigger.

Limitations

Dual Core Support

  • Although the RM48Lx series is a dual Cortex-R4F MPU, the cores always operate in lock-step mode (synchronous operation for redundancy and safety).

Attach

  • Attach is not supported by default because the J-Link initializes RAM for correct ECC operation by default.

Security

RM4x devices can be protected against unauthorized access to device memory and the ARM debug interface.

Lock procedure

To enable protection, a 128-bit key must be programmed into OTP memory at address 0xF00000000. The key can be programmed multiple times, subject to the following restriction: OTP memory only supports bit transitions from 1 to 0. Since this memory is protected by ECC, the same restriction applies to the corresponding ECC bits. Therefore, neither the new unlock key value nor its ECC code may contain any bit transitions from 0 to 1. TI provides the HAL Code Generator tool to generate a new key based on the currently programmed key. The default TI Visible Unlock Key is stored at address 0xF00000000 and consists of the following 32-bit words:

Byte offset Value
0x00 0xEFFDFFFF
0x04 0xFFFFFFFF
0x08 0xFFFDFFFE
0x0C 0xFFEFFFFF

Unlock procedure

A protected device can be unlocked using J-Link Commander or J-Flash. When J-Link detects a locked device, it prompts the user to enter the 128-bit unlock key. Alternatively, the key can be specified using the SetCPUConnectIDCODE J-Link command string. Both the J-Link command string and the unlock dialog expect the key as a raw byte stream in memory order, with the least significant byte of each 32-bit word first.

For example, key generated by HAL Code Generator:

Offset 0x00: 0xC7E58FCE
Offset 0x04: 0xF573EAE6
Offset 0x08: 0xF5CDEB9E
Offset 0x0C: 0x30026024
J-Link key input: CE8FE5C7E6EA73F59EEBCDF524600230

Evaluation Boards

Example Application