0

Itsy Bitsy M4
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Itsy Bitsy M4

by jsalloneword on Mon Nov 05, 2018 9:23 am

Hello,
Can a u2f file created in Makecode be dragged onto a M4 Itsy Bitsy? I have successfully done this for the Itsy Bitsy M0 without issue but cannot get even a simple pin 13 blink code to run on the M4. It goes into Bootmode successfully and is using a known data-transfer cable. It also uploads Arduino code absolutely fine too. When I am in bootmode and drag a u2f file onto the device it seems to try to 'engage' (for want of a better word), the Neopixel quickly goes solid red but then reverts back to bootmode (green Neopixel and pulsing red LED pin 13).

I realise Makecode is in Beta so it maybe does not yet work for M4 boards. Just enquiring is there are any solutions as it would be beneficial to teach with the Itsy Bitsy M4.

thanks

jsalloneword
 
Posts: 36
Joined: Wed Sep 28, 2016 4:14 am

Re: Itsy Bitsy M4

by jsalloneword on Mon Nov 05, 2018 3:10 pm

So I believe its because my u2f downloaded from Makecode does not start with the 0x4000 offset as all the board examples are M0 on the Makecode site so likely have 0x2000 offset. Is there anyway round this in Makecode as oppose to converting the file myself using the Python conversion script.

I'm trying to create the easiest workflow for teaching and having to do a script conversion with beginner level students isn't feasible.

Many thanks.

jsalloneword
 
Posts: 36
Joined: Wed Sep 28, 2016 4:14 am

Re: Itsy Bitsy M4

by adafruit_support_carter on Wed Nov 07, 2018 2:23 pm

Each MakeCode session is specific to a hardware platform. Also, MakeCode is hosted in several locations. The Adafruit one here:
https://makecode.adafruit.com/
is for the Circuit Playground Express only.

Where were you running MakeCode?

adafruit_support_carter
 
Posts: 6944
Joined: Tue Nov 29, 2016 2:45 pm

Re: Itsy Bitsy M4

by johnpark on Wed Nov 07, 2018 7:06 pm

There is also MakeCode Maker for other boards: https://maker.makecode.com/ however the ItsyBitsy M4 is not a supported board there yet.

johnpark
 
Posts: 210
Joined: Wed Mar 25, 2009 2:15 pm

Re: Itsy Bitsy M4

by jsalloneword on Thu Nov 08, 2018 6:04 pm

thanks for both replies. I've used both the https://makecode.adafruit.com/ and the https://maker.makecode.com/ options. Normally even if the board platform is hosted a simple 'blink sketch' type blockly code runs on various platforms. I understand the error is likely due to the M4 architecture though.
The reason I asking if there are other options is because this Adafruit article
https://learn.adafruit.com/alternative- ... AMD-boards
claims M4 SAMD51 boards can be programmed with MakeCode so I'm wondering if there is a way round this .
Thanks

jsalloneword
 
Posts: 36
Joined: Wed Sep 28, 2016 4:14 am

Re: Itsy Bitsy M4

by johnpark on Thu Nov 08, 2018 7:47 pm

I don't think you can program the M4 boards with MakeCode yet. I think that article by Dave Astels says that the ATSAMD21 and '51 "throw open the gates to higher level languages such as Makecode/Javascript and CircuitPython." meaning it's possible (and likely!) but not currently working.

johnpark
 
Posts: 210
Joined: Wed Mar 25, 2009 2:15 pm

Re: Itsy Bitsy M4

by adafruit_support_carter on Fri Nov 09, 2018 12:17 pm

Yep, I believe that is the intent. It's just mentioned as a possibility. And then the guide only discusses Forth and Lisp.

adafruit_support_carter
 
Posts: 6944
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.


cron