0

Trouble loading Arduino code on Grand Central M4
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Trouble loading Arduino code on Grand Central M4

by quarkz2 on Fri Jun 14, 2019 5:43 pm

2thru6.JPG
2thru6.JPG (954.24 KiB) Viewed 40 times
I do know if this is in the same vein as "0/2 on Getting Either of the Grand Centrals to Work".

Over time I purchased six Grand Central Boards. After building hardware, I just got started on porting my old code that ran on 3 UNOs to the Grand Central.
But first I tried the circuitpython tutorial out on 1 board.
When I tried going back to Arduino I followed the tutorial. I have the IDE setup so it has the Grand Central SAMD51 listed and selected under the board manager.
I have downloaded the Win7 drivers.
I did the double click to put the boards into GCM4BOOT, then drug the update-bootloader-grandcentral_m4-v3.3.0-adafruit.10.uf2 file onto the GCM4BOOT drive.
In Windows 7, looking at the device manager, I see two new COM ports Adafruit GCM4 Express UF2 bootloader (com 36) and Adafruit GCM4 Express UF2 web USB dummy (com 37).
In the IDE only com36 is selectable, so I select com36 and upload the blink sketch to the M4.
In the error window of the IDE I get:

Code: Select all | TOGGLE FULL SIZE
Sketch uses 13064 bytes (1%) of program storage space. Maximum is 1032192 bytes.
Device       : ATSAMD51x20
Version      : v1.1 [Arduino:XYZ] Apr 14 2019 22:38:13
Address      : 0x0
Pages        : 2048
Page Size    : 512 bytes
Total Size   : 1024KB
Planes       : 1
Lock Regions : 32
Locked       : none
Security     : false
BOD          : false
BOR          : true
Write 13336 bytes to flash (27 pages)

[                              ] 0% (0/27 pages)
[========                      ] 29% (8/27 pages)
[=================             ] 59% (16/27 pages)
[==========================    ] 88% (24/27 pages)
[==============================] 100% (27/27 pages)
Done in 0.156 seconds
Verify 13336 bytes of flash

[=                             ] 3% (1/27 pages)
[==                            ] 7% (2/27 pages)
[===                           ] 11% (3/27 pages)
[====                          ] 14% (4/27 pages)
[=====                         ] 18% (5/27 pages)
[======                        ] 22% (6/27 pages)
[=======                       ] 25% (7/27 pages)
[========                      ] 29% (8/27 pages)
[==========                    ] 33% (9/27 pages)
[===========                   ] 37% (10/27 pages)
[============                  ] 40% (11/27 pages)
[=============                 ] 44% (12/27 pages)
[==============                ] 48% (13/27 pages)
[===============               ] 51% (14/27 pages)
[================              ] 55% (15/27 pages)
[=================             ] 59% (16/27 pages)
[==================            ] 62% (17/27 pages)
[====================          ] 66% (18/27 pages)
[=====================         ] 70% (19/27 pages)
[======================        ] 74% (20/27 pages)
[=======================       ] 77% (21/27 pages)
[========================      ] 81% (22/27 pages)
[=========================     ] 85% (23/27 pages)
[==========================    ] 88% (24/27 pages)
[===========================   ] 92% (25/27 pages)
[============================  ] 96% (26/27 pages)
[==============================] 100% (27/27 pages)
Verify successful
Done in 0.092 seconds


In the device manager COM36 and 37 Disappear, then in the IDE error window, the following is added.

Couldn't find a Board on the selected port. Check that you have the correct port selected. If it is correct, try pressing the board's reset button after initiating the upload.

Pressing the reset button has no affect, it doesn't seem to cut power to the green POWER LED or the now green neopixle.
The Red RX LED fades up and down.

I tried the same Arduino IDE setup for the other GCM4 boards, some took the blink sketch and It would revert to 1 com port, different from the two GCM4BOOT COM ports.

But then when I went to load another sketch I am testing, the sketch would seem to upload, then after a second or two that new com port would disappear from the device manager, and then generate the same 'board could not be found' error in the IDE error window.

Code: Select all | TOGGLE FULL SIZE
Sketch uses 28548 bytes (2%) of program storage space. Maximum is 1032192 bytes.
Device       : ATSAMD51x20
Version      : v1.1 [Arduino:XYZ] Dec 30 2018 21:24:00
Address      : 0x0
Pages        : 2048
Page Size    : 512 bytes
Total Size   : 1024KB
Planes       : 1
Lock Regions : 32
Locked       : none
Security     : false
BOD          : false
BOR          : true
Write 29860 bytes to flash (59 pages)

