Skip to main content
Pavel A.
September 1, 2019
Solved

STM32H7 single core, which RAM is good for code?

  • September 1, 2019
  • 4 replies
  • 1521 views

Dear experts,

A customer asks me to copy application from flash to RAM and run in RAM.

Not sure if this is justified. If I remember correctly it is not so much on 'F4, but maybe on H7 RAM performs much better? Anyway they pay for this so...

I've created a project in latest Atollic and selected Target settings-> Code location = RAM.

It generates linker script where both code and data goes to DTCRAM at 0x20000000.

From description of the memory layout in the H7 RM DTCM RAM area is not suitable for code:

"The DTCM-RAM can be used as read-write segment to host critical real-time data (such as

stack and heap) for application running on Cortex®-M7 CPU".

But it seems to work, with cache disabled.

I tried to change the link script: ITCM RAM for code and DTCM for data. This of course works.

So, is DTCRAM good for code or it works by coincidence and not supported officially?

Where I can find better explanation of the RAM parts of H753/743?

Thanks,

-- Pavel A.

This topic has been closed for replies.
Best answer by Tesla DeLorean

Some technical material on the CM7 might be of most help.

The ITCM​ would have connectivity to the I-bus. The TCM is not cached as it already has speed and proximity working for it. The multiple buses allow for Harvard operation with them.

The FLASH should be reasonably comparable, given the ART and architectural cache.

Would recommend benchmarking code execution in different memories.​

4 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
September 1, 2019

Some technical material on the CM7 might be of most help.

The ITCM​ would have connectivity to the I-bus. The TCM is not cached as it already has speed and proximity working for it. The multiple buses allow for Harvard operation with them.

The FLASH should be reasonably comparable, given the ART and architectural cache.

Would recommend benchmarking code execution in different memories.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
waclawek.jan
Super User
September 3, 2019

0690X00000AQWNiQAP.png

JW

Pavel A.
Pavel A.Author
September 3, 2019

Thank you gentlemen.

Back to reading the f* manuals instead of productive work ... the customer wants to show off and use H7 (new to me) - though F4 just enough for their project.

-- pa

waclawek.jan
Super User
September 4, 2019

> customer wants to show off and use H7 ... though F4 just enough for their project.

That is very unreasonable.

JW