0

Adafruit ItsyBitsy M0 Express not working with Arduino IDE
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit ItsyBitsy M0 Express not working with Arduino IDE

by mbobinger on Mon Jul 15, 2019 8:16 am

Dear adafruit-team,

I have purchased an Adafruit ItsyBitsy M0 Express - for CircuitPython & Arduino IDE:
https://www.adafruit.com/product/3727

I have tried to compile following standard LM35 temperature sensor standard code example:
Code: Select all | TOGGLE FULL SIZE
int val;
int tempPin = A0;

void setup()
{
  Serial.begin(9600);
}
void loop()
{
  val = analogRead(tempPin);
  float mv = ( val/1024.0)*5000;
  float cel = mv/10;
  float farh = (cel*9)/5 + 32;
  Serial.print("TEMPRATURE = ");
  Serial.print(cel);
  Serial.print("*C");
  Serial.println();
  delay(1000);
/* uncomment this to get temperature in farenhite
Serial.print("TEMPRATURE = ");
Serial.print(farh);
Serial.print("*F");
Serial.println();
*/
}


It seems like the compilation was successful, please see the report below. However, if i restart the MCU (it is also recognized again), there is no temperature output on the Serial Monitor. The same applies to the blinking example. The MCU doesn't blink even though the code is uploaded. I have selected the Zero (Native USB Port) bootloader.

Code: Select all | TOGGLE FULL SIZE
Sketch uses 20832 bytes (7%) of program storage space. Maximum is 262144 bytes.
Atmel SMART device 0x10010005 found
Device       : ATSAMD21G18A
Chip ID      : 10010005
Version      : v1.1 [Arduino:XYZ] Feb  5 2018 21:07:26
Address      : 8192
Pages        : 3968
Page Size    : 64 bytes
Total Size   : 248KB
Planes       : 1
Lock Regions : 16
Locked       : none
Security     : false
Boot Flash   : true
BOD          : true
BOR          : true
Arduino      : FAST_CHIP_ERASE
Arduino      : FAST_MULTI_PAGE_WRITE
Arduino      : CAN_CHECKSUM_MEMORY_BUFFER
Erase flash
done in 1.078 seconds

Write 20992 bytes to flash (328 pages)

[=====                         ] 19% (64/328 pages)
[===========                   ] 39% (128/328 pages)
[=================             ] 58% (192/328 pages)
[=======================       ] 78% (256/328 pages)
[============================= ] 97% (320/328 pages)
[==============================] 100% (328/328 pages)
done in 0.137 seconds

Verify 20992 bytes of flash with checksum.
Verify successful
done in 0.035 seconds
CPU reset.
processing.app.SerialException: Error opening serial port 'COM11'.
   at processing.app.Serial.<init>(Serial.java:147)
   at processing.app.Serial.<init>(Serial.java:82)
   at processing.app.SerialMonitor$4.<init>(SerialMonitor.java:101)
   at processing.app.SerialMonitor.open(SerialMonitor.java:101)
   at processing.app.AbstractMonitor.resume(AbstractMonitor.java:104)
   at processing.app.Editor.resumeOrCloseSerialMonitor(Editor.java:2126)
   at processing.app.Editor.access$1300(Editor.java:115)
   at processing.app.Editor$UploadHandler.run(Editor.java:2104)
   at java.lang.Thread.run(Thread.java:748)
Caused by: jssc.SerialPortException: Port name - COM11; Method name - openPort(); Exception type - Port not found.
   at jssc.SerialPort.openPort(SerialPort.java:167)
   at processing.app.Serial.<init>(Serial.java:136)
   ... 8 more
Error opening serial port 'COM11'.


Best,
Marco

mbobinger
 
Posts: 18
Joined: Mon Jul 15, 2019 8:10 am

Re: Adafruit ItsyBitsy M0 Express not working with Arduino I

by adafruit_support_carter on Mon Jul 15, 2019 7:10 pm

Stick with using the blink example as a test. It looks like there was an error accessing the com port:
Code: Select all | TOGGLE FULL SIZE
Error opening serial port 'COM11'.

Make sure you've installed both the Arduino and Adafruit SAMD board support:
https://learn.adafruit.com/introducing- ... rduino-ide
and drivers if needed:
https://learn.adafruit.com/introducing- ... -only-6-11

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

Please be positive and constructive with your questions and comments.