So I am trying to use NeoPXL8 Friend with the standard Metro M0 Board, but when I am trying to compile the strandtest on the Metro board, I get the following error:
/home/michalmain/Arduino/libraries/Adafruit_ZeroDMA_Library/Adafruit_ZeroDMA.cpp:30:10: fatal error: malloc.h: No such file or directory
#include <malloc.h> // memalign() function
^~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: exit status 1
From what I think, it seems that the Boards Manager that has Metro aka Adafruit AVR Boards is lacking the `malloc.h`, but I am not sure how to solve that problem.
Adafruit METRO 328 + NeoPXL8 Friend
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- dastels
- Posts: 15831
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Adafruit METRO 328 + NeoPXL8 Friend
The Metro M0 is not an AVR board. Do you have "Metro M0" selected as the board?
Dave
Dave
- mjk7ha
- Posts: 10
- Joined: Sun Sep 11, 2022 1:15 pm
Re: Adafruit METRO 328 + NeoPXL8 Friend
Sorry, I meant i am using this one
https://www.adafruit.com/product/2488
And I have selected Metro board, not M0.
https://www.adafruit.com/product/2488
And I have selected Metro board, not M0.
- dastels
- Posts: 15831
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Adafruit METRO 328 + NeoPXL8 Friend
Ah. The NeoPXL8 is designed for the SAMD21/51 (or better) MCUs. the ATmega328 (i.e. an Arduino UNO or Metro 328) is not up to the task. It doesn't have enough DMA, RAM of computational power.
Dave
Dave
Please be positive and constructive with your questions and comments.