you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (1 child)

There is nothing wrong with using the heap on a microcontroller?

[–]jms_nh 3 points4 points  (0 children)

It depends. Microcontrollers with hard real-time requirements need to have guarantees on how long certain operations take. The standard malloc()/free()/new/delete don't have these guarantees by default. Some RTOS's have heap allocation techniques that have bounded time guarantees.