Skip to main content
Associate III
November 6, 2024
Question

How many sections of RAM and Flash I can test with X-Cube STL package

  • November 6, 2024
  • 2 replies
  • 1146 views

Hi,

I'm working with X-Cube STL STM32CubeExpansion package, want to know how many  sections of RAM and Flash I can test on STM32H745ZI MCU,

 

#define FLASH_SECTION_SIZE 1024U
#define RAM_SECTION_SIZE 128U
#ifdef STL_DISABLE_RAM_BCKUP_BUF
#define RAM_BACKUP_BUFFER_SIZE 0
#else
#define RAM_BACKUP_BUFFER_SIZE 32
#endif
#define TEST_RAM_START_ADDR (0x20000000U + RAM_BACKUP_BUFFER_SIZE)
#define TEST_ROM_START_ADDR 0x08000000U
#define TEST_FLASH_SECTION_NB 4 /* 4 Flash sections are tested */
#define TEST_RAM_SECTION_NB 8 /* 8 RAM sections are tested */

             For Flash I can test 1024 which is 1MB of Flash I can test but my program is also running on RAM itself, how do I test complete RAM, any backup or threshold limit for RAM sections or regions of RAM able to Test,

Functional Safety team 

This topic has been closed for replies.

2 replies

mƎALLEm
ST Technical Moderator
November 6, 2024

Hello @Lucifer37 , 


@Lucifer37 wrote:

but my program is also running on RAM itself, how do I test complete RAM


I'm not expert of that STL, and I'm not sure if it's doable: could be split on more one pass. I mean locate your data in a RAM and run the tests on others for each pass.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
Lucifer37Author
Associate III
November 6, 2024

@mƎALLEm 

I can't do any changes in program, RAM test is performed by a function which is stored in the static library(STL_Lib_cm7.a) provided by X-Cube STL package.