跳至主要內容
Knowledgebase
Home
Renesas Electronics Taiwan - Knowledgebase

Why do I sometimes get an E_NOMEM (insufficient memory) error when the service call "acr_tsk" is called after "exd_tsk" ?

Last Updated:05/17/2017

Question:

An E_NOMEM error (insufficient memory) may be returned when the service call “acre_tsk” (create task and assign task ID automatically) is called after the execution of the service call “exd_tsk” (exit current task and delete it). Why does it do that?

Answer:

The size of the dynamic stack area may be insufficient. Repeated creation and deletion of tasks that use a dynamic stack causes fragmentation of the available dynamic stack area. Therefore, an E_NOMEM error may occur even when there is sufficient free space.

 

Suitable Products
HI7000/4 Real-time OS for SuperH Family
  • 本文是否實用?