FreeRTOS Setup with TrueStudio and the STM32F4 Discovery Board

Поделиться
HTML-код
  • Опубликовано: 6 янв 2025

Комментарии • 30

  • @PetrVyleta
    @PetrVyleta 5 лет назад +3

    Great video on this topi, probably the only one with good audio quality and meaningful explanations. Thanks!

  • @mustaphaalkhafaaf5512
    @mustaphaalkhafaaf5512 7 лет назад

    thanks Jacob nicely explained.. FreeRTOS (USE) with TrueStudio and the STM32F4 Discovery

  • @pepe6666
    @pepe6666 5 лет назад +1

    at 3:00 please explain why you selected a timer. i don't understand what the significance of that is.

    • @beningoembedded
      @beningoembedded  5 лет назад

      The timer is used to check if a context switch is necessary. Basically the timer is running the scheduler.

    • @pepe6666
      @pepe6666 5 лет назад

      @@beningoembedded thanks!! so like - i can see why you'd need a hardware timer triggering this. question - you deselected i think the internal resonator or something. was that required? like what would happen if ya didn't select a timer? cheers! also thank you for the video

    • @beningoembedded
      @beningoembedded  5 лет назад +1

      @@pepe6666 There is a dependency in the STM32CubeMx that tells you that when FreeRTOS is selected you must select another timer. If you do not select the timer, the project will not generate properly and will result in compilation error if it generates at all.

    • @pepe6666
      @pepe6666 5 лет назад

      @@beningoembedded awesome! thanks very much

  • @johncraven3560
    @johncraven3560 7 лет назад +1

    Nice simple tutorial to get me started. Thx

  • @gautamkashyap6865
    @gautamkashyap6865 5 лет назад

    how to remove warnings. -These IPs still have some not configured or wrong parameter values: [GFXSIMULATOR].Plz guide me

    • @beningoembedded
      @beningoembedded  5 лет назад

      Sorry that is beyond the scope of this video. Lots of code generated by vendor tools generate warnings. It's up to the developer to understand why and take appropriate action.

  • @KaranKashyap1110
    @KaranKashyap1110 5 лет назад

    Hey, I used STM32CubeMx and Keil v5, when I generated it, I can't use the usual FreeRTOS functions like xTaskCreate, instead I have to use some other functions, like osDelay and all, can you help me with this?

    • @beningoembedded
      @beningoembedded  5 лет назад

      Yes they are using the CMSIS RTOS functions which is a standard wrapper for any RTOS. Basically all you need to do is include the FreeRTOS header file you want to use such as task.h and you can use the FreeRTOS definitions.

    • @KaranKashyap1110
      @KaranKashyap1110 5 лет назад

      @@beningoembedded I tried but nothing happened

    • @KaranKashyap1110
      @KaranKashyap1110 5 лет назад

      @@beningoembedded do we need to change the functions like MX_FREERTOS_Init(); and osKernelStart(); ?

    • @beningoembedded
      @beningoembedded  5 лет назад

      @@KaranKashyap1110 You should not need to change those. In the past, I literally just add the FreeRTOS header file and then I can use those definitions or you can use the CMSIS definitions.

    • @KaranKashyap1110
      @KaranKashyap1110 5 лет назад

      @@beningoembedded yeah okay, got it, thanks!

  • @EzequielzekeGonzalez
    @EzequielzekeGonzalez 7 лет назад

    Hello,
    This does not work for new Atollic TrueStudio fro STM32 (v9.0)... the problems seems with the Timebase source but not sure what else I have to enable. any idea?

    • @beningoembedded
      @beningoembedded  7 лет назад

      Thanks for the comment. I have not tried this yet with v9.0. It's something I will be trying in the next week or so. Once I try and debug it, I will update the video or post a new showing how to do it. Thanks for letting me know!

    • @EzequielzekeGonzalez
      @EzequielzekeGonzalez 7 лет назад

      Thanks for the swift answer, just an extra comment, It does not even compile, When I select the Timebase Source, then all the HAL Initis (such as GPIO and so on) "undefined reference to almost everything" this happens only when I enable the freeRTOS from CubeMx and replace the Systic for any available TIMx

    • @beningoembedded
      @beningoembedded  7 лет назад

      What exactly is not working? I was able to follow these steps with the latest STM32CubeMx and TrueStudio v9.0. Did you set the SYS timebase source to something other than Sys_Tick such as Timer6?

    • @alanmarshall1090
      @alanmarshall1090 6 лет назад

      I had the same problem. I had to manually add the folders under the Drivers Directory and Middlewares Directory.

    • @EzequielzekeGonzalez
      @EzequielzekeGonzalez 6 лет назад

      yes, I used a distinct timebase... I am using Ubuntu 16.04, looks like this issue is OS flavor related

  • @jp_engineer
    @jp_engineer 6 лет назад

    Hi, Jacob
    I just followed your steps and I've got RTOS running. Thank you!
    Environment Information
    ----------------------------------------------------------------------------------------------------------
    Atollic TrueSTUDIO® for STM32, Built on Eclipse Neon.1a.
    Version: 9.0.1
    Build id: 20180420-1214

    • @beningoembedded
      @beningoembedded  6 лет назад

      You're welcome! I'm glad you found it helpful!