STM32F746G-DISCO

stm2.jpg
2017-2-18 00:21


大約賣$400港紙, full spec: STM32F746G-DISCO. 官方已有齊一般library但沒有IDE,第三方IDE有好多,我揀咗System Workbench for STM32係因為佢完全免費冇limitation而官方demo program都support。

事先聲明: 我係第一次接觸STM32, SW4STM32, Eclipse, GNU C。如有錯誤, 敬請指正


** download 3個package:-
1. STM32CubeMX 要登記email然後佢send download link去你個email度

2. STLink V2 要登記email然後佢send download link去你個email度

3. SW4STM32 要登記email然後佢send account activation去你個email度


** Installation:-
先裝SW4STM32落c:\AC6, STM32CubeMX同STLink裝落Program Files (x86)


** Download最新既firmware/library/demo:-
執行STM32CubeMX, 按 Help > Updater Setting, 改Repository Folder為C:\Ac6\STM32Cube (吾一定係依個folder, 個path短就得), 按 OK 然後按 Help > Install New Libraries > Check 選擇 STM32F7 按 Install Now。 裝完就可以close咗個STM32CubeMX


** Program Dev. Board:-
剛剛download返嚟個demo已compile咗個hex file,可以就咁program落塊Dev. Board。 因為個demo有啲resources放咗落粒SPI Flash度, 而個hex files係包含埋嗰堆code, 如果吾加ext. loader就會program時出error而個main menu會冇晒icon

執行STLink, 按 External Loader > Add External Loader 選擇 N25Q128A_STM32F746G-DISCO 按 Validate. 按 Binary File 然後去 C:\Ac6\STM32Cube\STM32Cube_FW_F7_V1.6.0\Projects\STM32746G-Discovery\Demonstration\Binaries, 打開 STM32746G-DISCO_Demo_V1.3.0.hex 按 Target > Program > Start


** Check IDE environment, Compiler同Linker
開一個空既folder(個path最好短啲)
執行System Workbench for STM32, 個Workspace指番去頭先個folder

Import ST 個Demo Program source code:-
按 File > Import > General > Existing Projects into Workspace > Next > Browse 選擇 C:\Ac6\STM32Cube\STM32Cube_FW_F7_V1.6.0\Projects\STM32746G-Discovery\Demonstration\SW4STM32\STM32F7-DISCO 按 Finish, 等一陣, 左邊Project Explorer會多咗個STM32F7-DISCO

因為build project時default係吾會gen hex file所以要改一改個post command

Right Click STM32F7-DISCO選擇Properties, 按 C/C++ Build > Settings > Build Steps, 改Post-build steps - Command:

arm-none-eabi-objcopy -O ihex "${BuildArtifactFileBaseName}.elf" "${BuildArtifactFileBaseName}.hex" && arm-none-eabi-size "${BuildArtifactFileName}"

改完按OK close咗個dialog。Right Click STM32F7-DISCO選擇 Build Project, check番下面Problem List應該係0 items

個hex file係喺 C:\Ac6\STM32Cube\STM32Cube_FW_F7_V1.6.0\Projects\STM32746G-Discovery\Demonstration\SW4STM32\STM32F7-DISCO\Debug, 用STLink load番依個file就可以program落塊板度



**** 個Demo compile出嚟係會冇咗個Video Player得7個icon喺main menu度, 睇番個main.c原來用GNU C就會吾加個video player module.....

#if !defined ( __GNUC__ )
extern K_ModuleItem_Typedef  video_player_board;
#endif



依個Demo比較複雜, 我confirm咗個enviroment ok就用STemWin Hello World嚟試/玩StemWin Library同佢啲utilities

Hello World:-
C:\Ac6\STM32Cube\STM32Cube_FW_F7_V1.6.0\Projects\STM32746G-Discovery\Applications\STemWin\STemWin_HelloWorld\SW4STM32\STM32746G_DISCOVERY

STemWin Utilities:-
C:\Ac6\STM32Cube\STM32Cube_FW_F7_V1.6.0\Middlewares\ST\STemWin\Software

StemWin Doc:-
C:\Ac6\STM32Cube\STM32Cube_FW_F7_V1.6.0\Middlewares\ST\STemWin\Documentation\StemWin532.pdf

回覆 1# 亞基拉


THX.
好詳細&有用.

其實呢塊版抵玩,
用電容屏.
係TAOBXX 買塊類似既非官方板用STM32F4都要八舊水.

TOP

多謝分享

TOP

I got one

P1290873.JPG
2017-2-24 21:18

TOP

回覆 1# 亞基拉


    請問 UI CODE generator 是否還是要像KEIL的一樣需要另外買的?

TOP

回覆 5# xiao

STemWin係免費已包含在CubeF7,裡面有GUIBuilder

TOP

相關文章