1. mattytrog

    mattytrog You don`t want to listen to anything I say.
    Member

    Joined:
    Apr 27, 2018
    Messages:
    3,670
    Country:
    United Kingdom
    If you need any help with code, give me a shout. I've added multiple payloads to the Sam fusee launcher. Chosen by shorting a wire.

    It's fun stuff!
     
    M-O-B likes this.
  2. M-O-B

    OP M-O-B GBAtemp Regular
    Member

    Joined:
    Jun 23, 2018
    Messages:
    281
    Country:
    United Kingdom
    I only need to try get the led to black out once ofw is booted like it does with cfw.

    I'm just missing something for the led to not light up once ofw has booted.

     
  3. mattytrog

    mattytrog You don`t want to listen to anything I say.
    Member

    Joined:
    Apr 27, 2018
    Messages:
    3,670
    Country:
    United Kingdom
    It's all about timing.

    You have sleep int error code going red, delay then black, yes?

    Copy the led confirm time to above the setLedColor("red").
    So you want... I'm paraphrasing here

    Delay microseconds
    Setledcolor red
    Delay microseconds
    Setledcolor black
    ...
     
  4. M-O-B

    OP M-O-B GBAtemp Regular
    Member

    Joined:
    Jun 23, 2018
    Messages:
    281
    Country:
    United Kingdom
    post removed as was no use at all
     
    Last edited: Aug 10, 2018
  5. mattytrog

    mattytrog You don`t want to listen to anything I say.
    Member

    Joined:
    Apr 27, 2018
    Messages:
    3,670
    Country:
    United Kingdom
    Tell you what...

    Try a file from my thread. Just to test. I think you have the trinket powered all the time. Ie method 3 in my thread. Oops... It's external...

    If external, try any file.

    I'm viewing this from a mobile phone and I need the laptop to have a good look at your code.

    Go to the other thread and download the legacy method 3 file. Just to test to see if that one works.

    We will get your code sorted. I'd like to help if poss

    :)
     
    Last edited: Aug 8, 2018
  6. M-O-B

    OP M-O-B GBAtemp Regular
    Member

    Joined:
    Jun 23, 2018
    Messages:
    281
    Country:
    United Kingdom

    I check it out in a bit.

    this is best I've got so far.

    it blinks for a short spell then sleep for ofw.

    and cfw works as I want it.



    this could have the rcm strap line added back, to make it a 5 wire install.

    but it's just experiment at moment.
     
  7. M-O-B

    OP M-O-B GBAtemp Regular
    Member

    Joined:
    Jun 23, 2018
    Messages:
    281
    Country:
    United Kingdom
    right I think I've got it sorted well more or less, but it's working on my dongle as I want.

    think it still needs fine tuning but it's close to a 4 wire internal install without the need to use auto rcm mode. but you can still use auto rcm mode if you wanted.

    one has no rcm strap pin set and the other does.

    a image of how the converted bin files are setup, only one ino file needed, then just enable the one you want to use and disable the other 3.

    hekate-3.2.h
    sxos.h
    ReiNX.h
    RajNX.h



    here's a test run with my dongle as I can't install to my switch at moment.


    also done one that led blinks instead of static led.



    if you use the cap point on the switch mobo for the bat pad then this should work the excate same as the dongle.

    well in thearoy it should do.

    now I have a look at mattytrog thread, see what his has that's different.

    if his is excatly the same as this thread then I'll get this one closed..as it's pointless having 2 threads the same or similar.
     
    Last edited: Aug 10, 2018
  8. M-O-B

    OP M-O-B GBAtemp Regular
    Member

    Joined:
    Jun 23, 2018
    Messages:
    281
    Country:
    United Kingdom
    have revamp the codes so basically you only need one code for all payloads.

    just disable the payloads you don't want to use.

    as shown in the image sx os is enabled and the other 3 are disabled.

    this will make it easier and less files to grab for different payloads.

    Trinket dongle v1
    Trinket dongle v2
    Trinket internal v1


    will post the new codes in OP soon, has no UF2 Files as I'm to lazy to sit doing them..

    OP updated.
     
    Last edited: Aug 14, 2018
  9. M-O-B

    OP M-O-B GBAtemp Regular
    Member

    Joined:
    Jun 23, 2018
    Messages:
    281
    Country:
    United Kingdom
    anyone want to test these out let me know if works ok as a 5 wire install. or for a dongle they are UF2 Files only.

    diagram for internal install is a couple of post up

    I know it works on a dongle, but I'm not sure if the pad 3 rcm strap to pin 10 on joycon rail will work.



    updated UF2 Files as I missed one part out for the rcm strap..
     
    Last edited: Aug 8, 2018
  10. frep

    frep Advanced Member
    Newcomer

    Joined:
    Jul 7, 2018
    Messages:
    52
    Country:
    Switzerland
    @M-O-B I study the arduino sketch you are using to adjust it to my custom board. With your sketch in mind, I doubt that your 5 wire install will work. The problem I see is the following:
    Pin 3 which is used to tie the rcm line down to ground is only set to low in the wakeup function, which will never be called, since the interrupt pin 4 is not anymore connected.
    Do you agree, or have I misunderstood something? -> Possible, since I also don’t really understand your method 3 in the OP. There you say if used without aurorcm, you have to connect pin3 to rcm as well as rst pin to power button. But holding power button (reset pin of trinket) down, delays only the execution of the setup function. I don’t see how the pin3 is set to low this way.
    Maybe you could help me understand that :-)
     
  11. mattytrog

    mattytrog You don`t want to listen to anything I say.
    Member

    Joined:
    Apr 27, 2018
    Messages:
    3,670
    Country:
    United Kingdom
    There is a q
    There is a quirk in the UF2 bootloader that pulls pin 3 low on hard reset. ( It should be floating). Pin 4 isn't required for a dual boot scenario as you merely hold down vol+.

    We take advantage of this. At least on my thread anyway ;)

    I'm experimenting with the low-level bootloader code to get it to pull pin 0 low too for an autoRCM solution with doesn't require autoRCM.

    You can currently otherwise only accomplish this by having the trinket powered all of the time, so cold-boot of trinket is not possible.
     
    Captain_Smek, M-O-B and frep like this.
  12. M-O-B

    OP M-O-B GBAtemp Regular
    Member

    Joined:
    Jun 23, 2018
    Messages:
    281
    Country:
    United Kingdom
    once I've fully recovered from my op I can get back to my work station and install a trinket into my new switch. but just can't do sod all at this moment in time.

    the actual code has not been changed regarding the wake up stuff apart from the wakeup pin and vol pin stuff.

    the rest is as it was in the original source.

    as for method 3 it is simple enough to understand, unless it's done in a way that I only understand it and no bugger else does.

    I really wouldn't bother about it tbh as I'm going to see about getting this thread closed down or removed at some point.

    plenty of stuff in this thread which has similar info to this one plus probably more.

    https://gbatemp.net/threads/internal-modchip-trinket-m0-gemma-m0-guide-and-files.508068/
     
  13. frep

    frep Advanced Member
    Newcomer

    Joined:
    Jul 7, 2018
    Messages:
    52
    Country:
    Switzerland
    @mattytrog thanks for your explanation! Now it makes much more sense! :-)
    Wouldn’t it be easier to set these signals ([email protected] and [email protected]) at the beginning of the setup, delay a second and inject the payload after that? This way the bootloader could be unchanged, or is there a specific reason to handle these signals in the bootloader?
     
  14. mattytrog

    mattytrog You don`t want to listen to anything I say.
    Member

    Joined:
    Apr 27, 2018
    Messages:
    3,670
    Country:
    United Kingdom
    You can't. The trinket doesn't init fast enough before Nintendo bootloader kicks in. Unless you have trinket powered all the time which drains battery.
     
    frep likes this.
  15. M-O-B

    OP M-O-B GBAtemp Regular
    Member

    Joined:
    Jun 23, 2018
    Messages:
    281
    Country:
    United Kingdom
    today I managed to stick my iron on to experiment with 2 codes.

    I calling them the dongle + internal v1 & v2 just for this experiment.

    video 1)

    this would require the reset button being used was hoping for it to be 5 wires needed only, but it would have to be 6 wires with reset going to power button.



    video 2)
    this should work as 4 or 5 wire install depending on how you wanted to deal with joycon wire.

    jig or 10k resistor solder between pin 7 & 10 in the joycon or 10k resistor solder to pads 7 & 10 on the switches mobo.

    or wire from pin 10 on the joycon rail mobo point going to gnd pad on trinket or mobo gnd point.

    my favourite is the 10k resistor route.

    unless someone has a better idea.

    in this video pin 10 is going to the gnd on the trinket.

    then I paused video and solder pin 10 to a 10k resistor on pin 7.



    the bat wire would go to one of the cap points, so the trinket powers off & on when the switch is power on/off.

    pad 3 is used in first video going to pin 10 on joycon rail.

    the led will black out on ofw, but I still think I need to get that part a bit better if possible.

    as I'm not able to actually test this internal yet I couldn't say how it's behaviour would be with the battery drain.

    I'd imagine it be like any install.
     
    Captain_Smek likes this.
  16. M-O-B

    OP M-O-B GBAtemp Regular
    Member

    Joined:
    Jun 23, 2018
    Messages:
    281
    Country:
    United Kingdom
    here's the latest ReiNX h file for the ReiNX files in case you not got it yet.

    Anyone that's grab the ReiNX ino files then just extract and replace the old one with this one..

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

    if you don't like soldering to the this cap then remove it. and solder direct to the 3.2v pad once removed.

    20180810_231410.png

    then the cap you removed solder it between the bat & gnd pads.

    20180810_231504.png

    only use as a last resort. use at your own risk.

    mind it's probably more difficult to remove the cap than it is to solder a wire to it..
     

    Attached Files:

  17. intellettuanale

    intellettuanale GBAtemp Regular
    Member

    Joined:
    Feb 25, 2017
    Messages:
    111
    Country:
    Italy
    Can we flash/update the trinket after install it in the console?
     
  18. Crazywhitie

    Crazywhitie Advanced Member
    Newcomer

    Joined:
    Sep 5, 2007
    Messages:
    67
    Country:
    United States
    I know with method 2 you can . But I believe you can with all
     
    intellettuanale likes this.
  19. M-O-B

    OP M-O-B GBAtemp Regular
    Member

    Joined:
    Jun 23, 2018
    Messages:
    281
    Country:
    United Kingdom
    doesn't matter what method you install you can update the trinket via the usb on the switch..
     
    intellettuanale likes this.
  20. Captain_Smek

    Captain_Smek GBAtemp Regular
    Member

    Joined:
    Jul 2, 2018
    Messages:
    162
    Country:
    Canada
    Yeah that's what I found out right away too back when we were trying out different wiring options, it's either a simple install with AutoRCM or harder install without (but then there's the chance of a crash etc going to OFW).

    I tried going off the joycon power rails early on too but it doesn't init fast enough either.
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Internal, Trinket, Install