FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
公告
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.
6478 讨论

HPS BareMetal LED toggle Example for Altera Cyclone V Developement Ki

Chandrashekhar_K
初学者
2,096 次查看

Kindly share working example to toggle LED/GPIO of HPS
Kit : Cyclone V SoC Development Board

Platform : Bare Metal 

标签 (1)
0 项奖励
10 回复数
mabdrahi
员工
2,078 次查看

Hi,


I will try to find, test on my side and give my reference project to you


0 项奖励
mabdrahi
员工
2,066 次查看

Hi,


I found the useful reference about the project

https://www.altera.com/content/dam/altera-www/global/en_US/pdfs/literature/ug/ug_cv_soc_dev_kit.pdf


I will try this at my end


0 项奖励
mabdrahi
员工
2,059 次查看

Hi,


Can you try this example?


https://www.rocketboards.org/foswiki/pub/Projects/LEDBlink/led_blink.tgz


Is it suit with your project?


0 项奖励
Chandrashekhar_K
初学者
2,046 次查看

Hi Mabdrahi,

Thank you3 for sharing the document and the  LED example.
I think the example is for linux environment. 
It would be of great help if the code for bare metal is available.

 

Thank You

 

0 项奖励
mabdrahi
员工
1,925 次查看

Hi,


I found a useful link for you to try.

https://www.rocketboards.org/foswiki/Documentation/HWLib




0 项奖励
mabdrahi
员工
1,902 次查看

Hi,


Any update at your end?


0 项奖励
Chandrashekhar_K
初学者
1,862 次查看

I could get a sample example from the community, struggled a bit to get it complied.  

Now the LED example is working.

Thank you.

0 项奖励
mabdrahi
员工
1,887 次查看

Hi Chandra,


I hope you doing well,


Any stuck or progress status on your end?


0 项奖励
mabdrahi
员工
1,869 次查看

p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer or rate 4/5 survey.


0 项奖励
ALTERA-INSUPPORT22
新分销商 I
1,371 次查看

Assistance Needed: Trouble Running Bare-Metal Code on Cyclone 5 HPS
I am working on intel cyclone 5 hps I have two cores in a processor Core 0 core 1, I want two code to run on two different cores core 0 and core 1 in bare metal .


When I run in jtag mode it works, for jtag i first debug using core 0 where i take core 1 out of reset it, than debug core 1 usign jtag it work


BUT, When i want to run both core usign qspi it only run core 0 not core 1


Here is the step i followed

Firsly, loading preloader
quartus_hps -c 1 -o P preloader-mkpimage.bin

I make an image from bin file of core 0 and place it to qspi

mkimage -A arm -O u-boot -T standalone -C none -a 0x00060000 -e 0 -n "baremetal image" -d core0.bin core0.img

quartus_hps -c 1 -o P -a 0x00060000 core0.img

I make an image from bin file of core 1 and place it to qspi
mkimage -A arm -O u-boot -T standalone -C none -a 0x00100000 -e 0 -n "baremetal image" -d core1.bin core1.img
quartus_hps -c 1 -o P -a 0x00100000 core1.bin


When i restart board only that code work which is in core 0, core 1 code not executing

I am setting cpu1startaddress 100000 apart from that in the code of core 0 also i am using alt_qspi function to to place bin file data in ddr, 

I want to run in smp mode so I also set required aux_control_register smp and fw bit as stated in tech ref manual  


alt_qspi_read((uint32_t *)BL_START/*ddr3 address*/, 0x100000/*qspi address*/, 0x40000);


In linker/scat file core 0 entry point is 0x60000 and

linker/scat file core 1 entry point is 0x100000

0 项奖励
回复