MCUXpresso FreeRTOS missing heap files?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MCUXpresso FreeRTOS missing heap files?

805件の閲覧回数
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 返答(返信)

736件の閲覧回数
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 件の賞賛
返信

710件の閲覧回数
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 件の賞賛
返信

693件の閲覧回数
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 件の賞賛
返信

674件の閲覧回数
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 件の賞賛
返信

675件の閲覧回数
JBM
Contributor V
So the IDE is no longer going to copy these files into the project?
0 件の賞賛
返信

593件の閲覧回数
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 件の賞賛
返信

589件の閲覧回数
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 件の賞賛
返信

749件の閲覧回数
JBM
Contributor V

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

0 件の賞賛
返信

753件の閲覧回数
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

can you tell us the part number you are using?

BR

XiangJun Rong

0 件の賞賛
返信