arm:stm32f103c8t6
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
arm:stm32f103c8t6 [2014/04/13 16:29] – [Bootloader] redox | arm:stm32f103c8t6 [2014/04/14 21:54] – [Links] redox | ||
---|---|---|---|
Line 8: | Line 8: | ||
There' | There' | ||
+ | I have found a schematic that looks okay | ||
+ | {{ : | ||
## Bootloader | ## Bootloader | ||
Line 38: | Line 40: | ||
## USB bootloader | ## USB bootloader | ||
+ | |||
+ | The serial bootloader is better than the JTAG stuff when you only need to flash your code. However, it requires an USB-Serial adapter, changing jumpers, ... Not really friendly. So I looked for another method: an USB bootloader. | ||
+ | |||
+ | Keep in mind that you can easily screw up the USB bootloader, while the serial bootloader is much much harder (impossible ?) to accidentaly erase. | ||
+ | |||
+ | I haven' | ||
+ | |||
+ | The Maple Bootloader provides DFU access. You can program to RAM or Flash. I won't go into details about DFU... On Archlinux, install the __dfu-utils__ package from the AUR, and then it's just " | ||
+ | |||
+ | < | ||
+ | dfu-util 0.7 | ||
+ | |||
+ | Copyright 2005-2008 Weston Schmidt, Harald Welte and OpenMoko Inc. | ||
+ | Copyright 2010-2012 Tormod Volden and Stefan Schmidt | ||
+ | This program is Free Software and has ABSOLUTELY NO WARRANTY | ||
+ | Please report bugs to dfu-util@lists.gnumonks.org | ||
+ | |||
+ | Filter on vendor = 0x1337 product = 0x1eaf | ||
+ | Opening DFU capable USB device... ID 1337:1eaf | ||
+ | Run-time device DFU version 0110 | ||
+ | Found DFU: [1337:1eaf] devnum=0, cfg=1, intf=0, alt=1, name=" | ||
+ | Claiming USB DFU Interface... | ||
+ | Setting Alternate Setting #1 ... | ||
+ | Determining device status: state = dfuIDLE, status = 0 | ||
+ | dfuIDLE, continuing | ||
+ | DFU mode device DFU version 0110 | ||
+ | Device returned transfer size 1024 | ||
+ | No valid DFU suffix signature | ||
+ | Warning: File has no DFU suffix | ||
+ | bytes_per_hash=155 | ||
+ | Copying data from PC to DFU device | ||
+ | Starting download: [################################################## | ||
+ | state(8) = dfuMANIFEST-WAIT-RESET, | ||
+ | Done! | ||
+ | Resetting USB to switch back to runtime mode</ | ||
+ | |||
+ | Some changes have been made: | ||
+ | |||
+ | * USB VID/PID have been changed | ||
+ | * LED moved to PA0 | ||
+ | * LED timings changed | ||
+ | * Button removed | ||
+ | * Bootloader timeout also changed | ||
+ | * It now used a little bit less than 16Kio; the user-program flash definition has to be changed accordingly: | ||
+ | |||
+ | __Note:__ With DFU, don't forget to " | ||
+ | dfu-suffix -a ./main.bin -v 1337 -p 1eaf -d 0001 | ||
+ | |||
+ | The latest source is: {{: | ||
+ | |||
+ | |||
## Demo | ## Demo | ||
+ | |||
+ | Trying to figure out the bootloaders didn't let me much time, and I didn't have any real application, | ||
+ | |||
+ | The latest source is: {{: | ||
+ | |||
+ | Since the last time I worked with ARM µC, I had a deeper look into RTOS, so I thought I would quickly try one. I settled on [[http:// | ||
+ | |||
+ | Going though the forums, I also noted its little brother [[http:// | ||
+ | |||
+ | Here's a quick demo (two LEDs, different rate): {{: | ||
+ | |||
+ | Download ChibiOS 2.6.3 and extract this archive in the board folder, then cd in it, and _make_ (prepared for the Serial bootloader), | ||
## Links | ## Links | ||
+ | |||
+ | * [[http:// | ||
+ | * {{: | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||