Author Topic: STM32F4 board - trying to learn about FreeRTOS  (Read 7733 times)

0 Members and 1 Guest are viewing this topic.

Offline psysc0rpi0nTopic starter

  • Frequent Contributor
  • **
  • Posts: 362
  • Country: ar
STM32F4 board - trying to learn about FreeRTOS
« on: July 28, 2020, 10:29:32 pm »
Hello.

I'm trying to learn about FreeRTOS for the first time and I'm using an STM32F407VET6 board I bought on ebay. It can be checked here.

I have downloaded FreeRTOS from official site but their version is prepared to run with 3rd party software and my goal was to be able to build a Makefile, exclusively  for the files I need for my board. The folder structure is something we need be aware because the ideia is to keep ading files to Makefile as long as 'make' keeps asking for them.

I stated building a Makefile but my short experience doesn't allow me to continue further on.

I started with this:
Code: [Select]
CC := arm-none-eabi-gcc
CFLAGS := -Wall -Wextra
SRCDIR := ../../Source ./
OBJDIR := .obj
DEPDIR := .depend
#INCDIR := ../../Source/include
SOURCES := $(wildcard *.c) board/$(wildcard *.c) startup/$(wildcard *.c)
OBJECTS := $(patsubst $(SOURCES)/%.c, $(OBJDIR)/%.o, $(SOURCES))
DEPENDS := $(patsubst $(SOURCES)/%.c, $(DEPDIR)/%.d, $(SOURCES))
-include $(DEPENDS)
$(OBJDIR)/%.o: $(SRCDIR)/%.c | $(OBJDIR)
@echo "Linking $*.c"
$(CC) $(CFLAGS) -c -o $@ $<
$(DEPDIR)/%.d: $(SRCDIR)/%.c | $(DEPDIR)
$(CC) -MM -MG $< | sed 's!^\(.\+\).o:!$(DEPDIR)/\1.d $(OBJDIR)/\1.o:!' > $@
$(DEPDIR) $(OBJDIR):
mkdir $@
#$@ target name: stm32frertos and $^ is the dependency list: $(OBJECTS)
#stm32freertos: $(OBJECTS)
#   $(CC) -o $@ $^
#% is to build patterns and represents the same text in target as in dependencies
#$* contains the same vale as $%
#$< contains the first dependency
#%.o: %.c
#   $(CC) $(CFLAGS) -c -o $@ $<

So, I'm trying to build the source files list from the folders at the same level as the Makefile.
Then, I'm building the object files from the same sources form above.
An lastly I'm trying to build the dependency files, also from the sources I built in the first place.

But I'm getting a very early error about one of the files in the current directory:
Code: [Select]
ParTest.c:1: *** missing separator.  Stop.

ParTest.c is a source file at the same directory as Makefile file is and I'm stuck here.

Any help would be much appreciated.
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 12494
  • Country: us
    • Personal site
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #1 on: July 28, 2020, 11:59:59 pm »
Attach a Makefile as is, do not copy it. make is very sensitive about using tabs instead of spaces in the rules and it is hard to tell from the code, since forum may have stripped them.
Alex
 

Offline lucazader

  • Regular Contributor
  • *
  • Posts: 221
  • Country: au
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #2 on: July 29, 2020, 12:00:09 am »
If you want to get up and running with a very simple setup with a makefile and FreeRTOS you can generate a project with the STM32Cube

It can generate the project with only the files you need for your board, with freertos all setup and ready to go and being built using a makefile (if the correct setting is selected).

You can then poke around what is generated including the makefile to see how everything goes together and learn how to use FreeRTOS on the stm processor series.
 

Offline newbrain

  • Super Contributor
  • ***
  • Posts: 1916
  • Country: se
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #3 on: July 29, 2020, 09:21:29 am »
Code: [Select]
ParTest.c:1: *** missing separator.  Stop.
Is this a make error or a compiler error? What's the content of that file?

If you want to get up and running with a very simple setup with a makefile and FreeRTOS you can generate a project with the STM32Cube

It can generate the project with only the files you need for your board, with freertos all setup and ready to go and being built using a makefile (if the correct setting is selected).

