1126 views|9 replies

26

Posts

0

Resources
The OP
 

[CW32L052 Review] FreeRTOS Porting [Copy link]

 

Go to the FreeRTOS official website or github to download the FreeRTOS source file first. FreeRTOS is free, so we can download and use it with confidence.

After downloading, unzip it as follows:

Open the FreeRTOS folder, you can see the Demo routines and Source source files. We mainly use the Source files.

Copy some files

Both .c and .h in the box are useful. For the files in the Portable folder, select port.c and portmacro.h in the RVDS folder; and for the memory allocation in the MemMang folder, select any one. Here we choose heap_3.c.

Then find a FreeRTOSConfig.h from the demo example and put them together. Basically all the files are OK. Then link them to the project as follows:

After compiling, there will be an error showing duplicate definition:

Let's modify it here and comment out the definition in the core source driver.

During the compilation process, some hook functions may report undefined errors. In this case, just turn off the corresponding macro definitions in the FreeRTOSConfig.h file.

This post is from Domestic Chip Exchange

Latest reply

Are there any official drivers? What does this driver mean? Is it something like the STM32 HAL library? If not, you have to transplant it yourself. Has the OP done it before?   Details Published on 2023-10-10 02:30
 
 

1662

Posts

0

Resources
2
 

Just comment out the definition in the core source driver.

It turns out that this is possible

This post is from Domestic Chip Exchange
 
 
 

6818

Posts

11

Resources
3
 

To run FreeRTOS, the resources of this board may not be enough.

This post is from Domestic Chip Exchange

Comments

That's enough, freertos requires very little.  Details Published on 2023-8-14 19:00
 
 
 

7422

Posts

2

Resources
4
 
lugl4313820 posted on 2023-8-13 22:07 Running freertos, the resources of this board are not enough.

That's enough, freertos requires very little.

This post is from Domestic Chip Exchange
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 
 

195

Posts

0

Resources
5
 
Newbies in electronic design, come and learn and see how the masters think.
This post is from Domestic Chip Exchange
 
 
 

195

Posts

0

Resources
6
 
Newbies in electronic design, come and learn and see how the masters think.
This post is from Domestic Chip Exchange
 
 
 

14

Posts

0

Resources
7
 

May I ask, what is the power consumption of running freertos?

This post is from Domestic Chip Exchange

Comments

Power consumption mainly depends on how many peripheral resources are used and the design of the hardware board, which has little to do with FreeRTOS.  Details Published on 2023-10-9 20:54
 
 
 

26

Posts

0

Resources
8
 
345059368 Published on 2023-10-8 09:02 May I ask, what is the power consumption of this running freertos?

Power consumption mainly depends on how many peripheral resources are used and the design of the hardware board, which has little to do with FreeRTOS.

This post is from Domestic Chip Exchange
 
 
 

7815

Posts

57

Resources
9
 

Are there any official drivers?

What does this driver mean? Is it something like the STM32 HAL library?

If not, you have to transplant it yourself. Has the OP done it before?

This post is from Domestic Chip Exchange

Comments

I remember that the official also seems to have an operating system demo for reference. If you want to transplant it yourself, you can, but it will take more time.  Details Published on 2023-10-10 20:28
Personal signature

强者为尊,弱者,死无葬身之地

 
 
 

26

Posts

0

Resources
10
 
Xin Xin posted on 2023-10-10 02:30 Does the official provide a driver? What does this driver mean? Is it something like the STM32 HAL library? If not, you have to port it yourself. The host is...

I remember that the official also seems to have an operating system demo for reference. If you want to transplant it yourself, you can, but it will take more time.

This post is from Domestic Chip Exchange
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list