This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TMS570LS1224:在 FreeRTOS 中使用堆函数时出现问题。

Guru**** 2322270 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1523055/tms570ls1224-problems-occurred-while-using-heap-functions-in-freertos

器件型号:TMS570LS1224

工具/软件:

在我的系统启动 vTaskStartScheduler ()之后;如果我执行  free = xPortGetFreeHeapSize (); min = xPortGetMinimumEverFreeHeapSize (); void *Size = pvPortMalloc ( 128 );

系统将跳到prefetchEntry。我想知道为什么会发生这种情况以及如何避免它。 顺便说一句,我目前正在使用 mbedtls 加密库,所以我需要使用pvPortMalloc.