Tutorial  Updated

How To Flash The Trinket M0 Using Arduino

Arduino Setup For Use With The Trinket M0 Switch D-I-Y Dongle..

Step 1)

Install The Arduino-1.8.5 Software & Adafruit_Drivers_2.2.0.0

Step 2)

Once Both Are Installed Run The Arduino Software & Goto Flies,Scroll Down To Preferences Tab, Settings Pops Up Go Down To Additional Boards Manager URLs And Click The Box On The Right Of The Blank Space.

1.jpg
2.jpg
boards manager url.jpg


Step 3)

The Additional Boards Manager URL Box Will Pop Up, Now Copy & Paste This URL Into The Box, (CTRL+V) To Paste https://adafruit.github.io/arduino-board-index/package_adafruit_index.json Into The Box Then Press Ok & Ok Again.

4.jpg
3.jpg


Step 4)

Now Goto The Tools Tab & Scroll to Board & Select Board Manager Once The Board Manager Pops Up, Type Trinket In The Search Bar Then Click On Adafruit SAMD Boards by Adafruit & Click On Install, Once The Install Has Completed Then Click On The Close Tab.

tools.jpg

board manager.jpg

type trinket.jpg

install trinket.jpg
installed.jpg


Step 5)

Now Close Arduino Software & Goto C:\Program Files (x86)\Arduino\examples Folder & Place The 12.Nintendo_Switch_Fusee_Launcher Folder Into The Examples Folder,Once Thats Done You Can Close Everything.

examples folder.jpg
flash files.jpg


Step 6)
Now Your All Set To Flash Any One Of The Payloads To The Trinket M0 Dongle, So Restart The Arduino Software & Goto Tools Then Scroll Down To Board & Locate The Adafruit Trinket M0 Board & Select It, You Should See Adafruit Trinket M0 on Com4 or A Different Number Com Port In Bottom Right Corner.

tools.jpg
select trinket M0.jpg


Step 7)
Now Plug In Your Trinket M0 Then Goto Tools Again & Scroll Down To Port & Select The Port That The Trinket M0 Is Contected To, If Unsure Then Goto Device Manager Then Ports(COM & LPT) & It'll Show The Trinket M0 & COM Number It's Connected To.

select port.jpg


Step 8)
Now Goto File & Scroll Down To Examples Then Scroll To 12.Nintendo_Switch_Fusee_Launcher & Select One Of The Payloads You Want To Flash To The Trinket.

select the flash file.jpg


Step 9)
Now The Payload Of Your Choice Pops Up & Your Ready To Go.

loaded flash.jpg


Step 10)
You Want To Compile The Sketch Ready To Flash & Make Sure No Issues Before You Flash, Just Click On The Tick.

verify.jpg


Step 11)
Now Compiling Is Done Your Ready To Flash To The Trinket M0, So Click On The Arrow Tab To Upload To The Trinket & Wait For The Flash To Complete, You Should See Upload Done Message Once That Is Shown Then You Can Remove The Trinket From Your Pc Or Laptop.

done compiling.jpg
upload.jpg


Final Step)
If All Went Well Then Your Ready To Use Your New D-I-Y Trinket M0 Dongle.
Make Sure You Have The Correct Sd Card Files For The Payload That You Flashed To The Trinket.


If You Get This Error When Trying To Upload Your Payload File.

java.io.IOException: Cannot run program "{runtime.tools.bossac-1.7.0.path}/bossac": CreateProcess error=2, The system cannot find the file specified

Then This Is The Fix For The Error
Goto Tools Scroll To Boards Then Select Board Manager And Type Arduino SAMD Into The Search Bar.

error.jpg


Then Once Installed Click The Close Tab,Now You Can Upload Your Payload File.

Think That Covers Everythig.

Edit..

Updated Payload INO Files These Are Now All In One, So You Enable The Payload You WantTo Use, And Disable The 3 You Don't Want To Use.

the only UF2 d&d files are for the multi payload gemma/trinket and itsybitsy UF2 File has not been tested as of yet as I don't have one to hand.

gemma/trinket and itsybitsy files are for dongle only at moment as.

pad A0 = payload change on gemma and itsybitsy.

pad 1 = payload change on the trinket.

the multi can only have 3 payloads enabled due to flash on the trinket/gemma & itsybitsy flash not being big enough.

red = sxos
white = hekate
blue = ReiNX

demo of the multi payload on my trinket.



demo if multi payload working.




ReiNX
RajNX
SXOS
Hekate 4.0

have revamped ino to all in one code

just enable the payload you wish to use. and disable the other 3.

