Tutorial  Updated

How to flash the HWFLY Clone chips

See below for updates.

IF YOU BREAK YOUR BOOT0 PIN. DO NOT DM ME ASKING FOR HELP. THAT'S IT. YOU BREAK THAT PIN AND YOU CANT FLASH. YOUR CHIP IS STUCK WITH WHATEVER HWFLY PUT ON IT


Pre-requisites:




  • Raspberry Pi Zero W
    • You may use another flasher if you desire.
  • Pinout Diagram
  • Modchip Diagram
  • FULL_CHIP_STOCK.bin
  • Modchip Diagram, find the PA9(TX) and the PA10(RX) pins on your modchip, and do the following:
    • Connect GPIO14(TX) on your Raspberry Pi Zero W to the PA10(RX) pin on your modchip.
    • Connect GPIO15(RX) on your Raspberry Pi Zero W to the PA9(TX) pin on your modchip.

  1. Solder a wire to each of the following pinouts on the Raspberry Pi Zero W:
    • 3.3V
    • Ground
    • GPIO 14 (UART TX)
    • GPIO 15 (UART RX)
  2. Do the following to prepare the modchip:
    1. Lift pin 44 (also known as BOOT0).
    2. You will need a way to power the chip, so you need to find two 3.3v points. It can be on a MOSFET, but it will differ based on the revision of the modchip.
    3. Connect Ground on your Raspberry Pi Zero W to the Ground pin on your modchip.
    4. Check the Modchip Diagram, find the PA9(TX) and the PA10(RX) pins on your modchip, and do the following:
      • Connect GPIO14(TX) on your Raspberry Pi Zero W to the PA10(RX) pin on your modchip.
      • Connect GPIO15(RX) on your Raspberry Pi Zero W to the PA9(TX) pin on your modchip.
  3. Boot your Raspberry Pi Zero W and do the following:
    1. In the terminal, type the following command, and press enter:
      Bash:
      sudo nano /boot/config.txt
    2. Add the following line to the end of the file:
      INI:
      dtoverlay=pi3-miniuart-bt
    3. Press CTRL + X to save and exit the editor.
    4. In the terminal, type the following command, and press enter:
      Bash:
      sudo nano /boot/cmdline.txt
    5. Remove the following line from the file:
      INI:
      console=serial0,115200
    6. Press CTRL + X to save and exit the editor.
    7. Restart your Raspberry Pi with this command
      Bash:
      sudo /sbin/reboot
    8. In the terminal, type the following commands, and press enter after each command:

      Bash:
      git clone https://github.com/Pheeeeenom/stm32flash.git
      cd stm32flash
      sudo make install
  4. Now you will flash the modchip.
    Note: This will remove read protection, and the modchip will wipe itself (that is what we want).
    1. In the terminal, type the following command, and press enter:
      Bash:
      stm32flash -k /dev/serial0
    2. Now to flash Spacecraft-NX Version 0.2.0, type the following, and press enter:
      Bash:
      stm32flash -v -w ./FULL_CHIP_STOCK.bin /dev/serial0
  5. Once you're done flashing your modchip, remove the wiring from the modchip, and restore the 3.3v pin on the modchip to its original position.

Please post pictures of your work here to further the identification of the different board revisions!


UPDATE: So it seems like stitching the spacecraft bootloader and firmware together from the repo causes unstable glitching behaviors. For now, consistent glitching behavior works with this bootload/firmware combo.
This is the original file on the OLED variant chip which has 0.2.0 spacecraft. As for glitching, I'll figure it out, give me some time...unless someone else wants to hop in and reverse the differences.

For now, this at least solves the 0.1.0 HWFLY gen 3 issue. More to come.

UPDATE 2: This is only going to work on some HWFLY chips. Older ones use higher protection than the new revisions that seem to use the QFN FPGA.

UPDATE 3: This should fully work on OLED modchips with the QFN FPGA. https://github.com/Pheeeeenom/firmware
 
