How To Flash The Trinket M0 Using Arduino

Discussion in 'Switch - Tutorials' started by M-O-B, Jun 25, 2018.

  1. M-O-B
    OP

    M-O-B GBAtemp Regular

    Member
    4
    Jun 23, 2018
    United Kingdom
    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. 2. boards manager url.

    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. 3.

    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.
    board manager.
    type trinket.
    install trinket. installed.

    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. flash files.

    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. select trinket M0.

    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.

    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.

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

    loaded flash.

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

    verify.

    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. upload.

    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.

    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.
     

    Attached Files:

    Last edited by M-O-B, Aug 26, 2018 - Reason: Updated Files.
    Nevercholt, qwasy, NEOGEOKAI and 9 others like this.
  2. luk_pop

    luk_pop Advanced Member

    Newcomer
    3
    Apr 30, 2017
    Poland
    mytown
    GR8 thx :)
     
  3. szczuru

    szczuru GBAtemp Regular

    Member
    3
    May 3, 2014
    Poland
    Poland
    Does it work with arduino mini or cheap clones?
     
  4. luk_pop

    luk_pop Advanced Member

    Newcomer
    3
    Apr 30, 2017
    Poland
    mytown
  5. M-O-B
    OP

    M-O-B GBAtemp Regular

    Member
    4
    Jun 23, 2018
    United Kingdom
    i got my trinket from mouser cost was £6.61p each, but I wouldn't advise buying just 1 unit as the cost of shipping would take it up to around £20.

    they do free shipping if you spend £33 or more, I got 5 at cost of £33.05 excluding vat, total price was £39.66p + free shipping took 2 days to be delivered.

    eBay & Amazon prices for these trinkets are ridiculous, between £14 to £21 each.

    another place for the trinkets is digikey £6.70 excluding vat. also free shipping on orders over £33.

    I'm sure other similar devices will work at a lower cost but it's finding the correct size.

    for me the trinket mo is ideal for the dongle just coz the size of it, and if a case could be found or made to fit the trinket inside with the battery and TP4056 battery charger module then it can be made to look clean and tidy.
     
  6. xile6

    xile6 GBAtemp Maniac

    Member
    5
    Jan 15, 2006
    United States
    This is freaken great. I use my phone which works great, but i got like 3 of these trinket laying around from other projects.

    Thanks for the infor
     
  7. xstationbr

    xstationbr Advanced Member

    Newcomer
    2
    Dec 30, 2015
    Brazil
    This will work like as XECUTER Dongle to enable CFW on Nintendo SWITCH in RCM MODE?

    — Posts automatically merged - Please don't double post! —

    This tutorial would work with
    "ARDUINO DIGISPARK ATTINY85 USB I2C SPI PWM ADC" ?
    Because is more EASY to use in an USB TYPE C OTG Directly on Nintendo SWITCH without USB CABLE or SMARTPHONE or PC too.
     
    Last edited by xstationbr, Jun 27, 2018
  8. NO_ob

    NO_ob GBAtemp Regular

    Member
    2
    Apr 16, 2017
    Pimoroni have uk stock desu i think they sell them for £8.50 i was happy to find that out as adafruits shipping here is ridiculous
     
    Last edited by NO_ob, Jun 28, 2018
  9. Kubas_inko

    Kubas_inko "Something funny goes here."

    Member
    11
    Feb 3, 2017
    Czech Republic
    I gues on earth.
    Btw some users (like me) need to install "SAMD from arduino" boards
     
  10. NO_ob

    NO_ob GBAtemp Regular

    Member
    2
    Apr 16, 2017
    Is this wire too thin? it's 0.1mm [​IMG]
     
  11. Kubas_inko

    Kubas_inko "Something funny goes here."

    Member
    11
    Feb 3, 2017
    Czech Republic
    I gues on earth.
    Nah. It is good enough (for the nothing which would go thru it).
     
  12. NO_ob

    NO_ob GBAtemp Regular

    Member
    2
    Apr 16, 2017
    so can i use it or not
     
  13. Kubas_inko

    Kubas_inko "Something funny goes here."

    Member
    11
    Feb 3, 2017
    Czech Republic
    I gues on earth.
    yes, you can.
     
  14. NO_ob

    NO_ob GBAtemp Regular

    Member
    2
    Apr 16, 2017
    should i use something thicker for the power lines or will it be fine using that for those aswell as data
     
  15. Kubas_inko

    Kubas_inko "Something funny goes here."

    Member
    11
    Feb 3, 2017
    Czech Republic
    I gues on earth.
    it should be fine.
     
  16. NO_ob

    NO_ob GBAtemp Regular

    Member
    2
    Apr 16, 2017
    Got this installed works great, I dont think i scraped the enamel off the wire properly on the rcm strap testpad since it doesn't detect volume plus and goto rcm. I dont wanna take the baord back out to fix it though lel, got my switch in autorcm so it boots straight away into hekate. Anyone attempting this i highly recommend to get a heatgun for removing the micro usb port it's pretty tricky to get off i pulled most the pads off for it and was pushing very lightly on it while melting the solder, luckily the two i needed stayed attatched but they did peel off the board

    IMG_20180630_211814.
     
    Last edited by NO_ob, Jul 1, 2018
    xstationbr likes this.
  17. Captain_Smek

    Captain_Smek GBAtemp Regular

    Member
    3
    Jul 2, 2018
    Canada
    Thank you for the great tutorial, I can't wait to get mine and wire it up.
     
  18. BORTZ

    BORTZ Tired of being the good guy

    Supervisor
    21
    GBAtemp Patron
    BORTZ is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Dec 2, 2007
    United States
    Pittsburgh
    Silly and maybe off topic, can you do this with a Pi board or no?
     
  19. M-O-B
    OP

    M-O-B GBAtemp Regular

    Member
    4
    Jun 23, 2018
    United Kingdom
    Have updated the op with hekate ctcaer 3.0 plus drag an drop files.
     
    Captain_Smek likes this.
  20. NO_ob

    NO_ob GBAtemp Regular

    Member
    2
    Apr 16, 2017
    no i tried getting a stripped pi zero in weeks ago it wont fit desu
     
Loading...