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: 707
Last edited by M-O-B, , Reason: Updated Files.

M-O-B

Well-Known Member
OP
Member
Joined
Jun 23, 2018
Messages
281
Trophies
0
Age
54
XP
583
Country
United Kingdom
these are ReiNX and RajNX latest ino for dongles and installs.

no uf2 files as no time to do them today.
 

Attachments

  • Trinket_Files ino.zip
    619.3 KB · Views: 158

M-O-B

Well-Known Member
OP
Member
Joined
Jun 23, 2018
Messages
281
Trophies
0
Age
54
XP
583
Country
United Kingdom
Updated Payload INO Files & Now Included UF2 Files For Drag and Drop, Included The Bin Converter File, Python 2.7 Is Needed To Run It.

ReiNX
RajNX
SXOS
Hekate 3.2
 

M-O-B

Well-Known Member
OP
Member
Joined
Jun 23, 2018
Messages
281
Trophies
0
Age
54
XP
583
Country
United Kingdom
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


this makes life simple and not individual files for each payload..

can grab the new files from this thread as I can't upload anymore files.

have added link to the revamped codes In the OP.
 
  • Like
Reactions: Deleted User

hemi426

Well-Known Member
Member
Joined
Mar 16, 2018
Messages
478
Trophies
0
Age
44
XP
2,362
Country
Belgium
@M-O-B maybe a stupid question but do you have to update the payload(reinx) every time a there's a new software update .with sxos they say just replace the boot file,but i'm using reinx
 

M-O-B

Well-Known Member
OP
Member
Joined
Jun 23, 2018
Messages
281
Trophies
0
Age
54
XP
583
Country
United Kingdom
@M-O-B maybe a stupid question but do you have to update the payload(reinx) every time a there's a new software update .with sxos they say just replace the boot file,but i'm using reinx

sx os only needs the dat file replaced when they do a update.

as for ReiNX only need to update the ReiNX.h file if they update the bin file.

I normally try and keep up to date with the bins, either from what they post or compile from the source.
 
  • Like
Reactions: hemi426

M-O-B

Well-Known Member
OP
Member
Joined
Jun 23, 2018
Messages
281
Trophies
0
Age
54
XP
583
Country
United Kingdom
hi can use this on r4 donggle??
can u update henkate to 4.0

thanks

I will update to hekate 4.0 I've just been busy with other stuff that I forgot about updating.

I shall update every file to what I currently use.
 

M-O-B

Well-Known Member
OP
Member
Joined
Jun 23, 2018
Messages
281
Trophies
0
Age
54
XP
583
Country
United Kingdom
op updated and replaced all my old files with the new ones I use.

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
 

yakuma

Well-Known Member
Newcomer
Joined
Dec 27, 2007
Messages
75
Trophies
0
XP
572
Country
Indonesia
@M-O-B hi sorry for ask for help again :).
can u make just to payload.
sx os and rei
sx os and henkate
because i try u file for 3 loader is nor working. so ithink maybe with 2 loader it working.
i use r4

thanks
 

M-O-B

Well-Known Member
OP
Member
Joined
Jun 23, 2018
Messages
281
Trophies
0
Age
54
XP
583
Country
United Kingdom
@M-O-B hi sorry for ask for help again :).
can u make just to payload.
sx os and rei
sx os and henkate
because i try u file for 3 loader is nor working. so ithink maybe with 2 loader it working.
i use r4

thanks

yeah I'll make sxos & ReiNX sxos & hekate

reason why it may not work is because you need a switch to change the payloads.

so if the 3 payload one is not working then I can't see the 2 payload version working.

I may need to look into an alternative method for the r4.

I'll make a single sxos payload for you to try on the r4 to see if it works ok.

if it does then let me know that it does then I'll get onto looking at an alternative method for the multi payload.
 

yakuma

Well-Known Member
Newcomer
Joined
Dec 27, 2007
Messages
75
Trophies
0
XP
572
Country
Indonesia
yeah I'll make sxos & ReiNX sxos & hekate

reason why it may not work is because you need a switch to change the payloads.

so if the 3 payload one is not working then I can't see the 2 payload version working.

I may need to look into an alternative method for the r4.

I'll make a single sxos payload for you to try on the r4 to see if it works ok.

if it does then let me know that it does then I'll get onto looking at an alternative method for the multi payload.
ok thanks. there is a button on r4 for insert uf2 file
 

