Hello Nios using FreeRTOS

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ต.ค. 2024
  • Another Nios II tutorial for the DE10-Standard board. This one is running FreeRTOS instead of baremetal.
    gitlab.com/sce...

ความคิดเห็น • 17

  • @ArturKlauser
    @ArturKlauser ปีที่แล้ว +2

    For anyone using FreeRTOSv202210.01-LTS (or presumably newer versions), leave the ALT_ENHANCED_INTERRUPT_API_PRESENT definition in system.h as it is, i.e. don't change it to ALT_LEGACY_INTERRUPT_API_PRESENT. The default configuration works just fine now, whereas the legacy configuration gives you a compile error.

  • @monk6848
    @monk6848 6 วันที่ผ่านมา

    Damn, your keyboard must HATE you....

  • @stephwu8164
    @stephwu8164 ปีที่แล้ว

    For DE1-SoC users, please move all the .h files into the BSP folder. Otherwise, the .h files will not be included in the project

  • @andrewsnowden8937
    @andrewsnowden8937 ปีที่แล้ว +1

    For anyone who experiences the "undefined reference to 'restore_sp_from_pxCurrentTCB' in port.c" error, the solution is to open the Makefile for the project, find the line that says "ASM_SRCS := " and add FreeRTOS/portable/GCC/NiosII/port_asm.S to the line. For some reason its not already there. This should result in a successful build after following along here

  • @GordWait
    @GordWait ปีที่แล้ว

    Hi, thank you for the video, very informative! I'm on an older copy of quartus (14.1, licensed with a bunch of stuff) and I am trying to get FreeRTOS running on my Nios setup. I seem to be having a fight with the system timer. In my case, it seems that the altera init code sets up and launches the timer before calling main(), and I think this is causing FreeRTOS to fail to configure the timer. In your case, you didn't seem to have to stop the altera code, your task timer "just worked".. Any ideas? In my case with FreeRTOS, the timer sets the IRQ high and never clears it again. I'm digging in to see if the FreeRTOS timer setup code is failing..

    • @GordWait
      @GordWait ปีที่แล้ว

      I have it working now. Aside from a few minor "finger trouble" mistakes, I had put my JTAG UART on the highest priority interrupt (IRQ0), which was a bad idea. The Jtag UART was hogging the cpu so that the Timer IRQ never had a chance. All better now..

  • @jobaek
    @jobaek ปีที่แล้ว

    Is it possible to run without external memory(sdram)? I want to running with only on-chip memory include Nios II. And I want to use the FreeRTOS.(latest version)

    • @deltazulupapa
      @deltazulupapa หลายเดือนก่อน

      Could you do it, pal?

  • @embeddedsemrade
    @embeddedsemrade ปีที่แล้ว

    I am using a Chinois board, I v seen you use the System and SDRAM Clocks for DE-series boards for the clocks, could I use the same thing even if my board is not DE10?

    • @tscevers
      @tscevers  ปีที่แล้ว

      I am not familiar with that board, but I would think it would be possible.

    • @embeddedsemrade
      @embeddedsemrade ปีที่แล้ว

      @@tscevers I used the PLL from the altera library and it works good for now, I have an issue with the timing parameter in the SDRAM controller, with my memory I couldn't find all parameters and I don't have any idea how to calculate them. I am using the H57V2562GTR-75C running at 133MHz.

    • @tscevers
      @tscevers  ปีที่แล้ว

      @@embeddedsemrade most of those parameters should come from the datasheet for the memory chip you are using...

    • @embeddedsemrade
      @embeddedsemrade ปีที่แล้ว

      @@tscevers Ok, if I want to add some leds and keys do I have to connect them to the SDRAM Or to the SRAM, please?

  • @kohnai
    @kohnai 11 หลายเดือนก่อน

    Using Quartus Prime Lite 18.1 and FreeRTOSv202212.01 - Compile error: "FreeRTOS/include/FreeRTOS.h:59:28: fatal error: FreeRTOSConfig.h: No such file or directory"
    The problem is that FreeRTOS.h cannot see FreeRTOSConfig.h
    The solution is to either move FreeRTOSConfig.h into the FreeRTOS/include folder or change the include statement in FreeRTOS.h to "../../FreeRTOSConfig.h"

  • @Murmurrumm
    @Murmurrumm 2 หลายเดือนก่อน

    Does this work for de2-115 board as well?

    • @tscevers
      @tscevers  2 หลายเดือนก่อน

      It should, however the IP for the onboard ram is different if I remember correctly.

    • @Murmurrumm
      @Murmurrumm 2 หลายเดือนก่อน

      @@tscevers Thank you kindly! I have already made these connections, in the system for the ram :)