-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auto trigger bootlaoder and flash with ft232rl #11
Comments
Do you mean this: blflash/blflash/src/connection.rs Lines 78 to 100 in aae6a9b
|
yes, |
but the ftdi bridge has only 1 usb, how do yo connect to the bl602? |
oh the tx0, rx0 pins are on the breakout... this is easier than I thought, same code to flash... just different bridge!!
/dev/ttyUSB0 is ft232rl ?? is right? how do i make the connections? |
DTR -> EN |
could you please add instructions on how to do this in Readme? many thanks |
hi, it doesnt even program through the ftdi, even if i manually press the button? i get the same error! |
okay success! i had to desolder out the onboard usb ic... |
actually it was already in bootloadre mode (but can flash). i think the following change is necessary:
pls have a look; I dont know Rust... |
my bad, the signals are correctly working... checked it with the probe... |
D8 is active low, need to reverse... |
|
There's a discussion here about BL command-line flashing, wonder if it might be helpful... https://bbs.bouffalolab.com/d/132-cli-firmware-update-via-openocd-on-bl702 Or perhaps we could ask around on the Pine64 #nutcracker channel on Matrix, Telegram, Discord or IRC... |
i'm not sure on this, but i think the bootloader checks the uart for comm. if so:
the bootloader trigger could be automated by using a ft232rl module (very compact) in bitbang mode. just like how openOCD uses in one of it's mode.
ft232rl API:
https://ftdichip.com/Documents/AppNotes/AN_232R-01_Bit_Bang_Mode_Available_For_FT232R_and_Ft245R
http://www.ftdichip.com/Support/Documents/ProgramGuides/D2XX_Programmer's_Guide(FT_000071).pdf
i think the challenge will be to fiddle the single pin(tx) by inspecting the image...
i've seen a method where RPi is used: https://lupyuen.github.io/articles/auto
but this is more compact...
any thoughts?
The text was updated successfully, but these errors were encountered: