Cov txheej txheem:

Hack CFA735/CFA835: 4 Cov Kauj Ruam
Hack CFA735/CFA835: 4 Cov Kauj Ruam

Video: Hack CFA735/CFA835: 4 Cov Kauj Ruam

Video: Hack CFA735/CFA835: 4 Cov Kauj Ruam
Video: Установите ЖК-дисплей в отсек для привода игрового ПК своими руками 2024, Kaum ib hlis
Anonim
Hack CFA735/CFA835
Hack CFA735/CFA835

Koj puas muaj txoj haujlwm uas xav tau cov zaub, lub ncoo tseem ceeb, thiab qee lub cim xeeb, tab sis cov khoom ua ntej tso rau ntawm Crystalfontz CFA735 lossis CFA835 module tsis zoo li koj tab tom nrhiav? Koj muaj hmoo - koj tuaj yeem hack cov modules no los thauj cov kev cai firmware.

CFA735 thiab CFA835 yog ntau yam ntse ntse LCD modules. Ob qho Crystalfontz CFA735 thiab CFA835 yog ua raws CFA10052 kho vajtse module, yog li thaum lub sijhawm qhia no CFA735 thiab/lossis CFA835 yuav raug xa mus ua CFA10052. CFA10052 tuaj yeem rov tsim dua los khiav koj li kev cai firmware.

  • STMicroelectronics STM32F401 microcontroller
  • ARM 32-ntsis Cortex ™ -M4 CPU @ 84 MHz
  • 256K Flash, 64K RAM
  • 244 x 68 pixel backlit LCD
  • Sitronix ST7529 32 grayscale nraaj LCD tswj
  • Buck-boost switching supply tso cai rau ntau qhov hluav taws xob ntau
  • Cais hloov pauv LED lub teeb ci tswj rau cov keyboard thiab LCD teeb rov qab
  • 6 khawm backlit keypad
  • 4x ob-xim (liab/ntsuab) LEDs
  • USB2 interface
  • microSD daim npav qhov
  • 5 lub hom phiaj dav dav IO pins (GPIO's)
  • Ntau tus lej/SPI/I2C/CAN cuam tshuam (nyob ntawm kev siv GPIO).

Cov ntawv qhia no yuav qhia koj yuav ua li cas hloov lub firmware uas nkoj ntawm CFA10052 nrog cov tshiab firmware uas yuav:

  1. Zaub ntawm LCD ib daim phiaj sib hloov, nrog lub teeb pom kev tam sim no, LCD sib txawv thiab cov ntaub ntawv xwm txheej xwm txheej;
  2. Tswj lub teeb nraub qaum thiab LCD sib piv siv cov keyboard.
  3. Hloov xim ntawm plaub LEDs los ntawm liab rau ntsuab nyob rau hauv ib theem zuj zus.
  4. Pab kom USART cov chaw nres nkoj txuas ntawm Header-1 pins 1 & 2 (115200 baud), thiab ncha tau txais cov ntaub ntawv.
  5. Pab kom USB virtual serial chaw nres nkoj, thiab ncha tau txais cov ntaub ntawv rov qab rau tus tswv tsev.
  6. Suav nrog, tab sis tsis qhia tawm, uSD nyeem/sau cov ntaub ntawv nkag.

Tau kawg, koj tuaj yeem sau koj tus kheej firmware thiab thauj nws siv cov theem no.

LUS CEEB TOOM:

Crystalfontz CFA10052 khoos phis tawj module khoos phis tawj program nrog bootloader thiab CFA735/CFA835 firmware. Lub bootloader thiab CFA735/CFA835 firmware tsis tau qhib-qhov, thiab tsis tuaj yeem luam tawm ntawm CFA10052 los ntawm tus neeg siv, thiab tsis tuaj yeem ua haujlwm rau CFA10052 los ntawm tus neeg siv. Yog tias koj xav rov qab mus rau CFA735/CFA835 firmware, koj yuav tsum xa nws rov qab mus rau Crystalfontz kom nws rov tsim dua tshiab.

Khoom siv

  • Crystalfontz CFA10052 (kho vajtse v1.1 lossis tom qab) Module (CFA735 / CFA835)
  • PC (Windows/Linux/OSX) nrog STM32CubeIDE thiab STM32 ST-LINK Utility ntsia
  • STMicroelectronics ST-LINK (V2 lossis V3) programming interface
  • CFA10052 programming cable (cov ntsiab lus hauv qab no)
  • Kev cai firmware (lossis siv peb li ntawm no)
  • Yog tias koj siv Windows 7/8/8.1/10 (lossis sib npaug Server version) thiab xav sim USB lub chaw nres nkoj virtual, koj yuav tsum rub cov tsav tsheb los ntawm no. USB chaw nres nkoj txuas yuav ua haujlwm yam tsis xav tau cov tsav tsheb ntxiv Windows 10+, Linux, OS-X.

Kauj Ruam 1: Sau/Tsim Khoom Siv

Sau/Tsim Khoom Siv
Sau/Tsim Khoom Siv

Peb pom zoo siv STM32CubeIDE los thauj khoom thiab siv qhov piv txwv no qhov project firmware. STM32CubeIDE yog IDE pub dawb raws Eclipse uas tau hloov kho los ntawm STMicroelectronics kom suav nrog STM32 cov cuab yeej tshwj xeeb. IDE tuaj yeem rub tawm ntawm STM32CubeIDE lub vev xaib.

Txhawm rau tswj kev ua haujlwm raug ntawm STM cov cuab yeej teeb tsa lub cuab yeej, koj yuav tsum tsuas yog hloov kho lub cuab yeej teeb tsa cov cuab yeej tsim los-tus lej ntawm qhov sib txuam "USER CODE BEGIN xxx" thiab "USER CODE END xxx" cov lus tawm tswv yim.

Tom ntej no, txiav txim siab seb puas yuav tiv tauj peb rau CFA10052 cov phiaj xwm kab lossis ua koj tus kheej. Peb yuav tsis mus tshaj qhov ua kom pom cov kab hauv cov ntsiab lus hauv qhov kev qhia no, tab sis yog tias koj xav ua koj tus kheej CFA10052 txoj kab hluav taws xob, koj tuaj yeem pom cov kev sib txuas ntawm GitHub nplooj ntawv, txoj hauv kev zoo tshaj plaws los ua qhov no yog pib nrog Kaum rau tus pin ribbon cable thiab txuas nws rau kab rau ST Txuas.

Kauj ruam 2: Lwv cov Firmware uas twb muaj lawm

Lwv cov Firmware uas twb muaj lawm
Lwv cov Firmware uas twb muaj lawm
Lwv cov Firmware uas twb muaj lawm
Lwv cov Firmware uas twb muaj lawm

Yog tias koj lub CFA10052 module tau ntim nrog cov khoom CFA735 lossis CFA835 firmware koj yuav xav tau thawj zaug tshem tawm cov firmware tawm ua ntej txhim kho firmware tshiab. Lub cim xeeb nyem tau nyeem thiab sau tiv thaiv thiab yuav tsum tau muab tshem tawm ua ntej kev cai firmware tuaj yeem thauj khoom.

Muaj ob txoj hauv kev rau tshem tawm cov firmware uas tau teeb tsa:

  1. Txuas lub USB cable (lossis lub zog xa khoom) los ntawm CFA10052 tus qauv.
  2. Txuas CFA10052 mus rau ST-LINK siv kab ntawv txuas (saib saum toj no), thiab ST-LINK mus rau lub PC host.
  3. Tuav tus yuam sij nce thiab nqis ntawm CFA10052 thaum ntsaws lub USB cable rau hauv CFA10052 (lossis lub hwj huam mov). CFA10052 yuav tsum tam sim no qhia Crystalfontz Bootloader screen.
  4. Khiav STM32 ST-LINK Utility. Hauv "Hom Phiaj" ntawv qhia zaub mov, qhib qhov "Option Bytes" qhov rai. Hauv lub thawv "Nyeem Tawm Kev Tiv Thaiv", xaiv "Qib 0". Nyem Thov. Qhov Crystalfontz firmware tau tam sim no tau raug tshem tawm thiab ib qho kev cai firmware tam sim no tuaj yeem ua haujlwm.

Lwm txoj hauv kev (yog tias koj tsis tuaj yeem nkag mus rau Crystalfontz Bootloader los ntawm tuav tus yuam sij):

  1. Txuas lub USB cable (lossis lub zog xa khoom) los ntawm CFA10052 tus qauv.
  2. Txuas BOOT0 qhov ntsuas-taw tes (lub ncoo me me nyob tom qab ntawm CFA10052 tus qauv, ze rau H1 txuas) rau 3.3V lossis 5V.
  3. Txuas CFA10052 mus rau ST-LINK siv kab ntawv txuas (saib saum toj no), thiab ST-LINK mus rau lub PC host.
  4. Fais fab ntawm CFA10052 (lossis txuas nws mus rau USB zog). Cov zaub yuav tsum dawb paug.
  5. Khiav lub STM32 ST-LINK UtilityIn "Target" menu, qhib "Option Bytes" window. Nyem Thov. Qhov Crystalfontz firmware tau tam sim no tau raug tshem tawm thiab ib qho kev cai firmware tam sim no tuaj yeem ua haujlwm.
  6. Kev txuas ntawm BOOT0 tus pin rau 3.3V/5V tsis xav tau ntxiv lawm.

Kauj Ruam 3: Sau thiab Thauj Koj Lub Firmware rau CFA10052

Sau thiab thauj koj li Firmware rau CFA10052
Sau thiab thauj koj li Firmware rau CFA10052

Thaum Crystalfontz muab cov khoom lag luam raug tshem tawm, koj npaj tau los sau thiab thauj koj tus kheej lub firmware. Txog lub hom phiaj ntawm qhov kev qhia no, peb tau muab qee qhov lwm txoj hauv kev uas muab cov keypad tswj ntawm lub teeb pom kev zoo thiab pom qhov sib txawv.

Txhawm rau sau cov firmware:

  1. Qhib STM32CubeIDE
  2. Hauv cov ntawv qhia zaub mov, xaiv Ntshuam, tom qab ntawd "Ntshuam Cov Txheej Txheem Uas Muaj Rau Hauv Chaw Ua Haujlwm".
  3. Hauv lub thawv npe hauv paus, xaiv cov npe ntawm qhov piv txwv no firmware.
  4. Nyem qhov ua tiav khawm.
  5. Hauv qhov Project Explorer, xaiv cfa10052_ piv txwv txoj haujlwm, tom qab ntawd qhib Src, thiab "main.c" file.
  6. Hauv qhov Project menu, xaiv "Build Project".

Txhawm rau program thiab khiav cov firmware ntawm CFA10052:

  1. Txuas lub USB cable (lossis lub zog xa khoom) los ntawm CFA10052 tus qauv.
  2. Txuas CFA10052 mus rau ST-LINK siv kab ntawv txuas (saib saum toj no), thiab ST-LINK mus rau lub PC host.
  3. Txuas lub USB cable (lossis lub zog xa khoom) mus rau CFA10052.
  4. Nco ntsoov tias txoj haujlwm firmware tau tsim (saib cov theem saum toj no), thiab "Binaries" tshwm nyob rau hauv "cfa10052_ piv txwv" hauv Project Explorer.
  5. Yog tias "Binaries" tsis pom, right-click qhov "cfa10052_example" project thiab xaiv Refresh.
  6. Xaiv qhov Run menu, tom qab ntawd "Debug Configurations".
  7. Hauv qhov debug hom phiaj xaiv lub thawv nyob rau sab laug, Txoj Cai-Nyem "STM32 Cortex-M Application", thiab xaiv "Tshiab Configuration".
  8. Lub qhov rai teeb tsa yuav pom. Lub neej ntawd teeb tsa yog OK. Nyem rau Thov ces khawm Kaw.
  9. Hauv Run menu, xaiv "Debug As", tom qab ntawd "STM32 Cortex Application". STM32CubeIDE tam sim no yuav tsum txuas mus rau ST-LINK, thiab rub tawm thiab teeb tsa lub firmware ntawm CFA10052.

Cov kauj ruam saum toj no tsuas yog xav tau ntawm kev thawb qhov haujlwm thawj zaug hauv STM32CubeIDE. Tom qab hloov kho qhov software-code tau hloov pauv, tsuas yog rov tsim lub phiaj xwm (Ctrl-B shortcut) thiab ua haujlwm CFA10052 (F11 qhov tseem ceeb luv).

Firmware tseem tuaj yeem thauj khoom los ntawm ib qho ntawm cov txheej txheem STM32 bootloader ib txwm muaj (debugging tsuas yog muaj siv SWD interface thiab ST-LINK). Piv txwv, yog siv kev txuas txuas, USART1 tuaj yeem siv tau (RX = H1-Pin1 thiab TX = H1-Pin2).

Kauj Ruam 4: Cov ntawv tso cai

Crystalfontz-muab cov peev txheej-tus lej tau muab siv Lub Unlicense, daim ntawv tso cai yam tsis muaj xwm txheej dab tsi los xij uas mob siab rau ua haujlwm rau pej xeem. Tsis muaj ntawv tso cai ua haujlwm, hloov kho, thiab ua haujlwm loj dua tuaj yeem raug faib raws li cov ntsiab lus sib txawv thiab tsis muaj qhov chaws. Saib UNLICENCE cov ntaub ntawv, lossis unlicense.org kom paub meej.

STM32CubeIDE tsim qhov chaws-code thiab STMicroelectronics cov tsev qiv ntawv yog Cai (c) 2019 STMicroelectronics. Txhua txoj cai qhaib. Cov khoom siv software tau ntawv tso cai los ntawm ST hauv qab BSD 3-Clause daim ntawv tso cai, "Daim Ntawv Tso Cai"; Koj yuav tsis siv cov ntaub ntawv no tshwj tsis yog ua raws li Daim Ntawv Tso Cai. Koj tuaj yeem tau txais daim ntawv tso cai ntawm opensource.org/licenses/BSD-3-Clause.

Pom zoo: