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++
12678 Discussions

How to use both HPS cores on DE1-SoC using DS-5

RHobb
Beginner
1,284 Views

I'm looking for a way to use both cores on the DE1-SoC board from Terasic using baremetal. I understand how to accomplish the same task using linux and the pthread command, but I want to write programs that uses and debugs both cores. Is there any examples online? I can release cpu1 from reset right after the preloader stage, but I'm lost as to where to go to assign cpu1 to execute certain code fragments.

0 Kudos
1 Reply
Fawaz_Al-Jubori
Employee
527 Views

Hello,

You can enable Symmetric Multi-Processing (SMP) feature to debug your code on Dual ARM. Follow the tutorial here:

https://developer.arm.com/products/software-development-tools/ds-5-development-studio/resources/tutorials/linux-symmetric-multiprocessing-kernel-debug

 

Once you boot your linux, the dual ARM cores will run automatically.

 

Thanks

0 Kudos
Reply