cancel
Showing results for 
Search instead for 
Did you mean: 

New to using ST for FreeRtos basic project.

A Maq
Senior
Posted on August 06, 2017 at 01:57

New to using ST for FreeRtos basic project.Created New Project following all steps in a course for getting started with FreeRTOS but ended up with bunch of errors. Can anybody help? Following are few Screenshots of the errors.

0690X00000607lUQAQ.png0690X00000607lVQAQ.png

#freertos-stm32cube
5 REPLIES 5
andy b
Senior
Posted on August 07, 2017 at 19:39

Hi Atif

It seems you have a clock configuration problem.Could you tell me more about your project like what microcontroller/board you are using.If you have used CubeMX to create the project it is possible that you have forgotten certains steps.For example, Free RTOS require's you to use a different clock source for HAL_Tick,.Having more detail about the hardware you are using will greatly improve my ability to help you.

-Andy

Posted on August 07, 2017 at 20:45

Make sure you have the include paths set up correctly.

That you #include 'stm32f1xx.h'

That you have an stm32f1xx_hal_conf.h in your project and it correctly calls out and defines the modules needed.

That you have the define USE_HAL_DRIVER in the command line, along with the correct part selection.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on August 07, 2017 at 22:33

Hi Andy,

              Thank you very much for your response.

The Board which I am using is: NUCLEO-F103RB (That is the only hardware I am using at the moment).

I did change the system clock as recommended.

I did use STM32CubeMX but after I have created project then clicked on the auto generate code it opens up in my Eclipse but that is just a configuration file which opens then I imported that project into eclipse. May be that is why the issue is coming up?

If possible can you please help which steps should be followed. Much appreciated.

Posted on August 07, 2017 at 23:20

0690X00000607oEQAQ.png

then

0690X00000607wLQAQ.png

then step 3

0690X00000607rcQAA.png

and Selected OK

Step 4

Then Selected Generate Source code.

0690X00000607wQQAQ.png0690X00000607wfQAA.png0690X00000607lzQAA.png

Step 5 ( Here something seems to go wrong)

0690X00000607wkQAA.png

As that opened in Java based eclipse i also have C/C++ based eclipse which i have used in next step and imported my project into eclipse.

0690X00000607wuQAA.png0690X00000607p2QAA.png0690X00000607wzQAA.png

Rest is same as i posted earlier full of errors in main.C code.

Posted on August 07, 2017 at 23:30

Hi Clieve.

At which stage should I set up path?

0690X00000607mMQAQ.png

I do have those files in the project inc directory. I believe all the aspects you have mentioned I have included.