versaloon-master

所属分类:处理器开发
开发工具:LINUX
文件大小:752KB
下载次数:0
上传日期:2020-11-13 21:04:29
上 传 者zoobab
说明:  jtag versaloon linux firmware stm32

文件列表:
AUTHORS (56, 2020-10-27)
COPYING (35726, 2020-10-27)
Dockerfile (638, 2020-10-27)
Makefile (7223, 2020-10-27)
board_defs.mk (574, 2020-10-27)
build.sh (152, 2020-10-27)
firmware (0, 2020-10-27)
firmware\Interfaces (0, 2020-10-27)
firmware\Interfaces\APP (0, 2020-10-27)
firmware\Interfaces\APP\ADC (0, 2020-10-27)
firmware\Interfaces\APP\ADC\ADC.c (2692, 2020-10-27)
firmware\Interfaces\APP\ADC\ADC.h (1691, 2020-10-27)
firmware\Interfaces\APP\BDM (0, 2020-10-27)
firmware\Interfaces\APP\BDM\BDM.c (6339, 2020-10-27)
firmware\Interfaces\APP\BDM\BDM.h (1609, 2020-10-27)
firmware\Interfaces\APP\C2 (0, 2020-10-27)
firmware\Interfaces\APP\C2\C2.c (4327, 2020-10-27)
firmware\Interfaces\APP\C2\C2.h (1453, 2020-10-27)
firmware\Interfaces\APP\CLKO (0, 2020-10-27)
firmware\Interfaces\APP\CLKO\CLKO.c (2020, 2020-10-27)
firmware\Interfaces\APP\CLKO\CLKO.h (1343, 2020-10-27)
firmware\Interfaces\APP\DUSI (0, 2020-10-27)
firmware\Interfaces\APP\DUSI\DUSI.c (3149, 2020-10-27)
firmware\Interfaces\APP\DUSI\DUSI.h (1389, 2020-10-27)
firmware\Interfaces\APP\EBI (0, 2020-10-27)
firmware\Interfaces\APP\EBI\EBI.c (2531, 2020-10-27)
firmware\Interfaces\APP\EBI\EBI.h (1607, 2020-10-27)
firmware\Interfaces\APP\GPIO (0, 2020-10-27)
firmware\Interfaces\APP\GPIO\GPIO.c (8892, 2020-10-27)
firmware\Interfaces\APP\GPIO\GPIO.h (2306, 2020-10-27)
firmware\Interfaces\APP\IIC (0, 2020-10-27)
firmware\Interfaces\APP\IIC\EMIIC_MOD.h (10624, 2020-10-27)
firmware\Interfaces\APP\IIC\IIC.c (3345, 2020-10-27)
firmware\Interfaces\APP\IIC\IIC.h (1546, 2020-10-27)
firmware\Interfaces\APP\IIC\IIC_MOD_Common.h (324, 2020-10-27)
firmware\Interfaces\APP\ISSP (0, 2020-10-27)
firmware\Interfaces\APP\ISSP\ISSP.c (5992, 2020-10-27)
... ...