You can then poke around what is generated including the makefile to see how everything goes together and learn how to use FreeRTOS on the stm processor series.
It works (I am using it on an STMf072 based project -so a smallish thing), but with some caveats:
  • It forces to define at least one task in the tool - I don't like this, especially due to the point below  >:(
  • The generated code is not directly using FreeRTOS API, rather the CMSIS (V1 or V2), almost pointless, abstraction layer.
    Your code can freely call FreeRTOS though and completely forget about CMSIS RTOS.
  • Only a subset of FreeRTOS configuration options is available, you might need to add some others directly in the code.
« Last Edit: July 29, 2020, 09:24:18 am by newbrain »
Nandemo wa shiranai wa yo, shitteru koto dake.
 

Offline psysc0rpi0nTopic starter

  • Frequent Contributor
  • **
  • Posts: 362
  • Country: ar
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #4 on: July 29, 2020, 06:02:10 pm »
Attach a Makefile as is, do not copy it. make is very sensitive about using tabs instead of spaces in the rules and it is hard to tell from the code, since forum may have stripped them.

Oh ok. I forgot about tabs. I'll o it next time I need to show code.


If you want to get up and running with a very simple setup with a makefile and FreeRTOS you can generate a project with the STM32Cube

It can generate the project with only the files you need for your board, with freertos all setup and ready to go and being built using a makefile (if the correct setting is selected).

You can then poke around what is generated including the makefile to see how everything goes together and learn how to use FreeRTOS on the stm processor series.

