So,
#include <sys/alt_cache.h># include "system.h"# include <stdint.h>
volatile uint8_t * dataset_ptr = (volatile uint8_t*) alt_remap_uncached(ONCHIP_DATASET_DP_RAM_BASE,ONCHIP_DATASET_DP_RAM_SIZE_VALUE);
If I try to build the application I get this error on this function:
Initializer element is not constant
What's wrong with that ??
It seems to be related to some C rules. If I put the alt_remap() into the main routine the error get solved. by the way I would prefer to have the dataset_ptr as a global variable. Is it possible ?
Ty,
have a nice day !