Hacking my inside dongle(SAMD21 )

jj56185

Well-Known Member
OP
Newcomer
Joined
May 2, 2018
Messages
66
Trophies
0
Age
34
XP
389
Country
China
MOD of trinket M0,arduino zero。。。thanks for all the Contributors。
with the reed switch connect to the RES,it easy to change the firmware(UF2)
 

Attachments

  • IMG_20180809_092835.jpg
    IMG_20180809_092835.jpg
    150.1 KB · Views: 982
  • IMG_20180809_092919.jpg
    IMG_20180809_092919.jpg
    230.3 KB · Views: 900
  • mmexport1533694436379.jpg
    mmexport1533694436379.jpg
    218.2 KB · Views: 960

iriez

Well-Known Member
Member
Joined
Oct 27, 2016
Messages
549
Trophies
0
Age
48
Website
www.xbins.org
XP
1,857
Country
United States
Can you give us more details? How does it get put into reset mode for flashing? Is this a custom pcb you made, it doesn't look anything like the trinket m0 ?
 

jj56185

Well-Known Member
OP
Newcomer
Joined
May 2, 2018
Messages
66
Trophies
0
Age
34
XP
389
Country
China
Can you give us more details? How does it get put into reset mode for flashing? Is this a custom pcb you made, it doesn't look anything like the trinket m0 ?
Q
This is trinket m0.But I deleted everything useless,such as LED,button and LDO.Another IC is USB signal switch IC, when payload is done, the IC can disconnect the USB.That 's all.
 

mrdude

Developer
Developer
Joined
Dec 11, 2015
Messages
2,493
Trophies
1
Age
55
XP
6,634
Can you post your CURRENT.UF2 file please, I'm trying to test my own board - also using samd21g18a - but can't use the sam21e files as the code for those doesn't work on the sam21g, I can't get it to send the payload to the switch - but the trinket I have works fine.
 

jj56185

Well-Known Member
OP
Newcomer
Joined
May 2, 2018
Messages
66
Trophies
0
Age
34
XP
389
Country
China
Can you post your CURRENT.UF2 file please, I'm trying to test my own board - also using samd21g18a - but can't use the sam21e files as the code for those doesn't work on the sam21g, I can't get it to send the payload to the switch - but the trinket I have works fine.
you need to layout them with the same gpio,can you flash the bootloader? just flash it to a trinket m0 bootloader is OK,G18 and E18 is the same usb D+ D- gpio,but if bootloader is difference. the arduino Port D0 D1 D2 is difference
 

mrdude

Developer
Developer
Joined
Dec 11, 2015
Messages
2,493
Trophies
1
Age
55
XP
6,634
If I dump the trinket flash that works with sxox payload - then flash that dump onto sam21g18a - and use pins 34/33/gnd as D+ and D-, It doesn't send the payload? (even though connected to a pc these are the correct pins to use for usb as I can see the board as trinketboot)
 
Last edited by mrdude,

jj56185

Well-Known Member
OP
Newcomer
Joined
May 2, 2018
Messages
66
Trophies
0
Age
34
XP
389
Country
China
If I dump the trinket flash that works with sxox payload - then flash that dump onto sam21g18a - and use pins 34/33/gnd as D+ and D-, It doesn't send the payload? (even though connected to a pc these are the correct pins to use for usb as I can see the board as trinketboot)
they have the same bootloader?
 

mrdude

Developer
Developer
Joined
Dec 11, 2015
Messages
2,493
Trophies
1
Age
55
XP
6,634
they have the same bootloader?

Trinket flash is 256kb, doing a trinket dump using openocd dumps the bootloader (address 0x0 to 0x1FFF) and the sketch (starting address 0x2000), the complete dump can be flashed to a samd21g18a, and indeed shows up as TRINKETBOOT on a quick resest (twice), however the say you have dumped the trinket containing the sxos payload and then flashed that to your bare samd21g18a - it's lucky is it sends the payload once out of 20 times. Maybe due to some sort of timing issue.
 

MatinatorX

Hardware Developer
Developer
Joined
Jul 17, 2018
Messages
366
Trophies
1
Website
www.dragoninjector.com
XP
2,528
Country
Canada
Last edited by MatinatorX,
  • Like
Reactions: kristiansja
General chit-chat
Help Users
  • No one is chatting at the moment.
  • JuanMena @ JuanMena:
    Will you give me mouth to mouth oxygen if my throat closes?
  • K3N1 @ K3N1:
    Nah the air can do that
  • K3N1 @ K3N1:
    Ask @x65943 he's trained for that stuff
  • JuanMena @ JuanMena:
    Kissing random dudes choking in celery? Really? Need to study for that?
  • K3N1 @ K3N1:
    Yes it requires a degree
  • K3N1 @ K3N1:
    I could also yank out the rest of my teeth but theirs professionals for that
  • x65943 @ x65943:
    If your throat closes, putting oxygen in your mouth will not solve anything - as you will be introducing oxygen prior to the area of obstruction
  • JuanMena @ JuanMena:
    Just kiss me Kyle.
  • x65943 @ x65943:
    You either need to be intubated to bypass obstruction or create a stoma inferior to the the area of obstruction to survive
  • x65943 @ x65943:
    "Just kiss me Kyle." And I thought all the godreborn gay stuff was a smear campaign
  • JuanMena @ JuanMena:
    If I die, tell my momma I won't be carrying Baby Jesus this christmas :sad::cry:
  • K3N1 @ K3N1:
    Smear campaigns are in The political section now?
  • JuanMena @ JuanMena:
    Chary! Chary! Chary, Chary, Chary!
  • Sonic Angel Knight @ Sonic Angel Knight:
    Pork Provolone :P
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds yummy
  • K3N1 @ K3N1:
    Sweet found my Wii u PSU right after I ordered a new one :tpi:
  • JuanMena @ JuanMena:
    It was waiting for you to order another one.
    Seems like, your PSU was waiting for a partner.
  • JuanMena @ JuanMena:
    Keep them both
    separated or you'll have more PSUs each year.
  • K3N1 @ K3N1:
    Well one you insert one PSU into the other one you get power
  • JuanMena @ JuanMena:
    It literally turns it on.
  • K3N1 @ K3N1:
    Yeah power supplies are filthy perverts
  • K3N1 @ K3N1:
    @Psionic Roshambo has a new friend
    +1
  • JuanMena @ JuanMena:
    It's Kyle, the guy that went to school to be a Certified man Kisser.
  • Psionic Roshambo @ Psionic Roshambo:
    Cartmans hand has taco flavored kisses
  • A @ abraarukuk:
    hi guys
    A @ abraarukuk: hi guys