Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

uC/OS-III porting

Where can i find uC/OS-III Integration kit for nios2?

It's too difficult for me :(

14 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I have been working on porting the uC/OS-III to the NIOS-II. I have received a porting package from Micrium with successsfully builds, however, we are encountering excessive CPU Usage levels (100% usage) which appears to be related to the "tick task" or thread safe newlib configuration.

    Has anyone encountered this behavior during your porting work and what have you done to resolve the issue.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Micrium gave me several files which when added to NIOS installed a template for a Hello World MicroOSIII.

    After installing them I do have the option to select Hello World MicroOSIII from the New Create from template, however when creating the BSP the make project script bombs out ==>

    INFO: Creating BSP settings file...

    INFO: nios2-bsp-create-settings --sopc C:/VSDRRSW/a5gtd7k3_fpga_bup_qsys.sopcinfo --type ucosiii --settings ./settings.bsp --bsp-dir . --script c:/rtn/altera/10.1/nios2eds/sdk2/bin/bsp-set-defaults.tcl --cpu-name cpu

    INFO: Initializing SOPC project local software IP

    INFO: [Info] <b>C:/VSDRRSW/*</b> matched 10 files in 0.00 seconds

    INFO: [Info] <b>C:/VSDRRSW/*/*_sw.tcl</b> matched 2 files in 0.01 seconds

    INFO: [Info] <b>C:/VSDRRSW/ip/**/*_sw.tcl</b> matched 0 files in 0.00 seconds

    INFO: [Info] <b>C:/ip/**/*_sw.tcl</b> matched 0 files in 0.00 seconds

    INFO: Finished initializing SOPC project local software IP. Total time taken = 2 seconds

    INFO: Searching for BSP components with category: driver_element

    INFO: Searching for BSP components with category: software_package_element

    INFO: Found Flash Memory: ext_flash for CPU: cpu

    INFO: Loading drivers from ensemble report.

    INFO: Finished loading drivers from ensemble report.

    INFO: Tcl message: "STDIO character device is jtag_uart"

    INFO: Tcl message: "System timer device is sys_clk_timer"

    INFO: Tcl message: "Default linker sections mapped to onchip_ram"

    INFO: Tcl message: "Bootloader located at the reset address."

    INFO: Tcl message: "Application ELF not allowed to contain code at the reset address."

    INFO: Tcl message: "The alt_load() facility is disabled."

    INFO: Default memory regions will not be persisted in BSP Settings File.

    INFO: Generated file "C:\VSDRRSW\software\HelloOSIII_bsp\settings.bsp"

    INFO: BSP settings file was created at location "C:\VSDRRSW\software\HelloOSIII_bsp\settings.bsp".

    INFO: Generating BSP files...

    INFO: Generating BSP files in "C:\VSDRRSW\software\HelloOSIII_bsp"

    INFO: Default memory regions will not be persisted in BSP Settings File.

    INFO: Generated file "C:\VSDRRSW\software\HelloOSIII_bsp\settings.bsp"

    severe: crt0.s source code not located in installed cpu module driver.

    severe: crt0.s source code not located in installed cpu module driver.

    severe: nios2-bsp-create-settings failed.

    nios2-bsp: nios2-bsp-create-settings failed

    nios2-bsp ucosiii . C:/VSDRRSW/a5gtd7k3_fpga_bup_qsys.sopcinfo --cpu-name cpu failed

    I have been bouoncing between the OSII and OSIII scripts and files but cannot seem to locate what is causing this to appear when I create OSIII but not OSII Hello World.

    Anyone know what is wrong?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Micrium gave me several files which when added to NIOS installed a template for a Hello World MicroOSIII.

    After installing them I do have the option to select Hello World MicroOSIII from the New Create from template, however when creating the BSP the make project script bombs out ==>

    INFO: Creating BSP settings file...

    INFO: nios2-bsp-create-settings --sopc C:/VSDRRSW/a5gtd7k3_fpga_bup_qsys.sopcinfo --type ucosiii --settings ./settings.bsp --bsp-dir . --script c:/rtn/altera/10.1/nios2eds/sdk2/bin/bsp-set-defaults.tcl --cpu-name cpu

    INFO: Initializing SOPC project local software IP

    INFO: [Info] <b>C:/VSDRRSW/*</b> matched 10 files in 0.00 seconds

    INFO: [Info] <b>C:/VSDRRSW/*/*_sw.tcl</b> matched 2 files in 0.01 seconds

    INFO: [Info] <b>C:/VSDRRSW/ip/**/*_sw.tcl</b> matched 0 files in 0.00 seconds

    INFO: [Info] <b>C:/ip/**/*_sw.tcl</b> matched 0 files in 0.00 seconds

    INFO: Finished initializing SOPC project local software IP. Total time taken = 2 seconds

    INFO: Searching for BSP components with category: driver_element

    INFO: Searching for BSP components with category: software_package_element

    INFO: Found Flash Memory: ext_flash for CPU: cpu

    INFO: Loading drivers from ensemble report.

    INFO: Finished loading drivers from ensemble report.

    INFO: Tcl message: "STDIO character device is jtag_uart"

    INFO: Tcl message: "System timer device is sys_clk_timer"

    INFO: Tcl message: "Default linker sections mapped to onchip_ram"

    INFO: Tcl message: "Bootloader located at the reset address."

    INFO: Tcl message: "Application ELF not allowed to contain code at the reset address."

    INFO: Tcl message: "The alt_load() facility is disabled."

    INFO: Default memory regions will not be persisted in BSP Settings File.

    INFO: Generated file "C:\VSDRRSW\software\HelloOSIII_bsp\settings.bsp"

    INFO: BSP settings file was created at location "C:\VSDRRSW\software\HelloOSIII_bsp\settings.bsp".

    INFO: Generating BSP files...

    INFO: Generating BSP files in "C:\VSDRRSW\software\HelloOSIII_bsp"

    INFO: Default memory regions will not be persisted in BSP Settings File.

    INFO: Generated file "C:\VSDRRSW\software\HelloOSIII_bsp\settings.bsp"

    severe: crt0.s source code not located in installed cpu module driver.

    severe: crt0.s source code not located in installed cpu module driver.

    severe: nios2-bsp-create-settings failed.

    nios2-bsp: nios2-bsp-create-settings failed

    nios2-bsp ucosiii . C:/VSDRRSW/a5gtd7k3_fpga_bup_qsys.sopcinfo --cpu-name cpu failed

    I have been bouoncing between the OSII and OSIII scripts and files but cannot seem to locate what is causing this to appear when I create OSIII but not OSII Hello World.

    --- Quote End ---

    the problem has been found. a folder ucos-iii-nios_ii was in the same directory as the spocinfo file. it does not come into play when type is ucosii but when type is ucosiii then extra items appear to be found and the created bsp is corrupted. moving the folder ucos-iii-nios_ii out of the same directory as the spocinfo file eliminates the failure to create the bsp.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello, I also want to use the uC/OS-III with NIOS. I have the uC/OS-III Source but I don‘t know how to start a project with it. Someone here who could get me the files to install the template for a uC/OS-III hello world project (like the person above)?