Skip to content
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

Works fine on MacOS (M1 Mac) #59

Open
n8henrie opened this issue Mar 8, 2022 · 0 comments
Open

Works fine on MacOS (M1 Mac) #59

n8henrie opened this issue Mar 8, 2022 · 0 comments

Comments

@n8henrie
Copy link

n8henrie commented Mar 8, 2022

Hello -- thanks for a great project!

I just wanted to note for other readers searching the issues that this worked fine on my M1 Mac running MacOS 12.2.1 just by downloading gcc-arm-none-eabi and adding it to my $PATH.

If you're interested in incorporating this into the README, I'd be more than happy to refactor this into a PR! If not please close the issue, no worries.

My process:

  1. On STM32: move jumper closer to the edge from 0->1
  2. Put FTDI at 3.3v
  3. Connect the (unplugged) FTDI to the STM32 (remember: Tx goes to Ten)
FTDI STM32
TX A10
RX A9
3V 3V
GND GND
export SERIAL=/dev/tty.usbserial-00000000 # or whatever the device is in your case

wget 'https://developer.arm.com/-/media/Files/downloads/gnu-rm/10.3-2021.10/gcc-arm-none-eabi-10.3-2021.10-mac.tar.bz2'
tar -xjf gcc-arm-none-eabi-10.3-2021.10-mac.tar.bz2
PATH+=:"$(pwd)"/gcc-arm-none-eabi-10.3-2021.10/bin
export PATH

git submodule add https://github.com/dword1511/stm32-vserprog.git`
git submodule update --init --recursive`
cd stm32-vserprog/
make BOARD=stm32-vserprog-v2
make BOARD=stm32-vserprog-v2 flash-uart
$ flashrom -p serprog:dev="${SERIAL}"
... works fine

I was adding this to an existing git project, so instead of the submodule business above, most users will probably want to use git clone --recurse-submodules as per the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant