Forum Discussion
ABren1
New Contributor
7 years agoIs it possible to initialize external RAM (ERAM) from the JTAG .sof or EPCS .pof file?
(i) By modifying the BSP to include the new region and section that points to ERAM (ii) Include in NIOS2 code declaration of global variable and instantiation of variable in that section using "__at...
ABren1
New Contributor
7 years agoThanks for the sof information (regarding limitations).
I have (i) mapped (thru BSP editor) external memory region + (ii) declaration of global variable and initialisation in C code in eclipse:
const unsigned char __atribute__ ((section ("bitmap.rodata"))) AB_X[2048] = { 0,124,...,0} //data is truncated for discussion purposes
I fully expected that the compiler/linker/HAL + boot loader would take care of the configuration of code/data.
So I was wrong on that front -> are you saying I have to load the data into ERAM myself using whatever means possible?
I could write it to Onchip memory temporarily and memcpy() it to ERAM if I have understood you correctly.
Thanks