[![noswpatv3](http://zoobab.wdfiles.com/local--files/start/noupcv3.jpg)](https://ffii.org/donate-now-to-save-europe-from-software-patents-says-ffii/) About ===== JTAG Versaloon firmware for the STM32 Bluepill board. Build ===== Just a matter of `make -j` in the root folder if you have an ARM GCC toolchain installed on your computer. If you have docker, you can just run ```./build.sh```, it will build the firmware for you. The produced binaries are the following : ``` Versaloon-STM32F103C8_BluePill.hex Versaloon-STM32F103C8_BluePill.bin Versaloon-STM32F103C8_BluePill.elf ``` Download ======== You can download the released firmware here: https://github.com/zoobab/versaloon/releases/tag/v1.0 Flashing ======== You can use st-flash with an Stlinkv2 adapter: ``` st-flash write Versaloon-STM32F103C8_BluePill.bin 0x8000000 ``` Or alternatively, use an USB-serial adaptor, using the same method as for the DirtyJTAG project with the ```stm32flash``` tool (see the section "Via a USB-serial adaptor" in https://github.com/jeanthom/DirtyJTAG/blob/master/docs/install-bluepill.md ): ``` $ stm32flash -w Versaloon-STM32F103C8_BluePill.bin -v -g 0x8000000 /dev/ttyUSB0 stm32flash 0.5 http://stm32flash.sourceforge.net/ Using Parser : Raw BINARY Interface serial_posix: 57600 8E1 Version : 0x22 Option 1 : 0x00 Option 2 : 0x00 Device ID : 0x0410 (STM32F10xxx Medium-density) - RAM : 20KiB (512b reserved by bootloader) - Flash : 128KiB (size first sector: 4x1024) - Option RAM : 16b - System RAM : 2KiB Write to memory Erasing memory Wrote and verified address 0x0800d8ec (100.00%) Done. Starting execution at address 0x08000000... done. ``` You can also do it via the docker container ```zoobab/stm32flash-docker```, or use the ```flash.sh``` script: ``` $ export DEVICE="/dev/ttyUSB0" $ export FILE="Versaloon-STM32F103C8_BluePill.bin" $ docker run --privileged -v $DEVICE:$DEVICE -v $PWD:/mnt zoobab/stm32flash-docker -w /mnt/$FILE -v -g 0x8000000 $DEVICE stm32flash 0.5 http://stm32flash.sourceforge.net/ Using Parser : Raw BINARY Interface serial_posix: 57600 8E1 Version : 0x22 Option 1 : 0x00 Option 2 : 0x00 Device ID : 0x0410 (STM32F10xxx Medium-density) - RAM : 20KiB (512b reserved by bootloader) - Flash : 128KiB (size first sector: 4x1024) - Option RAM : 16b - System RAM : 2KiB Write to memory Erasing memory Wrote and verified address 0x0800d8ec (100.00%) Done. Starting execution at address 0x08000000... done. $ ``` lsusb ===== ``` ID 0483:a038 STMicroelectronics ``` /!\ This is not a Versaloon reserved VID/PID, disconnect any STM32 dev board from your computer before trying to use OpenOCD /!\ Pin map ======= BluePill pin mapping is the same as MiniRelease1.h ``` TDI => GPIO B15 TDO => GPIO B14 TCK => GPIO B13 TMS => GPIO B4 ``` OpenOCD config file =================== Create somewhere a file called ```my_vsllink.cfg``` with this content : ``` interface vsllink vsllink_usb_vid 0x0483 vsllink_usb_pid 0x5740 adapter_khz 100 transport select jtag ``` Then you can launch OpenOCD with `openocd -f my_vsllink.cfg` : ``` Open On-Chip Debugger 0.10.0 Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html adapter speed: 100 kHz jtag Info : Versaloon(0x15)by Simon(compiled on Dec 20 2018) Info : USB_TO_XXX abilities: 0x0000176E:0x010001EF:0xC0000007 Info : clock speed 100 kHz Warn : There are no enabled taps. AUTO PROBING MIGHT NOT WORK!! Info : JTAG tap: auto0.tap tap/device found: 0x44002093 (mfg: 0x049 (Xilinx), part: 0x4002, ver: 0x4) Warn : AUTO auto0.tap - use "jtag newtap auto0 tap -irlen 2 -expected-id 0x44002093" Error: IR capture error at bit 2, saw 0x3FFFFFFFFFFFFFF5 not 0x...3 Warn : Bypassing JTAG setup events due to errors Warn : gdb services need one or more targets defined ``` If you get the `Error: Can't find USB JTAG Interface!Please check connection and permissions.` error message, you may try to run OpenOCD as sudo. Todo ==== * Does not build under ubuntu 16.04: https://github.com/zoobab/versaloon/commit/83dfb9bb8b72a99d491f8e34930afa46ff94adde * Try it out on a discovery board: http://takenapart.com/?p=82 * Try it out on a maple board * Try it out on a blackpill board * Add some wiring/fritzing documention with some MIPS targets * Make it work with urjtag, right now it trows an error for "jtag> cable vsllink error: Couldn't connect to suitable USB device. error: not found: no USB connections" Links ===== * Similar firmware: https://github.com/x893/CMSIS-DAP * Alan Acassis, Getting STLink with Versalon firmware working with OpenOCD: https://acassis.wordpress.com/2012/02/21/getting-stlink-with-versalon-firmware-working-with-openocd/ * stm32flash docker container: https://hub.docker.com/r/zoobab/stm32flash-docker * Hackaday: Versaloon ported to stm8 and stm32 discovery boards: https://hackaday.com/2011/02/06/versaloon-ported-to-stm8-and-stm32-discovery-boards/ * Versaloon JTAG on a Canon S100: https://chdk.setepontos.com/index.php?topic=13408.0

近期下载者

相关文件


收藏者