stm32-vserprog
stm32-vserprog copied to clipboard
Works fine on MacOS (M1 Mac)
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:
- On STM32: move jumper closer to the edge from 0->1
- Put FTDI at 3.3v
- 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.