View Single Post
Old 04-08-2022, 02:33 PM   #1
TrumanHW
TrumanHW
 
Join Date: Jun 2021
City & State: Los Angeles
My Country: United States
Line Voltage: 120VAC 60Hz
I'm a: Knowledge Seeker
Posts: 41
Default MacOS: R|W Programmers like CH341x BINs..?

For years I tried figuring out how to R|W BINs from my CH341x programmer.
From FTDI's pkg, Apps specifically claiming they work, I failed for ~8 years.

I'd expect many here figured it out (easily), but in case not ...
It's one of the few forms of "how-to" remuneration I can GIVE BACK.

This group is both GENEROUS & literally BRILLIANT / GENIUS!!!


This may be the easiest means to copy-paste:

Code:
SERIAL -to- USB - CH341 ROM (MacOS):


Install xcode:				xcode-select --install
Relocate xcode:				sudo xcode-select --switch /Library/Developer/CommandLineTools
Install HomeBrew:			/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install cask:				brew install cask
Install Ruby:				brew install ruby
Install flashROM:			brew install flashrom
List Programmers:			sudo flashrom --help
Verify reader:				sudo flashrom -p ch341a_spi
ROM Read:				sudo flashrom -p ch341a_spi -r   <name.bin>  (defaults location ~ )
ROM Write:				sudo flashrom -p ch341a_spi -w   <name.bin>  (defaults location ~ )

READ+WRITE to SERIAL to USB (eg: CH341's) BIN to MacOS:

Skip commands you already installed.
To check if a cmd is already, use: "which ____"
Bash replies with the installed version. (see attachments)


Install xcode xcode-select --install
Relocate xcode sudo xcode-select --switch /Library/Developer/CommandLineTools

Install HomeBrew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install cask brew install cask
Install Ruby brew install ruby
Install flashROM: brew install flashrom

List Programmers: sudo flashrom --help
*flashrom --help shows the syntax for available devices at the bottom.*


*The references to ch341a_spi refers to the programmer I'M USING*
Verify reader: sudo flashrom -p ch341a_spi
ROM Read: sudo flashrom -p ch341a_spi -r <~/name.bin>
ROM Write: sudo flashrom -p ch341a_spi -w <~/name.bin>


I believe the T203 reader uses the CH341a Protocol ...


And also showing screenshots of this working.



That said, everyone seems to dislike the CH341 ... and while I have other windows options (RT809F, etc) ... are any of the compatible devices preferable? Thanks.

Last edited by SMDFlea; 04-08-2022 at 08:16 PM..
TrumanHW is offline   Reply With Quote