hi guys. I'm using stm32l412kb and working with STM32CubeIDE 1.3.0. I use to use this function when I worked with 8051: xdata u8 REG_INIT[32] _at_ RAM_Image+0x0020; and I'm looking for an alternative function
I want to define array [32] at a specific address. This is what I wrote:
#define Step 0x8
#define MainAddress 0x801F800
#define BiasRefInit *(uint64_t *)(MainAddress+ 0*Step)
#define InterREGdelVAL100u *(uint64_t *)(MainAddress+ 1*Step)
#define GaveFactor *(uint64_t *)(MainAddress+ 2*Step)
#define GaveFactorCount *(uint64_t *)(MainAddress+ 3*Step)
#define PowerRecycles *(uint64_t *)(MainAddress+ 4*Step)
#define REG_INIT_FIRST *(uint64_t *)(MainAddress+ 5*Step)
#define MyArray *(uint64_t (*)[32])(MainAddress+ 5*Step)
I cannot access the values in the array but only the whole array. Although the IDE shows me all the (correct) values in the array:
snprintf(string, 8, "%06X", MyArray);

what should i do?