Tsev > Xov xwm > Ntsiab lus

Software Yuav Tsum Tau

Apr 26, 2019

3.1.2 Qhov Yuav Tsum Tau Ua

Cov kev siv demo tau raug tsim tawm ntawm MSVC 2010 Kev Tshaj Tawm. Qhov project kuj yuav yog

qhib rau tom qab versions of MSVC uas yuav mus los ntawm cov laus version. Nco ntsoov tias nyob rau qee yam

cov neeg mob MSVC yuav tsis hloov cov cuab yeej cuab tam rau lub sij hawm kev tsiv tsaim ntawm lub phiaj xwm.

Ua ntej khiav txoj cai, xyuas kom meej tias USB-SPI cable / interface (xws li C232HM) txuas nrog

USB chaw nres nkoj ntawm lub computer thiab FTDI cov tsav tsheb hauv Windows yog loaded. Lub adapter yuav tsum

tshwm rau hauv seem Universal Serial Bus Controllers ntawm tus Thawj Saib Xyuas Haujlwm.

Yog hais tias tus tsav tsheb tsis tau raug coj tawm, thov nrog tus neeg siv phau ntawv qhia rau USB-> SPI

interface rau cov lus qhia ntawm kev txhim kho lub interface.


3.1.3 Cov Qauv Khwm

Cov ntaub ntawv zauv teb txhawb ntau lub platform. Cov ntaub ntawv tseem ceeb muaj feem xyuam nrog rau lub ntsiab lus ntawm MSVC yog:

 Cov Haujlwm Nplaub tshev -> Msvc_win32 muaj qhov project thiab cov ntaub ntawv daws (xws li Project ->

Msvc_win32 -> FT_App_Gradient -> Ft_App_Gradient.sln)

 Folder Src muaj cov c cov ntaub ntawv khaws tseg rau cov ntaub ntawv tseem ceeb thiab kev txhawb zog

 Folder Hdr muaj cov ntaub ntawv header thiab sub-fold Msvc_win32 muaj ntxiv headers rau

lub MSVC platform

 Cov ntawv pov thawj muaj cov ntaub ntawv txhawb rau qhov project uas yuav tsum tau muaj (piv txwv li,

bitmap dluab)

Cov ntaub ntawv tag nrho yog muab nyob rau hauv cov ntaub ntawv nyeem uas muaj nyob rau hauv qhov project zip pob.

3.1.4 Ntuav qhov Project

Qhov project qhov project ces yuav qhib rau hauv Studio pom kev. Cov tshuaj yuav ua tau

qhib los ntawm ob-txhaj cov ntaub ntawv .sln (xws li Project -> Msvc_win32 -> FT_App_Gradient ->

Ft_App_Gradient.sln) los yog los ntawm Cov Ntaub Ntawv -> Qhib Xwb / Kaw hauv qhov Visual Studio software nws tus kheej.

3.1.5 Kho qhov project

Ua ntej qhib qhov demo, xyuas kom tseeb tias qhov project yog teeb tsa rau qhov tseeb FT8xx pawg thawj coj thiab

npo me me nyob hauv FT_Platform.h cov ntaub ntawv uas tau qhib ntawm qhov rais Explorer qhov rai

hauv Studio. Thov saib tshooj 4 kom paub meej.

3.1.6 Khiav ntawm qhov Project

Los khiav qhov project, ua kom huv los yog rov tsim dua tag nrho ntawm cov khoom noj khoom haus. Tom qab ntawd, xaiv qhov Debug

hom los ntawm qhov nco thiab pib debugging.

image

Qhov kev hais kom ua qhov rai yuav tshwm sim li ob peb seconds tom qab txhaj qhov khoos kas Debugger hauv zos

thiab qhov pib calibration screen yuav tshwm rau ntawm tus qauv LCD.

image

3.1.7 Tawm Tsam Piav Qhia

Yuav kom tsis txhob debugging, Visual Studio tshuab raj DEBUG -> Kev Debugging yuav siv tau los yog

hais kom ua rau lub qhov rai yuav raug kaw ntawm tus ntoo khawm ntawm sab saum toj-txoj cai ntawm lub qhov rais hais kom ua.

Breakpoints thiab stepping yuav siv tau thaum khiav txoj cai tso cai rau lub lag luam kom ntau dua

yooj yim to taub. Lus hauv no teb Nco ntsoov tias txoj cai ua kom cov buffers ntawm commands rau lub FT8xx thiab ces

tshwm sim yuav tsis pom kom txog rau thaum Swap thiab Flush_Co_Buffer zog tau raug tua.