I am pretty new to STM32 and I am the sucker who bought this board http://stm32duino.com/viewtopic.php?f=28&t=1663 which was supposed to be USB to UART/I2C/SPI board, but due to lack of documentation besides being a USB-UART, the I2C/SPI is almost impossible to figure out. The expanded pins are limited and thus not good for a general development board. So I am thinking of converting it to a Black Magic Probe. But I have some questions regarding the conversion.
Firstly, is the DFU really required? All the guides I googled instructed first to burn the DFU and then load the firmware via the DFU. Can I not burn directly the firmware without the DFU? Since after all, the main functionality exist in the main firmware. The board does not have the boot0 and boot1 pins exposed and I would try avoid any soldering on smd (clumsy fingers). Will there be any problems if I use a Stlink v2 clone to flash directly the firmware. (Hmm think to self : maybe it are the boot and jump addresses, so maybe I can flash both via SWD so that addresses stay same).
Secondly, due to the number of broken out pins on this STMF103C8T6 board, what I can identify are the hardware pins for I2C1 (PB6, PB7), SPI1 (PA5,PA6,PA7), UART2(PA2, PA3), SWIO(PA13,PA14), this doesn't map to the pinouts of the default BMP SWD(PA5,PB14), Serial(PA2, PA3). The PB14 for my board is missing the breakout. I have seen the code for BMP on the hardware mappin:
Code: Select all
/* Hardware definitions... */ #define TDI_PORT GPIOA #define TMS_PORT GPIOB #define TCK_PORT GPIOA #define TDO_PORT GPIOA #define TDI_PIN GPIO7 #define TMS_PIN GPIO14 #define TCK_PIN GPIO5 #define TDO_PIN GPIO6
PB14 is defined as the TMS_PORT in the software, If i map this to another pin which is available to me, will there be an issue and which pin would be the most suitable?
Thanks in advance for reading this long post and your replies to this noob sucker