'How to store variables into RAM STM32 in C
I am trying to get int variables to be stored into RAM of my STM32. I have whats below and I believe that is a start but I'm not entirely sure. I'm trying to basically do what a .word array such as array: .word 1,2,3,4,5,6,7,8,9,10,-1 is in assembly but in C and have it stored into the RAM. Any advice? As an example of what i'm looking for, I'm trying to do like 0x20000000 = min 0x20000004 = max 0x20000008 = avg etc... We also don't have access to stdlib
const int32_t final[9] = {min, max, avg, median, a, b, c, d, f};
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
