mirror of
https://github.com/strfry/rtl8710-stlink-tutorial.git
synced 2024-11-21 13:34:16 +00:00
679 B
679 B
Program rtl8170 (RtlDuino) with STM32 Discovery Board
- Disconnect CN3 Jumpers (inside 'ST-LINK DISCOVERY' label)
- Connect to SWD (CN2) pins with jumpwires to rtlduino board (see rtlduino-pinout.png): Pin 2 <> CLK Pin 3 <> GND Pin 4 <> TMS (Pin 5) <> TRST
- Connect any 5V pin on STM board to 5VDD
- Install OpenOCD >= version 0.9, and install gcc-arm-none-eabi
- git checkout https://bitbucket.org/rebane/rtl8710/src
- Replace in Makefile "interface/stlink-v2-1.cfg" with "interface/stlink-v2.cfg"
- Change blinking GPIO to RtlDuino's onboard LED: main.c: Replace in references to GPIO_PORTA_* (last 3 occurences): (((uint32_t)1) << 8) -> (((uint32_t)1) << 6)