Forum Discussion
Altera_Forum
Honored Contributor
19 years agoHi Scott,
I have started making a u-boot configuration for my 2C35 based Nios dev kit by adjusting the files that you produced for the 1C20. I think I have most of it figured out, except for the definition of TEXT_BASE. In the file board\altera\ep1c20\config.mk there is a definition for TEXT_BASE:TEXT_BASE = 0x01fc0000 And in file include\configs\ep1c20.h starting at line 50 there are definitions of the base addresses of the blocks of memory: #define CFG_FLASH_BASE 0x00000000 /* FLASH base addr */# define CFG_FLASH_SIZE 0x00800000 /* 8 MByte */# define CFG_SDRAM_BASE 0x01000000 /* SDRAM base addr */# define CFG_SDRAM_SIZE 0x01000000 /* 16 MByte */# define CFG_SRAM_BASE 0x02000000 /* SRAM base addr */# define CFG_SRAM_SIZE 0x00100000 /* 1 MB (only 1M mapped)*/ So, the TEXT_BASE is inside the SDRAM, but what does the offset of 0x00fc0000 mean? The memory definition for my board is (I think this is still the standard example project for the 2C35): #define CFG_FLASH_BASE 0x00000000 /* FLASH base addr */# define CFG_FLASH_SIZE 0x01000000 /* 16 MByte */# define CFG_SDRAM_BASE 0x04000000 /* SDRAM base addr */ # define CFG_SDRAM_SIZE 0x02000000 /* 32 MByte */ # define CFG_SRAM_BASE 0x02000000 /* SRAM base addr */# define CFG_SRAM_SIZE 0x00200000 /* 2 MB */ Can you tell me tell me how to work out what TEXT_BASE should be for my board? Thanks, Mike