Forum Discussion
Altera_Forum
Honored Contributor
11 years agoNiosII memory reservation
Hello guys, I have a system running a NiosII processor. In my Qsys system I have connected one port of a dual-port-onchipmem to the Nios data master port and the second port has been exported...
Altera_Forum
Honored Contributor
11 years agoDeclare 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);
}