Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

Fail to access SDRAM above 1MB

Altera_Forum
Honored Contributor II
1,170 Views

I am using Altera's example Altera-SoCFPGA-HardwareLib-FPGA-CV-GNU 

 

Trying to write 1B from address 0x00100000 till 0x00200000 like: 

 

alt_write_byte(mbs+i, (uint8_t)buf_8b[0]); 

 

The application hangs at this point on 26th byte 

 

Any ideas are welcome
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
484 Views

Probably because there is something important at that memory location. The linker script links the program to use memory starting at 0x00100000. If you look at hwlib.axf.objdump this will become very clear. Thus you're overwriting some program code. If you want to test out alt_write_byte(), why not declare a large array global array and write to that instead. That way you can write to a safe memory location without potentially interfering with anything else. 

 

fdh 

 

 

--- Quote Start ---  

I am using Altera's example Altera-SoCFPGA-HardwareLib-FPGA-CV-GNU 

 

Trying to write 1B from address 0x00100000 till 0x00200000 like: 

 

alt_write_byte(mbs+i, (uint8_t)buf_8b[0]); 

 

The application hangs at this point on 26th byte 

 

Any ideas are welcome 

--- Quote End ---  

0 Kudos
Reply