cancel
Showing results for 
Search instead for 
Did you mean: 

TouchGFX example question

RZasa.1
Associate III

Hello,

Could somebody explain what is the purpose of this second line of code below taken from main.c in TouchGFX example for STM32HB3I-DK?:

SDRAM_Initialization_Sequence(&hsdram1, &command);

*(__IO uint32_t*)(0xD0000000) = 0x11111122;

It works fine with provided example but my program (set up from scratch in CubeMX) is going to mem fault on this line. When I comment this line out my program works fine. D0000000 is start of address of external SDRAM. Is it something to do with testing speculative memory access? I know nothing about it.

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hello @RZasa.1 ,

Sorry for the inconvenience. Yes, the second line which is a write operation was meant for testing and should have been removed. So, you can easily ignore it.  

Thank you for the notice

Mohammad MORADI
ST Software Developer | TouchGFX

View solution in original post

2 REPLIES 2

Hello @RZasa.1 ,

Sorry for the inconvenience. Yes, the second line which is a write operation was meant for testing and should have been removed. So, you can easily ignore it.  

Thank you for the notice

Mohammad MORADI
ST Software Developer | TouchGFX

Thank you.