Forum Discussion
Altera_Forum
Honored Contributor
8 years agoUnable to reach (null) from global pointer - multiple onchip rams for applications
Hi, the linker gives me the following error:
HAL/src/alt_main.c:154: warning: Unable to reach (null) (at 0x00500004) from the global pointer (at 0x0017f2b4) because the offset (3673424)...
Altera_Forum
Honored Contributor
8 years agoIt looks like the linker is trying to use relarive addressing but your bss and text_data on chip memories are too far away in the address space. I would first try and manually edit the addresses of your onchip memories so that they are contiguous in the memory space, and if this is not enough write a custom link script that declares a single space including all the onchip memories and that maps all the sections (except heap and stack) to that space.