Having trouble Blink on Seeduino XIAO (or is it Femto?)

Hello my Friends,

I have just want to learn as much as I can to work with SAM micro-controllers.
So, I have bought two brand new seeeduino XIAO (at this point I am not even sure if they are XIAO at all)

The first issue I had with the board was - not able to install the driver - of which was recognized by Windows 8.1 as seeeduino fento M0 - that made me in a confused position since I was not even sure that there was also a fento version of seeeduino - I though that it is the same as XIAO and I have tried so many times to install the driver - I have “managed” to install the driver I had BY disabling the signature Drivers Check on my OS - Of which I was NOT even sure that it will work when I try on Arduino IDE.

After I thought I have come the issue of the driver I tried my best flashing the simplest sketch - blink.ino from Arduino Examples - also made sure to change the LED_BUILTIN to 10 so I will be able to put a led at the legs of the board and test it (since leg No. 10 is the closest one to ground).

I have fired-up Arduino IDE and made all the changes needed to have the seeeduino board within the aopp as well as chosing the seeeduino XIAO from the list. Chose the PORT and checked the board and I got it

  • image A

image (A)
At this Point I thought that it was the Correct board definition (of which I am not sure it does not).
After that I tried to upload the blink sketch…

void setup() {
  pinMode(10, OUTPUT);
}
void loop() {
  digitalWrite(10, HIGH);
  delay(1000);
  digitalWrite(10, LOW);
  delay(1000);
}

making sure it will have the led leg on pin 10.
I don’t even know what it was doing… I got so may lined on my Arduino IDE that I got confused all over.

Set binary mode
readWord(addr=0)=0x20002dd8
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
version()=v1.1 [Arduino:XYZ] Nov 27 2019 16:35:59
chipId=0x10010005
Connected at 921600 baud
readWord(addr=0)=0x20002dd8
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
Atmel SMART device 0x10010005 found
write(addr=0x20004000,size=0x34)
writeWord(addr=0x20004030,value=0x10)
writeWord(addr=0x20004020,value=0x20008000)
Device       : ATSAMD21G18A
readWord(addr=0)=0x20002dd8
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
Chip ID      : 10010005
version()=v1.1 [Arduino:XYZ] Nov 27 2019 16:35:59
Version      : v1.1 [Arduino:XYZ] Nov 27 2019 16:35:59
Address      : 8192
Pages        : 3968
Page Size    : 64 bytes
Total Size   : 248KB
Planes       : 1
Lock Regions : 16
Locked       : readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
readWord(addr=0x41004020)=0xffff
none
readWord(addr=0x41004018)=0
Security     : false
Boot Flash   : true
readWord(addr=0x40000834)=0x7000a
BOD          : true
readWord(addr=0x40000834)=0x7000a
BOR          : true
Arduino      : FAST_CHIP_ERASE
Arduino      : FAST_MULTI_PAGE_WRITE
Arduino      : CAN_CHECKSUM_MEMORY_BUFFER
Erase flash
chipErase(addr=0x2000)
done in 0.856 seconds

Write 35228 bytes to flash (551 pages)
write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x2000, size=0x1000)
[===                           ] 11% (64/551 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x3000, size=0x1000)
[======                        ] 23% (128/551 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x4000, size=0x1000)
[==========                    ] 34% (192/551 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x5000, size=0x1000)
[=============                 ] 46% (256/551 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x6000, size=0x1000)
[=================             ] 58% (320/551 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x7000, size=0x1000)
[====================          ] 69% (384/551 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x8000, size=0x1000)
[========================      ] 81% (448/551 pages)write(addr=0x20005000,size=0x1000)
writeBuffer(scr_addr=0x20005000, dst_addr=0x9000, size=0x1000)
[===========================   ] 92% (512/551 pages)write(addr=0x20005000,size=0x9c0)
writeBuffer(scr_addr=0x20005000, dst_addr=0xa000, size=0x9c0)
[==============================] 100% (551/551 pages)
done in 0.420 seconds

Verify 35228 bytes of flash with checksum.
checksumBuffer(start_addr=0x2000, size=0x1000) = 2faf
checksumBuffer(start_addr=0x3000, size=0x1000) = 1563
checksumBuffer(start_addr=0x4000, size=0x1000) = b8bf
checksumBuffer(start_addr=0x5000, size=0x1000) = 58b3
checksumBuffer(start_addr=0x6000, size=0x1000) = 77c2
checksumBuffer(start_addr=0x7000, size=0x1000) = 8dab
checksumBuffer(start_addr=0x8000, size=0x1000) = e2a9
checksumBuffer(start_addr=0x9000, size=0x1000) = f755
checksumBuffer(start_addr=0xa000, size=0x99c) = d086
Verify successful
done in 0.045 seconds
CPU reset.
readWord(addr=0)=0x20002dd8
readWord(addr=0xe000ed00)=0x410cc601
readWord(addr=0x41002018)=0x10010305
writeWord(addr=0xe000ed0c,value=0x5fa0004)

BUT, Right after I have flashed that Blink of which NOTHING happened on my board - maybe the layout is different - I got this shown as my board - when doing get board info for another time:

  • Image B

The XIAO board turned to Femto board. weirdly enough that I did only uploaded blink sketch on it and using the defaults on the seeeduino XIAO board from the seeeduino package for Arduino IDE.

Not only that NOTHING happened and no blink led at all - I now have the board setup as Seeeduino Femto on my system as well - I am sure that this is a bootloader issue - BUT I wonder why it happened as well as why I could not flash the simple blink sketch on my seeeduino XIAO(?) board and also I wonder HOW I can use that board correctly.

I would be happy if you could help me with my seeeduino XIAO(?) boards - so I would be able to work with it without issues as well as trying more complicated sketches then blink.
is my board XIAO or Femto?
Are there layout differeces between the two? I read that the Femto has ONLY one LED is that correct?
I can I be sure that I truely have a XIAO board and not a Femto? If I did get the wrong board I should go back and replace them as soon as possible.

Please assist me with my issues and puzzle
Thank you so much,
Aryeduino

Hi Arye_Arduino

Try just only connect one seeeduino XIAO, then check the COM, it should be only one COM exist, then check the port and upload the code again, it should work, make sure both are seeeduno XIAO.
The second slide code of image A means you has successfully upload the code, I think you uploaded the blink code to the wrong board.

The image B: I think you got the one of the board is femoto, could you send your device pic to me?

Best regards
fenyi

Thanks Fenyi,

just to clear out - since I could not load more then one image in my post, I have put all in one image with reference.
I only used ONE XIAO in my Arduino - the two images are for the same Board.
After i programmed it - It changed to Fento, but when I started it was XIAO.

Since I don’t know what are EXACTLY the differences between the XIAO and the other one - I am not sure that I really know what I have in my hands right now.


Hoping the above image is clear and you can see what I have?
I have read that the XIAO has 2 LED onboard and This one I have not, Or I am missing something.
Please help me understand what I should do to check and if I need to go and return them?

  • can you please guide me what I need to do in order to make this board work at all? I can NOT make it work with Arduino at this point.

Thank you!
Arye

Hi Arye_Arduino

If the XIAO which you connecting that one is working well, just keep it, and I suggest you return the unmark PIN label one if it does not work.

I never met the board info that can be changed after you upload the program or do other operations.

Best regards
fenyi