--- Quote Start ---
Declare dataset_ptr as a global variable, as you have done, but initialize it from main().
e.g.
volatile uint8_t * dataset_ptr;
void main(void)
{
dataset_ptr = (volatile uint8_t*) alt_remap_uncached(ONCHIP_DATASET_DP_RAM_BASE,ONCHIP_DATASET_DP_RAM_SIZE_VALUE);
}
--- Quote End ---
By the way I've seent that in the bsp editor, under settings->advanced->hal, there is an option called "enable runtime stack checking". So it seems that is possibile if there is enaugh free memory at runtime. However I've not find yet a good tutorial/guide that explains clearly how to use this feature.
Could someone help me ??
In the meantime I will try your solution.
Have a nice day !!