[                              ] 0% (0/59 pages)
[====                          ] 13% (8/59 pages)
[========                      ] 27% (16/59 pages)
[============                  ] 40% (24/59 pages)
[================              ] 54% (32/59 pages)
[====================          ] 67% (40/59 pages)
[========================      ] 81% (48/59 pages)
[============================  ] 94% (56/59 pages)
[==============================] 100% (59/59 pages)
Done in 0.356 seconds
Verify 29860 bytes of flash

[=                             ] 3% (2/59 pages)
[=                             ] 5% (3/59 pages)
[==                            ] 6% (4/59 pages)
[==                            ] 8% (5/59 pages)
[===                           ] 10% (6/59 pages)
[===                           ] 11% (7/59 pages)
[====                          ] 13% (8/59 pages)
[====                          ] 15% (9/59 pages)
[=====                         ] 16% (10/59 pages)
[=====                         ] 18% (11/59 pages)
[======                        ] 20% (12/59 pages)
[======                        ] 22% (13/59 pages)
[=======                       ] 23% (14/59 pages)
[=======                       ] 25% (15/59 pages)
[========                      ] 27% (16/59 pages)
[========                      ] 28% (17/59 pages)
[=========                     ] 30% (18/59 pages)
[=========                     ] 32% (19/59 pages)
[==========                    ] 33% (20/59 pages)
[==========                    ] 35% (21/59 pages)
[===========                   ] 37% (22/59 pages)
[===========                   ] 38% (23/59 pages)
[============                  ] 40% (24/59 pages)
[============                  ] 42% (25/59 pages)
[=============                 ] 44% (26/59 pages)
[=============                 ] 45% (27/59 pages)
[==============                ] 47% (28/59 pages)
[==============                ] 49% (29/59 pages)
[===============               ] 50% (30/59 pages)
[===============               ] 52% (31/59 pages)
[================              ] 54% (32/59 pages)
[================              ] 55% (33/59 pages)
[=================             ] 57% (34/59 pages)
[=================             ] 59% (35/59 pages)
[==================            ] 61% (36/59 pages)
[==================            ] 62% (37/59 pages)
[===================           ] 64% (38/59 pages)
[===================           ] 66% (39/59 pages)
[====================          ] 67% (40/59 pages)
[====================          ] 69% (41/59 pages)
[=====================         ] 71% (42/59 pages)
[=====================         ] 72% (43/59 pages)
[======================        ] 74% (44/59 pages)
[======================        ] 76% (45/59 pages)
[=======================       ] 77% (46/59 pages)
[=======================       ] 79% (47/59 pages)
[========================      ] 81% (48/59 pages)
[========================      ] 83% (49/59 pages)
[=========================     ] 84% (50/59 pages)
[=========================     ] 86% (51/59 pages)
[==========================    ] 88% (52/59 pages)
[==========================    ] 89% (53/59 pages)
[===========================   ] 91% (54/59 pages)
[===========================   ] 93% (55/59 pages)
[============================  ] 94% (56/59 pages)
[============================  ] 96% (57/59 pages)
[============================= ] 98% (58/59 pages)
[==============================] 100% (59/59 pages)
Verify successful
Done in 0.217 seconds
Couldn't find a Board on the selected port. Check that you have the correct port selected.  If it is correct, try pressing the board's reset button after initiating the upload.
Attachments
board1.jpg
board1.jpg (958.67 KiB) Viewed 40 times

quarkz2
 
Posts: 2
Joined: Fri Aug 18, 2017 4:44 pm

Re: Trouble loading Arduino code on Grand Central M4

by quarkz2 on Fri Jun 14, 2019 6:35 pm

Is the GCM4 programming USB port sharing GPIO pins 11, 14, 15, 18, 19, like the RX/TX pins, 0 & 1, did on the Uno boards?
Attachments
gcm4_usb.png
gcm4_usb.png (10.89 KiB) Viewed 35 times

quarkz2
 
Posts: 2
Joined: Fri Aug 18, 2017 4:44 pm

Re: Trouble loading Arduino code on Grand Central M4

by adafruit_support_carter on Fri Jun 14, 2019 7:28 pm

It sounds like you have 6 total Grand Central boards? Can you clarify how many of those 6 are showing this issue.

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

Please be positive and constructive with your questions and comments.