Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12681 Discussions

NIOS V + DDR4 with problem for malloc

BrightEST-howard
Beginner
947 Views

We are currently conducting tests using Arria 10 GX EVB.

However, we have encountered an issue where NIOS V controlling DDR4 through EMIF IP results in a failure when attempting dynamic memory allocation in the software.

Strangely, this issue is resolved when we remove EMIF IP from the system.

Our system's diagram is attached for reference.

cyeehoward_0-1713316446267.png

 

Attached is the project file used for testing.

Any guidance or suggestions would be greatly appreciated. Thank you!

Additionally, the initial problem arose from our attempt to add EMIF IP control for DDR4 based on Intel Simple Socket Server example. However, upon debugging, we found that the issue actually occurred during the initial dynamic memory allocation, causing subsequent execution to fail due to pointer unavailability, resulting in an "ethernet initial fail" message on the JTAG-UART terminal.

 

0 Kudos
3 Replies
JingyangTeh
Employee
618 Views

Hi


Sorry for the late response.

I took a look at your project it seems like you did not connect the Nios to boot from the EMIF.

Could you try connecting the data and instruction manager of the NiosV to the EMIF controller and switching the reset vector to the EMIF?


Regards

​​​​​​​Jingyang, Teh


0 Kudos
JingyangTeh
Employee
502 Views

Hi


Did you managed to try out the suggestion?


Regards

Jingyang, Teh


0 Kudos
JingyangTeh
Employee
464 Views

Hi


Since there are no feedback for this thread, I shall set this thread to close pending. Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.

If you happened to close this thread you might receive a survey. If you think you would rank your support experience less than 4 out of 10, please allow me to correct it before closing or if the problem can’t be corrected, please let me know the cause so that I may improve your future service experience.


Regards

Jingyang, Teh



0 Kudos
Reply