Hum, I see. But I don't have that software installed and I didn't want to install it because I want to use OpenOCD to upload code (I'm also learning about OpenOC, so this is like 2 in 1 learning). But if I fin it too challenging for my level of knowledge, I'll try it.

Code: [Select]
ParTest.c:1: *** missing separator.  Stop.
Is this a make error or a compiler error? What's the content of that file?

If you want to get up and running with a very simple setup with a makefile and FreeRTOS you can generate a project with the STM32Cube

It can generate the project with only the files you need for your board, with freertos all setup and ready to go and being built using a makefile (if the correct setting is selected).

You can then poke around what is generated including the makefile to see how everything goes together and learn how to use FreeRTOS on the stm processor series.
It works (I am using it on an STMf072 based project -so a smallish thing), but with some caveats:
  • It forces to define at least one task in the tool - I don't like this, especially due to the point below  >:(
  • The generated code is not directly using FreeRTOS API, rather the CMSIS (V1 or V2), almost pointless, abstraction layer.
    Your code can freely call FreeRTOS though and completely forget about CMSIS RTOS.
  • Only a subset of FreeRTOS configuration options is available, you might need to add some others directly in the code.

The error happens when I run `make`command. That file is from FreeRTOS. Not my code or anything, so I have to assume this is no error on that files code.

Edited;

I opened this ParTest.c file and my vim linter complains about a missing header file. Not sure this is the problem because the error says "missing separator".
« Last Edit: July 29, 2020, 06:22:55 pm by psysc0rpi0n »
 

Offline lucazader

  • Regular Contributor
  • *
  • Posts: 221
  • Country: au
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #5 on: July 29, 2020, 07:51:46 pm »
You can still use openOCD to load and debug the program that will be generated from the STM cube. (i am talking about the stm32cubemx rather than the stm32cubeide)

Newbrain does mention some good points about how this generated code does have some drawbacks, most notably the CMSIS RTOS abstraction layer and the forced default task.
But as he mentions there are relatively easy to work around.
 

Offline newbrain

  • Super Contributor
  • ***
  • Posts: 1916
  • Country: se
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #6 on: July 29, 2020, 09:29:45 pm »
Code: [Select]
SRCDIR := ../../Source ./
[---8<---]
$(OBJDIR)/%.o: $(SRCDIR)/%.c | $(OBJDIR)

My makefile-fu is not stellar (any more), but I don't think this is going to work: $(SRCDIR)/%.c becomes ../../Source ./%.c, it's probably not what you want.

ParTest.c is part of the Demo folder, unfortunately for STM32F407 they provide just the IAR project files...
Nandemo wa shiranai wa yo, shitteru koto dake.
 

Offline guidoted

  • Newbie
  • Posts: 3
  • Country: it
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #7 on: August 02, 2020, 10:47:35 pm »
I agree with Lucazader.
Use STM32CubeIDE and generate the project with STM32CubeMX (included in CubeIDE), including FreeRTOS; very quick and simple.
Then, if you want, you can go more deeply into the code and program even more "bare metal".
Guido
 

Offline asmi

  • Super Contributor
  • ***
  • Posts: 3356
  • Country: ca
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #8 on: August 04, 2020, 05:26:11 pm »
STM32 has a very good video training series for using RTOS. I definitely recommend watching it!

Offline psysc0rpi0nTopic starter

  • Frequent Contributor
  • **
  • Posts: 362
  • Country: ar
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #9 on: August 04, 2020, 08:12:37 pm »
Code: [Select]
SRCDIR := ../../Source ./
[---8<---]
$(OBJDIR)/%.o: $(SRCDIR)/%.c | $(OBJDIR)

My makefile-fu is not stellar (any more), but I don't think this is going to work: $(SRCDIR)/%.c becomes ../../Source ./%.c, it's probably not what you want.

ParTest.c is part of the Demo folder, unfortunately for STM32F407 they provide just the IAR project files
...

So, does this means I can't do what I wanted?
 

Offline MosherIV

  • Super Contributor
  • ***
  • Posts: 1530
  • Country: gb
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #10 on: August 04, 2020, 09:29:36 pm »
Quote
So, does this means I can't do what I wanted?
No, the makefile given does not do what you want.

The IAR example does not have a makefile provided.
You will need to write one yourself.

Most modern/commercial development systems for commercial development concentrate on productivity. Having to manually write/manage makfiles is time consumming and rarely adds to the project progress, so they manage this for the developer.

By all means, if you want to learn to write makefiles, go ahead.
Turn on verbose mode to try and understand what the macros, symbols and substitutions do.

Sorry, I cannot be any more help - its been years since I did makefiles. I am a professional/commercial embedded developer. I use what ever makes me more productive, so I have used IDEs to manage project for years now.
 
The following users thanked this post: newbrain

Offline newbrain

  • Super Contributor
  • ***
  • Posts: 1916
  • Country: se
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #11 on: August 04, 2020, 09:32:58 pm »
So, does this means I can't do what I wanted?
What?
No, I was just pointing out what appears to me to be a problem in your makefile!

It's probably solvable, how, I cannot now say.

PS: Drat, my first job was writing makefiles for a quite large project, but that was 30 years ago, with SunOS make...
Nandemo wa shiranai wa yo, shitteru koto dake.
 

Offline MosherIV

  • Super Contributor
  • ***
  • Posts: 1530
  • Country: gb
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #12 on: August 04, 2020, 09:45:07 pm »
One thing I would like to point out is that trying to get makefiles to work is distracting you from your goal of 'learning about FreeRTOS'.

If you want to just use the IAR examples, there is a free version of IAR Workbench.
Just download IAR WB from the web site. When starting IAR it will ask you for license, select option to apply for license on line. One of the options should free size limited (I think it only allows 34KBytes of binary size) This should be enough to build FreeRTOS examples.

There should be free version of Atollic TrueStudio as well (cannot stand it myself, cannot stand anything that is Eclipse based  :palm: )
 
The following users thanked this post: newbrain

Offline newbrain

  • Super Contributor
  • ***
  • Posts: 1916
  • Country: se
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #13 on: August 04, 2020, 10:10:59 pm »
One thing I would like to point out is that trying to get makefiles to work is distracting you from your goal of 'learning about FreeRTOS'.
[...]
There should be free version of Atollic TrueStudio as well (cannot stand it myself, cannot stand anything that is Eclipse based  :palm: )
QFT, on both counts.

I'm convinced that even this is better for writing code than Eclipse.

That said, leaving aside my preferences, and as already suggested by others, a very good way would be to download STM32CubeIDE, and create a FreeRTOS project inside it. The IDE is, in fact, Atollic TrueStudio (now acquired by ST) and include the CubMx startup code generator, so you don't need to bother with toolchains and installations, everything is included, for good or bad...
Nandemo wa shiranai wa yo, shitteru koto dake.
 

Offline psysc0rpi0nTopic starter

  • Frequent Contributor
  • **
  • Posts: 362
  • Country: ar
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #14 on: August 05, 2020, 06:48:46 pm »
You can still use openOCD to load and debug the program that will be generated from the STM cube. (i am talking about the stm32cubemx rather than the stm32cubeide)

Newbrain does mention some good points about how this generated code does have some drawbacks, most notably the CMSIS RTOS abstraction layer and the forced default task.
But as he mentions there are relatively easy to work around.

Ok, however I have a couple of problems right now. I have installed a few softwares and I'm running out of space on my laptop. I have MPLab IDE from Microchip, Matlab, KiCAD, and I already installed STM32CubeIDE using an sh script I downloaded from their site which install a debian package but I don't know how to uninstall it and I don't find any info about how to do it.


I agree with Lucazader.
Use STM32CubeIDE and generate the project with STM32CubeMX (included in CubeIDE), including FreeRTOS; very quick and simple.
Then, if you want, you can go more deeply into the code and program even more "bare metal".
Guido

Yes, but my goal was to use only needed files for my board and have a Makefile to build the binary. Not sure if it's possible but that was what I wanted to do.


STM32 has a very good video training series for using RTOS. I definitely recommend watching it!

Do you have a link for those?


Quote
So, does this means I can't do what I wanted?
No, the makefile given does not do what you want.

The IAR example does not have a makefile provided.
You will need to write one yourself.

Most modern/commercial development systems for commercial development concentrate on productivity. Having to manually write/manage makfiles is time consumming and rarely adds to the project progress, so they manage this for the developer.

By all means, if you want to learn to write makefiles, go ahead.
Turn on verbose mode to try and understand what the macros, symbols and substitutions do.

Sorry, I cannot be any more help - its been years since I did makefiles. I am a professional/commercial embedded developer. I use what ever makes me more productive, so I have used IDEs to manage project for years now.

I understand. And if it takes too much time for me to do what I want, I'll have to consider that way too. But wanted to avoid it for now. But I'll consider it, for sure!


So, does this means I can't do what I wanted?
What?
No, I was just pointing out what appears to me to be a problem in your makefile!

It's probably solvable, how, I cannot now say.

PS: Drat, my first job was writing makefiles for a quite large project, but that was 30 years ago, with SunOS make...

Ah ok. I misunderstood you... Sorry.


One thing I would like to point out is that trying to get makefiles to work is distracting you from your goal of 'learning about FreeRTOS'.

If you want to just use the IAR examples, there is a free version of IAR Workbench.
Just download IAR WB from the web site. When starting IAR it will ask you for license, select option to apply for license on line. One of the options should free size limited (I think it only allows 34KBytes of binary size) This should be enough to build FreeRTOS examples.

There should be free version of Atollic TrueStudio as well (cannot stand it myself, cannot stand anything that is Eclipse based  :palm: )

Indeed. But it was also my goal to avoid IDEs, so Makefile was kinda mandatory. That's why I started from there.


One thing I would like to point out is that trying to get makefiles to work is distracting you from your goal of 'learning about FreeRTOS'.
[...]
There should be free version of Atollic TrueStudio as well (cannot stand it myself, cannot stand anything that is Eclipse based  :palm: )
QFT, on both counts.

I'm convinced that even this is better for writing code than Eclipse.

That said, leaving aside my preferences, and as already suggested by others, a very good way would be to download STM32CubeIDE, and create a FreeRTOS project inside it. The IDE is, in fact, Atollic TrueStudio (now acquired by ST) and include the CubMx startup code generator, so you don't need to bother with toolchains and installations, everything is included, for good or bad...

Ok, so I guess the Makefile will be a no go. I'll distract myself one way or another. If it's not making a Makefile to work is learning about STM32CubeIE.
 

Offline asmi

  • Super Contributor
  • ***
  • Posts: 3356
  • Country: ca
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #15 on: August 05, 2020, 07:42:01 pm »
Do you have a link for those?
Here:
Code: [Select]
https://www.youtube.com/watch?v=QGVAayFI5ZQ&list=PLnMKNibPkDnFeFV4eBfDQ9e5IrGL_dx1Q
« Last Edit: August 05, 2020, 07:44:09 pm by asmi »
 
The following users thanked this post: psysc0rpi0n

Offline julian1

  • Frequent Contributor
  • **
  • Posts: 885
  • Country: au
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #16 on: August 05, 2020, 09:05:29 pm »
Quote
which install a debian package but I don't know how to uninstall it and I don't find any info about how to do it.

Find out what is installed with,
grep /var/log/dpkg.log
or
dpkg --get-selections

Should be something like this to remove packages,
dpkg  --purge <>

Quote
Yes, but my goal was to use only needed files for my board and have a Makefile to build the binary.

Look at the example here,

https://github.com/ve3wwg/stm32f103c8t6/blob/master/rtos/blinky2/Makefile

It only pulls in local project files for the app, and whatever rtos support files are needed and is stupidly simple. The stm32 variant and board configuration are pulled from the Makefile.incl two dir levels up, which only needs light editing to be setup once - and can then be used across different projects.

I use this approach with stm32f4 and rtos on linux without issue.

 
The following users thanked this post: psysc0rpi0n

Offline psysc0rpi0nTopic starter

  • Frequent Contributor
  • **
  • Posts: 362
  • Country: ar
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #17 on: August 05, 2020, 10:01:28 pm »
Quote
which install a debian package but I don't know how to uninstall it and I don't find any info about how to do it.

Find out what is installed with,
grep /var/log/dpkg.log
or
dpkg --get-selections

Should be something like this to remove packages,
dpkg  --purge <>

Will that completely uninstall everything installed by the script? I hope it does.

Quote
Yes, but my goal was to use only needed files for my board and have a Makefile to build the binary.

Look at the example here,

https://github.com/ve3wwg/stm32f103c8t6/blob/master/rtos/blinky2/Makefile

It only pulls in local project files for the app, and whatever rtos support files are needed and is stupidly simple. The stm32 variant and board configuration are pulled from the Makefile.incl two dir levels up, which only needs light editing to be setup once - and can then be used across different projects.

I use this approach with stm32f4 and rtos on linux without issue.

I'll have a look. Thank you a lot.
 

Offline psysc0rpi0nTopic starter

  • Frequent Contributor
  • **
  • Posts: 362
  • Country: ar
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #18 on: August 06, 2020, 07:00:37 pm »
@julian1 I thought that github was FreeRTOS one.

I'm not sure I can use the same approach using FreeRTOS sources I downloaded from github. Folder structure seems to be different and I'm here:

https://github.com/FreeRTOS/FreeRTOS/tree/master/FreeRTOS/Demo/CORTEX_M4F_STM32F407ZG-SK

and folder structure is completely different.

 

Offline julian1

  • Frequent Contributor
  • **
  • Posts: 885
  • Country: au
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #19 on: August 06, 2020, 08:30:18 pm »
The freertos dir for the example, https://github.com/ve3wwg/stm32f103c8t6/tree/master/rtos/blinky2/rtos is a snapshot of the standalone freertos project https://github.com/FreeRTOS/FreeRTOS-Kernel/tree/6199b72fbf57a7c5b3d7b195a3bd1446779314cd .

You can see queue.c and tasks.c in both. If you don't want to use the snapshot version, then you should just be able to reference the freestanding freertos files and headers by checking out the repo as a subdirectory and then editing the higher level Makefile. The alternative would be to let freertos build your project, but then you become dependent on the freertos Makefile.   

My experience has been limited to the snapshot, as I only needed the task threading and communication queue functions.
 

Offline psysc0rpi0nTopic starter

  • Frequent Contributor
  • **
  • Posts: 362
  • Country: ar
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #20 on: August 09, 2020, 10:46:15 pm »
The freertos dir for the example, https://github.com/ve3wwg/stm32f103c8t6/tree/master/rtos/blinky2/rtos is a snapshot of the standalone freertos project https://github.com/FreeRTOS/FreeRTOS-Kernel/tree/6199b72fbf57a7c5b3d7b195a3bd1446779314cd .

You can see queue.c and tasks.c in both. If you don't want to use the snapshot version, then you should just be able to reference the freestanding freertos files and headers by checking out the repo as a subdirectory and then editing the higher level Makefile. The alternative would be to let freertos build your project, but then you become dependent on the freertos Makefile.   

My experience has been limited to the snapshot, as I only needed the task threading and communication queue functions.

Thanks for replying.

The underlined part is the one I think I want to focus on. But my knowledge with using and participating in others projects is very limited, as I have never did it. I'm just a guy that enjoys programming, electronics, etc but I have no experience in the field and never worked on this field for living. So please, bare with me. I will need some guidance to make this work in the most simple way possible using only the needed files for my board and a simple and basic Makefile.

Isn't it possible to check which files are needed for my board, put them all in one (or more) folders and building a basic Makefile for it?
 

Offline julian1

  • Frequent Contributor
  • **
  • Posts: 885
  • Country: au
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #21 on: August 09, 2020, 11:28:22 pm »
Quote
Isn't it possible to check which files are needed for my board, put them all in one (or more) folders and building a basic Makefile for it?

Yes this is kind of what I was suggesting. Except without the additional step of copying the files into your own dir.

Instead, it is better to have the complete freertos repository checked in your local project dir. That way, any fixes or new features in the freertos repo are immediately available to your build, or else you can pin the commit, or have your own branches etc. A lot more maintainable. It is common to use the same approach for libopencm3.

But then circumvent the freertos build system and use your own simple Makefile (example from the other github project) and just reference the specific freertos files as needed. That reduces dependencies to a minimum, and freertos basics are minimal anyway.

The Makefile.incl should have the necessary defines for architecture - cortex m4, and link script for memory layout etc.

That is how I planned to do it, and is on my list of tasks - I just haven't got around to it yet - so I cannot guarantee the method or give futher guidance.

I suspect there might be some extra freertos defines etc, that might be necessary. But it should be evident what's needed, given any compiler errors.
 

Offline psysc0rpi0nTopic starter

  • Frequent Contributor
  • **
  • Posts: 362
  • Country: ar
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #22 on: August 12, 2020, 07:29:20 pm »
Quote
Isn't it possible to check which files are needed for my board, put them all in one (or more) folders and building a basic Makefile for it?

Yes this is kind of what I was suggesting. Except without the additional step of copying the files into your own dir.

Instead, it is better to have the complete freertos repository checked in your local project dir. That way, any fixes or new features in the freertos repo are immediately available to your build, or else you can pin the commit, or have your own branches etc. A lot more maintainable. It is common to use the same approach for libopencm3.

But then circumvent the freertos build system and use your own simple Makefile (example from the other github project) and just reference the specific freertos files as needed. That reduces dependencies to a minimum, and freertos basics are minimal anyway.

The Makefile.incl should have the necessary defines for architecture - cortex m4, and link script for memory layout etc.

That is how I planned to do it, and is on my list of tasks - I just haven't got around to it yet - so I cannot guarantee the method or give futher guidance.

I suspect there might be some extra freertos defines etc, that might be necessary. But it should be evident what's needed, given any compiler errors.

I was almost about to give up on this but now I want to try that solution. I was already starting STM32CubeMX.

Ok, so I already have a copy of the entire FreeRTOS source code from github in a folder I created.

I think I know the correct folder for my board.
This is:
https://github.com/FreeRTOS/FreeRTOS/tree/master/FreeRTOS/Demo/CORTEX_M4F_STM32F407ZG-SK

for this board, based on STM32FM4
https://www.diymore.cc/products/stm32f4-discovery-stm32f407vgt6-microcontroller-32bit-flash-mcu-arm-cortex-m4-core-development-board

Now I just need to know how to start.

I'm going to have a look inside that Makefile.incl and see if I can start!
 

Offline psysc0rpi0nTopic starter

  • Frequent Contributor
  • **
  • Posts: 362
  • Country: ar
Re: STM32F4 board - trying to learn about FreeRTOS
« Reply #23 on: August 12, 2020, 08:20:29 pm »
Weird, I'm using find to look for that Makefile.incl and I can't find one.

Edited;
Well, apparently this is some third party Makefile, no? From that libopencm3 library?


Edited 1;

Ok, so as I am very unaware about how things works I started comparing some other FreeRTOS projects across github, and apparently, the workflow should be something like:

1 - Create my project, by simply creating a folder
2 - Clone FreeRTOS repository into this folder I just created
3 - Add libopencm3, if needed, as a submodule.

I hope this is correct so far. If not, please correct me.

After this, I think it's time to use libopencm3 library Makefiles and edit them according to my board and needs.
This is where things starts getting more tricky, I guess. So, I would need some help to be able to keep going.
« Last Edit: August 12, 2020, 09:51:01 pm by psysc0rpi0n »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

-->