M-O-B

Well-Known Member
OP
Member
Joined
Jun 23, 2018
Messages
281
Trophies
0
Age
54
XP
583
Country
United Kingdom
ok thanks. there is a button on r4 for insert uf2 file

yeah that be like the reset button like on a trinket for getting into boot loader mode.

not for changing payloads, anyway try these two files see if they work.

sxos and Hekate 4 single payloads, if they work then I'll sort out the ones you ask for to try.
 

Attachments

  • Sxos.zip
    37.4 KB · Views: 170
  • Hekate.zip
    106 KB · Views: 191

yakuma

Well-Known Member
Newcomer
Joined
Dec 27, 2007
Messages
75
Trophies
0
XP
572
Country
Indonesia
yeah that be like the reset button like on a trinket for getting into boot loader mode.

not for changing payloads, anyway try these two files see if they work.

sxos and Hekate 4 single payloads, if they work then I'll sort out the ones you ask for to try.
yup it work.
so imposible to make multi payload on r4??
 

M-O-B

Well-Known Member
OP
Member
Joined
Jun 23, 2018
Messages
281
Trophies
0
Age
54
XP
583
Country
United Kingdom
yup it work.
so imposible to make multi payload on r4??

so both files worked ok on r4
it not impossible it's just a matter of sorting out the changing of the payloads.

my method at moment on a trinket or gemma is to use pad 1/A0.

not having seen an r4 guts I have no idea how it would work.

I may have to sort something else out for payload selection.

once I sort out the payload selection method for the r4 then the multi 4 payload will be ready.

 
Last edited by M-O-B,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    I would like a Predator game "Kill Team" it takes place in the Jungle of the first movie, your team is sent to hunt the predator, using current tech drones and a trained team. Set traps use strategy to hunt and trap or kill the predator.
  • BigOnYa @ BigOnYa:
    Ill stick with my Battlefield. Yea a predator hunting game like that would be cool. Esp if you can be Arnold and say "Get to da choppa"
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Maybe Arnold could do a cameo voice acting, he is the one briefing you on the mission
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Honestly surprised they didn't make a tie in game for Predators that movie was awesome
  • Psionic Roshambo @ Psionic Roshambo:
    I was kinda sad the Yakuza guy died sword fighting a predator lol
  • Psionic Roshambo @ Psionic Roshambo:
    The Russian guy went out like a boss
  • Psionic Roshambo @ Psionic Roshambo:
    Double claymores to the face definitely kill a predator lol
  • BigOnYa @ BigOnYa:
    I went today and looked at a motorcycle someone was selling. I get there and the battery on it was dead, so the guy grabbed a battery charger and hooked it up. He plugged it into the wall, and the motorcycle sparked and started smoking. Come to find out the bike uses a 6 volt battery and the guy had the charger set to 12v. I said sorry to the dude and walked away. I felt bad for him tho.
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds like it would be an exciting ride....
  • Psionic Roshambo @ Psionic Roshambo:
    Not sure I would want something on fire between my legs
  • BigOnYa @ BigOnYa:
    He ruined it basically. Sad cause it was a decent old bike. It would take more money to rewire the bike than it was worth tho.
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah I'm sure at minimum the starter was fried
  • Psionic Roshambo @ Psionic Roshambo:
    Alternator and battery
  • BigOnYa @ BigOnYa:
    Prob alot of fried parts. It was still smoking when I left.
  • K3Nv2 @ K3Nv2:
    I would've said show me how it rides
  • Psionic Roshambo @ Psionic Roshambo:
    I always wanted one of those Smart Cars with a Hyabusa motor in it.
  • K3Nv2 @ K3Nv2:
    I'm getting sick and tired of cheap ass baking pans now
  • BigOnYa @ BigOnYa:
    I think it be cool to have one that would fit in my pickup truck bed, then I could put down ramps n drive it off.
  • K3Nv2 @ K3Nv2:
    Used this one 5 times already impossible to clean
  • BigOnYa @ BigOnYa:
    You need the $900 copper coated ones, they are good for 10 times cooking before they are un cleanable
  • Psionic Roshambo @ Psionic Roshambo:
    Condoms are only meant to be used once Ken lol
  • K3Nv2 @ K3Nv2:
    Well damn that explains how you were born
    Psionic Roshambo @ Psionic Roshambo: Lol