Did you include the HeapMgr unit? This unit enables heap memory allocation for arm+pic cpu's, hopefully it also works for avr.....

Michael

Am 26.01.19 um 10:29 schrieb Dimitrios Chr. Ioannidis via fpc-pascal:
Hi,

  AFAIU dynamic allocation memory does not exist for AVR platform ( tried to use AllocMem, GetMem and the mcu restart it's self. ) .

Is there any other way to dynamically allocate memory in AVR ?

( I'm writing a driver for the ENC28J60 and I need to allocate memory on demand for the ethernet packet buffer ).

regards,

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to