Categories

{{ selectedCategory.name }}

{{ topic.Title }} {{ topic.Ddate | formatDate }}

{{ topic.Content }}

No topics found!

NXP/ST Power Architecture: Target memory access

14-Mar-2024

Various cores within the PowerPC e200 family include a MMU (Memory Management Unit). For these particular cores to be able to access their program space memory, the MMU needs to be configured and TLB (Translation Look aside Buffer) entries have to be created at start-up.

Variables located in memory regions that are not mapped or incorrectly mapped by the MMU, can not be accessed by the MCU internal resources. These variables remain greyed out in the Watch Window and their values appear uninitialized at their virtual location in the Memory Window.


Possible solution

Make sure that the MMU is getting properly configured and TLB (Translation Look aside Buffer) entries are being created in the start-up code of the application.

1. Check the RESET method option in the Hardware / CPU options / Reset dialog. If the option Stop and preset is used, verify that this does not result in skipping the execution of the start-up code.

2. Use the following winIDEA plugins to verify for each core the MMU configuration and the memory mapping of the TLB entries:

  • MMU: Open View / [<device>.COREn].PowerPC / MMU
  • TLB1: Open View / [<device>.COREn].PowerPC / TLB1

3. Set BP after TLB is configured in the startup code for winIDEA to read MAS registers which are used to calculate virtual addresses of variables shown in watch window. MAS registers cannot be read in real-time, hence CPU must be stopped.


More resources in winIDEA Help

Was this answer helpful?

Sorry this article didn't answer your question, we'd love to hear how we can improve it.
Note: This form won't submit a case. We'll just use it to make this article better.

Similar topics

{{ topic.Title }} {{ topic.Ddate | formatDate }}

{{ topic.Content }}

No similar topics found!

Other topics in the same category

{{ topic.Title }} {{ topic.Ddate | formatDate }}

{{ topic.Content }}

No topics found!