Adafruit METRO 328 + NeoPXL8 Friend

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
mjk7ha
 
Posts: 10
Joined: Sun Sep 11, 2022 1:15 pm

Adafruit METRO 328 + NeoPXL8 Friend

Post by mjk7ha »

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.

User avatar
dastels
 
Posts: 15659
Joined: Tue Oct 20, 2015 3:22 pm

Re: Adafruit METRO 328 + NeoPXL8 Friend

Post by dastels »

The Metro M0 is not an AVR board. Do you have "Metro M0" selected as the board?

Dave

User avatar
mjk7ha
 
Posts: 10
Joined: Sun Sep 11, 2022 1:15 pm

Re: Adafruit METRO 328 + NeoPXL8 Friend

Post by mjk7ha »

Sorry, I meant i am using this one
https://www.adafruit.com/product/2488
And I have selected Metro board, not M0.

User avatar
dastels
 
Posts: 15659
Joined: Tue Oct 20, 2015 3:22 pm

Re: Adafruit METRO 328 + NeoPXL8 Friend

Post by dastels »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “Metro, Metro Express, and Grand Central Boards”