I have a Digilent WiFire PIC32MZ Rev D microcontroller board. It is supposed to have 512 KB of RAM. When running the attached test program, I run out of memory (it crashes) when trying to allocate more than 1964 bytes.
Other members on my team with the same code, and same board, report that they crash when allocating more than 1988 bytes.
We are compiling and flashing through the Arduino IDE.
UPDATE [4.28.21]:
Further testing shows this is only the case when using `new` or `malloc`, but not with static allocation. See working `shield_static.ino`.
Question
souvlaki
I have a Digilent WiFire PIC32MZ Rev D microcontroller board. It is supposed to have 512 KB of RAM. When running the attached test program, I run out of memory (it crashes) when trying to allocate more than 1964 bytes.
Other members on my team with the same code, and same board, report that they crash when allocating more than 1988 bytes.
We are compiling and flashing through the Arduino IDE.
UPDATE [4.28.21]:
Further testing shows this is only the case when using `new` or `malloc`, but not with static allocation. See working `shield_static.ino`.
shield.ino
shield_static.ino
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.