MCUXpresso FreeRTOS missing heap files?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MCUXpresso FreeRTOS missing heap files?

250 次查看
JBM
Contributor V

I recently upgraded to MCUXpresso v11.10.0, build 3148.  I added a new project this morning using FreeRTOS and it appears that the heap_1.c, heap_2.c, heap_3.c, heap_4.c and heap_5.c are no longer included.  This leads to undefined references to functions like vPortMalloc (and pretty much everything else memory related).

Is this on purpose?  Where should we get the new heap files?

0 项奖励
回复
9 回复数

181 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I suggest you refer to the community:

https://embeddedartistry.com/blog/2018/01/15/implementing-malloc-with-freertos/

 

Hope it can help you

BR

Xiangjun Rong

 

0 项奖励
回复

155 次查看
JBM
Contributor V

The blog post you reference is about writing the memory allocation routines.  That's not what I'm asking.  I'm trying to figure out where the missing files are.

0 项奖励
回复

138 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I am sorry for misunderstanding you, the heap_x.c is located at the directory in SDK package.

xiangjun_rong_0-1723782590820.png

Hope it can help you

BR

XiangJun Rong

 

0 项奖励
回复

119 次查看
JBM
Contributor V
That seems kind of silly since the IDE is already unzipping the SDK and copying files in.  So NXP is saying when you want to make a new project with FreeRTOS, you have to go find the SDK file, unzip it and grab these four files?
0 项奖励
回复

120 次查看
JBM
Contributor V
So the IDE is no longer going to copy these files into the project?
0 项奖励
回复

38 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

When you create a project or use the SDK example, the driver file which the example required will be copied to the project. If the driver is not used in the project, it is not copied.

Hope it can help you

BR

XiangJun Rong

0 项奖励
回复

34 次查看
JBM
Contributor V

Some soft of heap management is required for the FreeRTOS to compile.  These files should be copied in when selecting FreeRTOS as the OS.  They are not.  I think this is a bug.

0 项奖励
回复

194 次查看
JBM
Contributor V

Sorry, I should have put that in there.  It's the Kinetis MK22FN512VMP12.

0 项奖励
回复

198 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

can you tell us the part number you are using?

BR

XiangJun Rong

0 项奖励
回复