Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User18151
Level 3
Level 3
First like received First solution authored
Hi AURIX Community,

How can you initialize the TC2XX RAM prior to usage?

Thank you and regards
Christine


#8042000 12262
0 Likes
1 Reply
User17612
Level 4
Level 4
First like received
Hi Christine,

In the AURIX microcontroller, there are several ways you can initialize the RAM before using.

The SSW (Start-up software) will initialize the selected RAMs which is configurable in the UCB_DFLASH PROCOND entry. The bitfield RAMINSEL will enable the user to select which RAMs to initialize (CPU RAMs, LMU).

For other RAMs, mainly two options are available:
- If the RAM is accessible by the CPU, the user can sweep through the RAM with the CPU or DMA through the RAM to write the desired value.
The user can also use the MTU (memory test unit) to initialize the RAM with a desired value. The actual procedure is written in the user's manual for each device under the MTU chapter "Filling a Memory with Defined Contents".
- If the clock input to the module is not enabled, enable the clock input for the module containing the RAM which you want to initialize.
In general, using the MTU is more efficient and faster.

Note that some RAMs such as the EMEM will need special care such as unlocking before initialization. Such information is available in the respective chapters (See chapter "EMEM initialization").

Hope this helps!
Lucas
0 Likes