like in the image sx os is enabled and the others are disabled.


Trinket All In One.jpg
 

Attachments

  • all in one payload ino files.zip
    1.7 MB · Views: 706
Last edited by M-O-B, , Reason: Updated Files.

hack_my_switch

Member
Newcomer
Joined
Jul 10, 2018
Messages
7
Trophies
0
XP
75
Country
United States
Thanks for this in depth writeup. I am going to be working on a step-by-step for creating an external Trinket M0 and this is really helpful.
 

M-O-B

Well-Known Member
OP
Member
Joined
Jun 23, 2018
Messages
281
Trophies
0
Age
54
XP
583
Country
United Kingdom
have updated op with hekate ctcaer 3.2 files, also added the other code that the leds stay solid, but not done drag & Drop ones for them.
 

djp-AKA-bionic

Well-Known Member
Member
Joined
Jan 3, 2018
Messages
102
Trophies
0
Age
41
XP
313
Country
United States
did i get a bad trinket m0? i cannot get windows or arduino to recognize it at all, tried 7 different usb cables, different ports, installed drivers, re-installed drivers, getting a solid green light
 

Sonyrulesok

Member
Newcomer
Joined
Jun 17, 2018
Messages
7
Trophies
0
Age
34
XP
66
Country
United Kingdom
did i get a bad trinket m0? i cannot get windows or arduino to recognize it at all, tried 7 different usb cables, different ports, installed drivers, re-installed drivers, getting a solid green light
Maybe a stupid question, but have you tried double tapping the button on the trinket to change the mode?
 

mundaka0x

Member
Newcomer
Joined
Jul 7, 2017
Messages
5
Trophies
0
Age
32
XP
65
Country
Mexico
I cannot find any links to download the ''12.Nintendo_Switch_Fusee_Launcher Folder'' mentioned in this tutorial anywhere.
 

M-O-B

Well-Known Member
OP
Member
Joined
Jun 23, 2018
Messages
281
Trophies
0
Age
54
XP
583
Country
United Kingdom
I cannot find any links to download the ''12.Nintendo_Switch_Fusee_Launcher Folder'' mentioned in this tutorial anywhere.

you only need what's I the op now everything has been updated since I first made the thread.
 

haloslayer

Member
Newcomer
Joined
May 25, 2007
Messages
10
Trophies
1
XP
160
Country
United States
Thanks for the great write up!!

So, I got my Trinket M0 in and attempted to follow a different guide. I was never able to get the BootDrive to show up after pressing the trinket button twice. It seemed like the Trinket did change modes but my Windows 7 pc just never wanted to realize the drive. When initially plugged in I did get the normal drive with stock files/drivers, so I know the device and cable were working. After going through all my options and not being able to realize/access the BootDrive I searched some more and stumbled upon this guide.

Using this guide I WAS able to Flash my Trinket M0. In the end I was still never able to access the BootDrive (after pressing the button twice) but it did flash my Trinket. I confirmed it worked by launching the payload with the Trinket on my switch. Works great by the way.


