cancel
Showing results for 
Search instead for 
Did you mean: 

What should I do if I want to identify an array to the address of 0x24000000? My IDE is STM32CubeIDE.

RZHU.1
Associate III
 
1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

The easiest would be to just use a pointer that points to that address.

You could also define a separate section in the linker file and assign the array to that section.

uint32_t * array = (uint32_t *) 0x24000000;
 
array[0] = 1;
array[1] = 67;
// etc...

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

2 REPLIES 2
RZHU.1
Associate III

Sorry, I mean "define", not identify. My English is too bad...

TDK
Guru

The easiest would be to just use a pointer that points to that address.

You could also define a separate section in the linker file and assign the array to that section.

uint32_t * array = (uint32_t *) 0x24000000;
 
array[0] = 1;
array[1] = 67;
// etc...

If you feel a post has answered your question, please click "Accept as Solution".