cancel
Showing results for 
Search instead for 
Did you mean: 

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

Lucifer37
Associate II

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 

2 REPLIES 2
SofLit
ST Employee

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 on "Accept as Solution" on the reply which solved your issue or answered your question.
Lucifer37
Associate II

@SofLit 

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.