My issue/concern now is that the application no longer seems to find my Trinket M0 when plugged in normally (The application doesn't display it under the menu/port) also that Drive I initially saw with the stock files/drivers is no longer showing up. I figured this is due to me flashing it with the new Payload files. And, since I have never been able to get the BootDrive (by pressing the button twice) I am unable to just put new files (payload) on there. I've been interested in switching over to try out the ReiNX CFW but have no ideal how to reflash the Trinket M0. Any help would be much appreciated! Thanks in advance.
 

M-O-B

Well-Known Member
OP
Member
Joined
Jun 23, 2018
Messages
281
Trophies
0
Age
54
XP
583
Country
United Kingdom
Thanks for the great write up!!

So, I got my Trinket M0 in and attempted to follow a different guide. I was never able to get the BootDrive to show up after pressing the trinket button twice. It seemed like the Trinket did change modes but my Windows 7 pc just never wanted to realize the drive. When initially plugged in I did get the normal drive with stock files/drivers, so I know the device and cable were working. After going through all my options and not being able to realize/access the BootDrive I searched some more and stumbled upon this guide.

Using this guide I WAS able to Flash my Trinket M0. In the end I was still never able to access the BootDrive (after pressing the button twice) but it did flash my Trinket. I confirmed it worked by launching the payload with the Trinket on my switch. Works great by the way.


My issue/concern now is that the application no longer seems to find my Trinket M0 when plugged in normally (The application doesn't display it under the menu/port) also that Drive I initially saw with the stock files/drivers is no longer showing up. I figured this is due to me flashing it with the new Payload files. And, since I have never been able to get the BootDrive (by pressing the button twice) I am unable to just put new files (payload) on there. I've been interested in switching over to try out the ReiNX CFW but have no ideal how to reflash the Trinket M0. Any help would be much appreciated! Thanks in advance.

if you have the correct drivers installed then you should have the trinket show up on your pc.

try this.

double press the reset button when it's not connected to the pc, it should show 2 red leds.

now once you have the red leds then connect the trinket to your pc, then the led in the centre of the trinket will turn green, and you should get the trinket open up with 3 files on.
 

haloslayer

Member
Newcomer
Joined
May 25, 2007
Messages
10
Trophies
1
XP
160
Country
United States
I tried what you suggested. I power it up with the battery. Click button twice. I have a Big Green LED, a Big Red LED, and the Center small led is RED. Now I plug it in to the PC. Center small led goes Green. Big Red LED starts to pulse.

I see windows detect the Trinket and it says (COM4) in the pop-up for detecting devices.

I still don't see any BootDrive under my computer...

And when I try to click on the safely remove devices icon in tool bar nothing happens. When I try to open the device manager or disk manager it seems like the system is hanging up and nothing opens.

After a few minutes, I unplug the device and then I see quickly a D: Drive pop up then go away. Also the Device and Disk managers finally open.

It really seems like windows is confused on how to read the device/drive??


My laptop is Windows 7 Enterprise SP1 if that matters.
 

M-O-B

Well-Known Member
OP
Member
Joined
Jun 23, 2018
Messages
281
Trophies
0
Age
54
XP
583
Country
United Kingdom
I tried what you suggested. I power it up with the battery. Click button twice. I have a Big Green LED, a Big Red LED, and the Center small led is RED. Now I plug it in to the PC. Center small led goes Green. Big Red LED starts to pulse.

I see windows detect the Trinket and it says (COM4) in the pop-up for detecting devices.

I still don't see any BootDrive under my computer...

And when I try to click on the safely remove devices icon in tool bar nothing happens. When I try to open the device manager or disk manager it seems like the system is hanging up and nothing opens.

After a few minutes, I unplug the device and then I see quickly a D: Drive pop up then go away. Also the Device and Disk managers finally open.

It really seems like windows is confused on how to read the device/drive??


My laptop is Windows 7 Enterprise SP1 if that matters.

not sure how you have done your dongle, so many different variations of it.

make sure you do have the usb pad on trinket going to some sort of power source.

I have 3 versions of the with the trinket, and v3 is by far the best one I think.

this is how my v3 is done.

Trinket_Dongle_v3.jpg


 

haloslayer

Member
Newcomer
Joined
May 25, 2007
Messages
10
Trophies
1
XP
160
Country
United States
Thank you very much again for the tutorial and trying to help me figure my issue out.

In the end I just dusted off my old desktop PC and installed everything per your write-up. Now when I double click the button and plug it in to my desktop pc I see the TrinketBoot drive pop-up with those 3 files. I guess there is just something wrong with the drivers on my laptop for some reason I am unable to figure out.

Thanks for the additional pictures. I have been using a USB Micro to USB to USB-C (double adapters) but I think I'll try to remove a USB-C connector and install it directly on the trinket like you did. Much nicer when loading the payloads.

1 question before I go:
Now that I can access the TrinketBoot drive I should no longer need to Flash the trinket using the Arduino software, correct? From here on out i just need to copy any new files directly to the TrinketBoot drive.
 

M-O-B

Well-Known Member
OP
Member
Joined
Jun 23, 2018
Messages
281
Trophies
0
Age
54
XP
583
Country
United Kingdom
Thank you very much again for the tutorial and trying to help me figure my issue out.

In the end I just dusted off my old desktop PC and installed everything per your write-up. Now when I double click the button and plug it in to my desktop pc I see the TrinketBoot drive pop-up with those 3 files. I guess there is just something wrong with the drivers on my laptop for some reason I am unable to figure out.

Thanks for the additional pictures. I have been using a USB Micro to USB to USB-C (double adapters) but I think I'll try to remove a USB-C connector and install it directly on the trinket like you did. Much nicer when loading the payloads.

1 question before I go:
Now that I can access the TrinketBoot drive I should no longer need to Flash the trinket using the Arduino software, correct? From here on out i just need to copy any new files directly to the TrinketBoot drive.

as long as it's current uf2 file then you can drag and drop onto the trinket..
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    HiradeGirl @ HiradeGirl: Have a nice day. Life. Week. Month. year.