Hacking my inside dongle(SAMD21 )

jj56185

Well-Known Member
OP
Newcomer
Joined
May 2, 2018
Messages
66
Trophies
0
Age
35
XP
399
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: 1,003
  • IMG_20180809_092919.jpg
    IMG_20180809_092919.jpg
    230.3 KB · Views: 916
  • mmexport1533694436379.jpg
    mmexport1533694436379.jpg
    218.2 KB · Views: 984

iriez

Well-Known Member
Member
Joined
Oct 27, 2016
Messages
549
Trophies
0
Age
49
Website
www.xbins.org
XP
1,867
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
35
XP
399
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
3,071
Trophies
1
Age
56
XP
8,238
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
35
XP
399
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
3,071
Trophies
1
Age
56
XP
8,238
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
35
XP
399
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
3,071
Trophies
1
Age
56
XP
8,238
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,538
Country
Canada
Last edited by MatinatorX,
  • Like
Reactions: kristiansja

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BigOnYa @ BigOnYa:
    Cause I maybe, maybe clicked like a few times.
  • K3Nv2 @ K3Nv2:
    You're as loved as much as Juan now enjoy it
    +1
  • K3Nv2 @ K3Nv2:
    I'm sorry for the insult
  • BakerMan @ BakerMan:
    the difference is i like wario and samus and he likes muscle mommies and feet
    +1
  • BakerMan @ BakerMan:
    wait, i forgot wizards too
  • BigOnYa @ BigOnYa:
    I have a buddy that has a moonshine still and he makes his own shine. He brought me a jar of some peach shine/brandy, shit is damn good. Gonna have to see if can get more.
    +1
  • BakerMan @ BakerMan:
    careful that shit don't make you go blind
  • BigOnYa @ BigOnYa:
    Nuh that's only if you drink what first comes out when distilling, you must throw out the first part of it when it starts running. (Its called the "head(s)" of the run) Or use it for fuel or a general purpose cleaner
    +1
  • K3Nv2 @ K3Nv2:
    If alcohol would've made @BigOnYa blind by now it would have
    +2
  • BigOnYa @ BigOnYa:
    So True.
    +1
  • K3Nv2 @ K3Nv2:
    I should make a poll for bigonya to change his username to DrunkOnYa
    +1
  • BigOnYa @ BigOnYa:
    That's my alt
    +1
  • K3Nv2 @ K3Nv2:
    I don't wanna go to the store someone go for me
  • BigOnYa @ BigOnYa:
    Call my wifey, tell her pick up stuff on her way over.
  • K3Nv2 @ K3Nv2:
    Pick up my door dash meat me in the allyway
    +1
  • BigOnYa @ BigOnYa:
    Wifey is busy, so ill send my buddy @AncientBoi , in his gimp outfit. "who ordered the 6" sausage?""
  • K3Nv2 @ K3Nv2:
    Like subway it's false advertising
    +1
  • BigOnYa @ BigOnYa:
    Ok "who ordered the Vienna sausage?"
  • K3Nv2 @ K3Nv2:
    Uremum
    +1
  • BigOnYa @ BigOnYa:
    My buddy convince me to download and play poker game with him yesterday, called Four Kings Casino, its pretty fun actually, you create a avatar and walk around in a virtual casino, and play any table, or slots with others online.There's even a dance club and bowling alley.
  • SylverReZ @ SylverReZ:
    They should bring advertisements like this back LOL.
  • BakerMan @ BakerMan:
    or that german ninja turtle commercial
    +1
  • K3Nv2 @ K3Nv2:
    Forgot to buy BBQ sauce at the store so made my own ffs
  • RedColoredStars @ RedColoredStars:
    Blues Hog BBQ sauces are pretty good.
    RedColoredStars @ RedColoredStars: Blues Hog BBQ sauces are pretty good.