# Compiling error for SAMD21 board (Seeeduino Xiao)

**URL:** https://community.simplefoc.com/t/compiling-error-for-samd21-board-seeeduino-xiao/3169
**Category:** hardware support
**Created:** [March 28, 2023, 8:03pm UTC](https://community.simplefoc.com/t/compiling-error-for-samd21-board-seeeduino-xiao/3169 "2023-03-28T20:03:17Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![runger](https://community.simplefoc.com/user_avatar/community.simplefoc.com/runger/32/395_2.png) [@runger](https://community.simplefoc.com/u/runger)
#### Post date: [March 30, 2023, 9:02am UTC](https://community.simplefoc.com/t/compiling-error-for-samd21-board-seeeduino-xiao/3169/4 "2023-03-30T09:02:51Z")

</div>

So I’ve looked at this, and it’s a problem only with the header files used in the Seeed board support vs. the Arduino SAMD board support ☹ I tested on the Xiao and I get your error, I tested on the MKR1000 and I get no error.  
Basically, Arduino defines PinStatus as an enum type, while Seeed does not define this type.  
Its a big pain because this isn’t even MCU type-specific, but rather board-vendor specific - here we have two boards based on SAMD21 where one works and one does not…

If you want a quick fix, it is enough to add a  
`#define PinStatus int`  
to the top of the src/communications/StepDirListener.h file.

I will try to find a good solution for the next release of our library.

---

_[View the full topic](https://community.simplefoc.com/t/compiling-error-for-samd21-board-seeeduino-xiao/3169)._
