MCUXpresso FreeRTOS missing heap files?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCUXpresso FreeRTOS missing heap files?

250 Views
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 Kudos
Reply
9 Replies

181 Views
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 Kudos
Reply

155 Views
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 Kudos
Reply

138 Views
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 Kudos
Reply

119 Views
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 Kudos
Reply

120 Views
JBM
Contributor V
So the IDE is no longer going to copy these files into the project?
0 Kudos
Reply

38 Views
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 Kudos
Reply

34 Views
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 Kudos
Reply

194 Views
JBM
Contributor V

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

0 Kudos
Reply

198 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

can you tell us the part number you are using?

BR

XiangJun Rong

0 Kudos
Reply