Forum Discussion
Altera_Forum
Honored Contributor
15 years agoUsing FreeRTOS with Eclipse tools.
I have been trying to get the FreeRTOS running on my cyclone iii development board using the Nios ii 3C25. I am running altera v10.1sp1 and using FreeRTOS v6.0.5 (I initially tried the very latest version). I am using the eclsipse GUI. To date I have failed miserably at this task . I have been following the following procedures and am confident I have followed these tasks exactly.
alterawiki . com / wiki / FreeRTOS All seems well until I get to the final steps. If I choose File->New->Nios ii Board Support Package from Eclipse then I can see the "Real Time Engineers Ltd FreeRTOS 6.0.5" in the BSP type option box. If I then choose an SOPC information file (I am using the cycloneIII_3c25_niosII_standard_sopc.sopcindo) then when I select the "Real Time Engineers Ltd FreeRTOS 6.0.5" option I note that the command field changes and is then calling "nios2-bsp ucosii ..... and not the freeRTOS bsp. Additionally if I then choose File->New->Nios ii Application and BSP from Template then I can see the FreeRTOS_Demo in the availible templates. When I select the sopcinfo file this template option then dissapears. Has anyone managed to get FreeRTOS working on the NIOS and been able to succesfully use the demo template as a starting project? Any help would be appreciated. Thanks Clive15 Replies
- Altera_Forum
Honored Contributor
Follow on
I know this fault i had a copy of port.c 7.02 version in a backup file so it was trying to use it twice I deleted this and cleared fault however address 0x88098dc of FreeRTOS.elf section `.bss' is not within region `SDRAM' FreeRTOS C/C++ Problem address 0x88098dc of FreeRTOS.elf section `.SDRAM' is not within region `SDRAM' FreeRTOS C/C++ Problem is still outside memory allowcation The bsp says now sdram from 8000020-87FFFFF if you try and make this bigger it throws and error I am not sure if freertos is setting this location somewhere or it adding an offset to the momory ??? Jan - Altera_Forum
Honored Contributor
Hi Jan
I still think you got a problem with the SIZE (not the base address) of your memory: the error message implies that your program is larger than the SDRAM size specified in the .bsp. It could well be that the same settings work for ucosii because the overall code size might be smaller than the one for FreeRTOS. I have no idea what the actual physical size of your memory is, but if it's bigger than the currently specified size ( 0x800000 = 8MB ) then simply increase the span setting (you must do that in SOPCbuilder or Qsys and recompile the FPGA). If on the other hand your board only provides 8MB, you'll probably have to reduce the size of your code; not quite sure though why your program seems to take that much space: my current project uses just short of 10MB but includes much more than a simple demo app. Good luck, Matthias --- Quote Start --- Follow on I know this fault i had a copy of port.c 7.02 version in a backup file so it was trying to use it twice I deleted this and cleared fault however address 0x88098dc of FreeRTOS.elf section `.bss' is not within region `SDRAM' FreeRTOS C/C++ Problem address 0x88098dc of FreeRTOS.elf section `.SDRAM' is not within region `SDRAM' FreeRTOS C/C++ Problem is still outside memory allowcation The bsp says now sdram from 8000020-87FFFFF if you try and make this bigger it throws and error I am not sure if freertos is setting this location somewhere or it adding an offset to the momory ??? Jan --- Quote End --- - Altera_Forum
Honored Contributor
TO_BE_DONE
- Altera_Forum
Honored Contributor
Hi Jan
your SOPC/Qsys project probably defines different names for those SYS_CLK resources. When I played around with the demo project, I modified (amongst other things) also "port.c" to resolve this kind of naming conflicts. Please have a look at the attachment to post# 8 of this discussion thread: the ZIP contains the files I considered most critical when trying to get the demo project running. Hope that helps. Good luck, Matthias --- Quote Start --- Hi Again, Do you Anywhere can i get a worknig demo program ??? Jan --- Quote End --- - Altera_Forum
Honored Contributor
--- Quote Start --- When I try to create a new project through the "NIOS II application and BSP from templates" the FreeRTOS_Demo still dissapear when I select the .sopcinfo file. This problem seems not to be solved with the SP1. --- Quote End --- Was this issue ever solved? I have the same problem. I did use Matthias' info and resources, which got me most of the way (Thank you!), but this is where I got stuck. What would be the suggested course of action? I just want to run FreeRTOS, so I suppose I could throw together a project "manually" by adding each file and resource needed, but I rather have the demo as a template. Using Quartus 12.0 and FreeRTOS v7.4.1 and v6.1.1 (same result) EDIT: I am still having the above problem, but since I got FreeRTOS working I suppose it doesn't really matter. Thanks again for the help!