├── .gitignore ├── Makefile ├── README └── collections ├── GamesInJava.hex ├── Paint.hex ├── STM32CubeDemo_STM32F429I-Discovery.hex ├── STM32F429I-DISCOVERY_Demo_V1.0.1.hex └── TouchGFX-demo2014.hex /.gitignore: -------------------------------------------------------------------------------- 1 | /*.bin 2 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | HEX_LIST = \ 2 | collections/Paint.hex \ 3 | collections/STM32F429I-DISCOVERY_Demo_V1.0.1.hex \ 4 | collections/STM32CubeDemo_STM32F429I-Discovery.hex \ 5 | collections/TouchGFX-demo2014.hex \ 6 | collections/GamesInJava.hex 7 | 8 | BIN_LIST = $(HEX_LIST:collections/%.hex=%.bin) 9 | TARGET_LIST = $(HEX_LIST:collections/%.hex=%) 10 | %.bin: collections/%.hex 11 | arm-none-eabi-objcopy -I ihex -O binary $< $@ 12 | 13 | all: $(BIN_LIST) 14 | 15 | FLASH_TARGETS = $(addprefix flash-,$(TARGET_LIST)) 16 | 17 | $(FLASH_TARGETS): $(BIN_LIST) 18 | openocd \ 19 | -f interface/stlink-v2.cfg \ 20 | -f target/stm32f4x_stlink.cfg \ 21 | -c "init" \ 22 | -c "reset init" \ 23 | -c "stm32f2x unlock 0" \ 24 | -c "flash probe 0" \ 25 | -c "flash info 0" \ 26 | -c "flash write_image erase $(@:flash-%=%).bin 0x8000000" \ 27 | -c "reset run" -c shutdown || \ 28 | st-flash write $(@:flash-%=%).bin 0x8000000 29 | 30 | list: $(HEX_LIST) 31 | @echo -e "Firmware:" $(addprefix "\n\t",$(TARGET_LIST)) 32 | 33 | clean: 34 | rm -f $(BIN_LIST) 35 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | Collection of demo program for STM32F429 Discovery 2 | 3 | Usage: 4 | * Get firmware list: 5 | make list 6 | * Flash the device using given firmware 7 | make flash-Paint 8 | 9 | 10 | Sources of the demo firmware: 11 | * Paint.hex 12 | http://bouchkati-tarek.blogspot.tw/2014/01/stm32f429i-disco-as-paint.html 13 | 14 | * STM32F429I-DISCOVERY_Demo_V1.0.1.hex 15 | http://www.st.com/web/en/catalog/tools/PF259429 16 | 17 | * STM32CubeDemo_STM32F429I-Discovery.hex 18 | http://www.st.com/web/en/catalog/tools/PF259243 19 | 20 | * TouchGFX-demo2014.hex 21 | http://ftp.mjolner.dk/TouchGFX/demos/touchgfx_demo2014_small.zip 22 | 23 | * GameInJava.hex 24 | http://www.st.com/web/en/catalog/tools/PF262188 25 | --------------------------------------------------------------------------------