Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12367 Discussions

Running from external SSRAM issues

Altera_Forum
Honored Contributor I
783 Views

Hi, I am using custom board along with Arria II GX Fpga.I am trying to run nios program on external SSRAM (Cypress-compatible memory).The problem began recently.as i have experienced a short-circuit.The problem of short-circuit has been fixed.The program,though is getting stuck ( I am able to see it during debug ).Some printf commands are not executed (Though i see in debug that the program is going to the next command).Also,using malloc returns null,though I am trying to allocate small amount of memory - 76 bytes.Running the same program on Internal RAM poses no problems.I have also run the memory test program by Altera - and it has not detected any problems. 

Any help will be appresciated. 

Thank You, 

Michael
0 Kudos
3 Replies
Altera_Forum
Honored Contributor I
64 Views

Continuing the subject - further symptoms of the issue : 

in printf commands ,which are failing,i have seen in debug the return value of printf - and it's 0xffffffff (some negative number,which indicates that printf function has failure). 

In general,this is LWIP stack program.The failure of malloc occures in mem_malloc function ( if this lights up the subject )
Altera_Forum
Honored Contributor I
64 Views

Quite possibly you are just running out of heap space for malloc() etc.

Altera_Forum
Honored Contributor I
64 Views

That what is probably happening.But this does not happen while running on internal RAM.There is got to be some hardware issue with the SSRAM (and/or its SOPC component),i just can't figure out what it is and how to fix it :). 

I also want to point out that I haven't had any issue with the memory prior to short-circuit.
Reply