Last edited by Mena,

leerz

Well-Known Member
Member
Joined
Jan 11, 2015
Messages
754
Trophies
0
Age
36
Location
Makati
Website
leerz25.sitesled.com
XP
2,184
Country
Difficult process let me laugh… what is difficult here ? yeah I know find someone who have been able to do it …. I´m waiting return from people who have succes with it.
it may be for newbies.
it is afterall intermediate process, but given the great documentation mena and the others, they did a pretty great job making it look easy. a bonus for everyone is that they are willing to share, lest trying to make it better and easy to follow.

the hardest thing about this is just lifting the b0 point, since the chance of breaking it is great, it's also a pain that the trace is under the chip, therefore we can't supply cut the line, everything else should be doable. (cracking security levels is another thing, and that's a whole new level of difficulty since it requires glitching the glitch chip/ ie reversing and making r/w available and unfck the chip


alternately it may be safer to just lift the chip and use a socket for the package. not exactly easier, but safer.
 
  • Like
Reactions: 0x3000027E

tyiphius

Member
Newcomer
Joined
Dec 12, 2014
Messages
16
Trophies
0
Age
32
XP
139
Country
United States
If it means anything to anyone, I took the GD32f350 off the new OLED chip and put it on the HWFLY lite clone....Nothing!
I get a light blue flash, then it boots stock. Guess it's time to swap em back!
 

Attachments

  • 20220116_151104.jpg
    20220116_151104.jpg
    1.4 MB · Views: 126
  • 20220116_151218.jpg
    20220116_151218.jpg
    1.3 MB · Views: 121

Vladjaye

Well-Known Member
Newcomer
Joined
Jan 11, 2021
Messages
48
Trophies
0
Age
28
XP
379
Country
United States
Just a quick question. Is it safe to connect the OLED chip to USB port to check if it even powers on? Did not install it yet, so just wanted to check if it is usable. I'm talking about the new OLED HWFLY chip.
 

fragged

Well-Known Member
Member
Joined
Jun 19, 2018
Messages
229
Trophies
0
Age
39
XP
1,259
Country
United States
Just a quick question. Is it safe to connect the OLED chip to USB port to check if it even powers on? Did not install it yet, so just wanted to check if it is usable. I'm talking about the new OLED HWFLY chip.
As far as what I've seen from sellers there isn't an "OLED HWFLY" chip, they are selling the HWFLY Lite "V3" as being compatible with the OLED, but as you've seen many of them are just including new flex cables with old stock HWFLY Lite chips with Spacecraft-NX v0.1.0 on them.
It's a completely different OLED chip from what I've seen so far.
 

Vladjaye

Well-Known Member
Newcomer
Joined
Jan 11, 2021
Messages
48
Trophies
0
Age
28
XP
379
Country
United States
As far as what I've seen from sellers there isn't an "OLED HWFLY" chip, they are selling the HWFLY Lite "V3" as being compatible with the OLED, but as you've seen many of them are just including new flex cables with old stock HWFLY Lite chips with Spacecraft-NX v0.1.0 on them.
It's a completely different OLED chip from what I've seen so far.
I'm referring to this chip
 

Attachments

  • 1639751806633.png
    1639751806633.png
    692.2 KB · Views: 111

lufeig

Well-Known Member
Member
Joined
Oct 22, 2009
Messages
306
Trophies
1
Age
45
Location
São Paulo, Brazil
XP
1,057
Country
Brazil
confirming that the OLED modchip with USB that I ordered on Jan 1st on Aliexpress came with spacecraft 0.2 from factory
 

Attachments

  • tempImagemlHCom.png
    tempImagemlHCom.png
    4.7 MB · Views: 106
  • tempImageg9zkTi.png
    tempImageg9zkTi.png
    3.7 MB · Views: 105
  • Captura de Tela 2022-01-18 às 08.51.25.png
    Captura de Tela 2022-01-18 às 08.51.25.png
    242 KB · Views: 107

Excitedguy

Well-Known Member
Newcomer
Joined
Oct 21, 2006
Messages
75
Trophies
1
XP
716
Country
United States
I've been hearing the new OLED modchips are picky on which SD cards will work. Are the hwfly lite clone chips also picky on which SD cards will work or is this just an issue on the new OLED chip variant?
 

sean222

Well-Known Member
Newcomer
Joined
Sep 7, 2007
Messages
92
Trophies
1
XP
777
Country
Canada
I have this new OLED specific chip installed and can confirm it has Spacecraft 2.0 on it. No USB debug port on this chip for 'easily' flashing firmware.
 

Attachments

  • Boot0HexEditor.png
    Boot0HexEditor.png
    96.4 KB · Views: 99
  • O1CN01RCsnhy1TXa7czRxPb_!!0-fleamarket.jpg_790x10000Q75.jpg
    O1CN01RCsnhy1TXa7czRxPb_!!0-fleamarket.jpg_790x10000Q75.jpg
    79.6 KB · Views: 77
  • Like
Reactions: mvmiranda

JaRocker

Well-Known Member
Member
Joined
May 3, 2018
Messages
341
Trophies
0
XP
1,486
Country
Jamaica
it's a resistor afaik it is 300ohm but please don't take my word for it, that points to the cmd and it's easy to messup causing your oled to purple screen
Thanks dowpuld you be able to post a link to where I can buy it. Also do you know if that chip had anything to do with the emmc. Since the got broken I’m getting and emmc error. And I can’t boot systems I’m stuck in hekate. I can’t even use emummc
 

mocthulang

Member
Newcomer
Joined
Jan 21, 2022
Messages
13
Trophies
0
Age
42
XP
100
Country
Vietnam
please help
I followed the instructions and flashed successfully. but when re-installing the oled, only the white light is on at startup, then off, then the oled boots into ofw. does anyone have the full .bin file of v0.1.0 for hwfly lite? I will try to flash again
 
  • Like
Reactions: leerz

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan @ BakerMan:
    i said i was sleeping...
  • BakerMan @ BakerMan:
    sleeping with uremum
  • K3Nv2 @ K3Nv2:
    Even my mum slept on that uremum
  • TwoSpikedHands @ TwoSpikedHands:
    yall im torn... ive been hacking away at tales of phantasia GBA (the USA version) and have so many documents of reverse engineering i've done
  • TwoSpikedHands @ TwoSpikedHands:
    I just found out that the EU version is better in literally every way, better sound quality, better lighting, and there's even a patch someone made to make the text look nicer
  • TwoSpikedHands @ TwoSpikedHands:
    Do I restart now using what i've learned on the EU version since it's a better overall experience? or do I continue with the US version since that is what ive been using, and if someone decides to play my hack, it would most likely be that version?
  • Sicklyboy @ Sicklyboy:
    @TwoSpikedHands, I'll preface this with the fact that I know nothing about the game, but, I think it depends on what your goals are. Are you trying to make a definitive version of the game? You may want to refocus your efforts on the EU version then. Or, are you trying to make a better US version? In which case, the only way to make a better US version is to keep on plugging away at that one ;)
  • Sicklyboy @ Sicklyboy:
    I'm not familiar with the technicalities of the differences between the two versions, but I'm wondering if at least some of those differences are things that you could port over to the US version in your patch without having to include copyrighted assets from the EU version
  • TwoSpikedHands @ TwoSpikedHands:
    @Sicklyboy I am wanting to fully change the game and bend it to my will lol. I would like to eventually have the ability to add more characters, enemies, even have a completely different story if i wanted. I already have the ability to change the tilemaps in the US version, so I can basically make my own map and warp to it in game - so I'm pretty far into it!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    DinohScene @ DinohScene: when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying