Malloc from ISR?
Mr. Andrei Chichak
groups at chichak.ca
Tue Dec 12 00:36:09 UTC 2017
(sorry if this ended up on the Devel list.)
I’m working with ST’s HAL USB stack, and to initialize the various structures, they use a USB interrupt as a trigger.
In this interrupt, they malloc some space for a descriptor (504 bytes).
The RTEMS malloc always returns 0.
Is there a guard against calling malloc in an interrupt context?
I managed to get around the problem by doing a static allocation, but I was just wondering.
Andrei
More information about the users
mailing list