I am trying to make a base project for blue pill STM32F103 which I can use for multiple projects. I would like to be able to both flash the device and send commands using serial COM port using the mirco-USB port
so far I have:
- successfully created a "hello world" flashing LED makefile based project downloaded to device using STLINK tool
- created UART command interface to command through serial FTDI device
- flashed a DFU bootloader onto the chip and successfully used it to flash my own (makefile compiled) bin onto the device
when using the DFU I find that once I have flashed my .bin onto the device it no longer appears as a USB device. following the article linked below I shouldn't need to modify the ROM address of my projects code, I have shortened file size to 55k in my makefile projects linker with still no success
https://os.mbed.com/users/devanlai/code/STM32F103C8T6_USBDFU/graph/ https://github.com/devanlai/dapboot/releases/tag/v0.1
my questions:
- when using the DFU bootloader, once my code is running how is it supposed to become visible as a USB device if the usb stack is not written in in my application code?
- Do i need to move the jumpers on the bluepill? I have tried various combinations already with no success
- what is the best way for me to get a serial comms AND bootloader through USB in my project without writing and debugging my own unique bootloader?