What should I do if I want to identify an array to the address of 0x24000000? My IDE is STM32CubeIDE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-30 7:25 PM
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-30 8:43 PM
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-30 7:26 PM
Sorry, I mean "define", not identify. My English is too bad...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-09-30 8:43 PM
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...
