Qamba kabusha: luyini lolu hlaka futhi kungani kufanele unakekele?

Qamba kabusha i-IO

Qamba kabusha Kuyiphrojekthi yakamuva okungekho abaningi abazi ngayo, kepha lokho kungathakazelisa kakhulu kubenzi abaningi, izifundiswa ezenza ama-prototypes azo I-Arduino o Ukusajingijolo Pi, nabathuthukisi benza amaphrojekthi we-IoT nezinhlelo ezishumekiwe. Ngakho-ke, inokusekelwa okungaphezulu nokuningi, okokufundisa nokuqukethwe kuwebhu.

Ukwazi okwengeziwe ngalokhu okuthakazelisayo iphrojekthi yomthombo ovulekile, ungafunda le ndatshana ngezinto ezibalulekile ukuze umazi futhi uqale ukusebenza naye kumaphrojekthi wakho wesikhathi esizayo ...

Luyini uhlaka?

uhlaka

Qamba kabusha luhlaka, njengabanye abaningi. Okwalabo namanje abangazi ukuthi lokho kuyini, kufanele kuqashelwe ukuthi uhlaka luyisisekelo esimisiwe okufanele sincike kuso ngezinhloso ezahlukahlukene, futhi ngenhloso yokonga isikhathi, njengokuthuthuka, ukuxazulula izinkinga, ukwengeza ukuxhaswa kwezinhlelo, imitapo yolwazi, amathuluzi, njll.

Yini uRenode?

Endabeni I-Renode, uhlaka evumela ukusheshisa ukuthuthukiswa kwezinhlelo ezishumekiwe kanye ne-IoT, okuvumela ukulingisa amasistimu wehardware aphathekayo, kufaka phakathi ama-CPU, okokusebenza kwe-I / O, izinzwa, nezinye izinto zemvelo. Ngakho-ke, kuzokuvumela ukuthi usebenze, ulungise iphutha futhi uvivinye isoftware ethuthukisiwe ngaphandle kokuguqula i-PC yakho noma ukusebenzisa amanye amapulatifomu.

Ngokuqondene ne amapuleti asekelwaine inani elikhulu labo. Phakathi kwazo kukhona iXilinx, ST Micro, Microchip PolarFire, SiFive, njll.

Kufanele wazi futhi ukuthi uRenode uyi iphrojekthi yomthombo ovulekile, yize ngosizo lokuhweba lwe-Antmicro. Ngaphezu kwalokho, kuvumela ukulingisa i-Arm ne-RISC-V Hardware, okuvumela ukuthuthukiswa okusheshayo nokusekelwa kwabathuthukisi be-software abasebenza emhlabeni we-IoT.

I-Renode iphelele kakhulu, inamandla futhi iyasebenza. Kakhulu, ukuthi iqembu leTensorFlow Lite ngokwalo liyisebenzisela ukusheshisa intuthuko ezenzakalelayo ku Amapulatifomu we-Arm ne-RISC-V, kanye ne-x86, SPARC, ne-PowerPC. Akunasidingo sokuba nehadiwe ebonakalayo kusuka kulezi zingxenyekazi zokuhlola.

Imininingwane engaphezulu - Iwebhusayithi esemthethweni yephrojekthi yeRenode.io

Amapulatifomu asekelwayo

Ngokuqondene ne amapulatifomu asekelwayo Uhlaka lwe-Renode, ongasebenza kulo, yile:

Ngokwesisindo, cishe amashumi ambalwa we-MB, ngakho-ke akuyona iphakethe elisindayo.

Faka i-Renode igxathu negxathu ku-Linux

Ukuthatha njengereferensi i-Ubuntu distro, faka i-Renode Kulula njengokulandela lezi zinyathelo:

  • Ukwaneliseka okuncike, njengaleyo ye- Mono:
sudo apt update
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
sudo apt install apt-transport-https ca-certificates
echo "deb https://download.mono-project.com/repo/ubuntu stable-xenial main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt update
sudo apt install mono-complete

  • Ngemuva kwalokho, kufanele wenelise okunye ukuncika:
sudo apt-get install policykit-1 libgtk2.0-0 screen uml-utilities gtk-sharp2 libc6-dev

  • Manje, finyelela lokhu web bese ulanda el Iphakethe le-DEB.
  • Into elandelayo kuzoba ukuya kwisikhombi Sokulanda lapho ulande khona i-.deb bese ufaka (Khumbula ukufaka igama esikhundleni senguqulo ehambelana nawe):
cd Descargas

sudo dpkg -i renode_1.7.1_amd64.deb

Ukuqalisa i-Renode okokuqala nezinyathelo zokuqala

Manje usungakwazi run Renode okokuqala bese uqala ngamaphrojekthi akho okuqala. Ngokwenza kwayo, kufanele usebenzise i-oda:

renode

Lokhu kuvula ifayela le- iwindi lomsebenzi kusuka ku-Renode lapho ungafaka khona imiyalo yokwakha umshini wokuqala noma ukuwuphatha. Isibonelo, ukudala umshini wokulingisa ibhodi le-STM32F4Discovery:

mach create
machine LoadPlatformDescription @platforms/boards/stm32f4_discovery-kit
.repl 

Nawe unga bheka imingcele iyatholakala endaweni yesikhulumi nge:

(machine-0) peripherals

By indlela umshini-0 kuzoba igama lomshini elizenzakalelayo uma ungakhethanga elinye. Kuzovela "njengokwazisa" uma usudale umshini ...

para layisha uhlelo ufuna ukugijima kulo mshini owenziwe ukuze uwuvavanye, ungawusebenzisa (isb. lona ovela e-Antmicro):

sysbus LoadELF @http://antmicro.com/projects/renode/stm32f4discovery.elf-s_445441-827a0dedd3790f4559d7518320006613768b5e72

Nawe unga layisha kusuka kukheli lendawo, isibonelo, cabanga ukuthi ufuna ukulayisha uhlelo onalo ku:

sysbus LoadELF @mi-ejemplo.elf
Ungabona yonke imiyalo ongayisebenzisa futhi usize uma usebenzisa umyalo Usizo ngaphakathi kwemvelo ye-Renode.

Ngemuva kwalokho unga qala ukulingisa:

start

O ayimise no:

pause

 

Ngiyethemba kube usizo kuwe…

Qamba kabusha okokufundisa

Yize kungavamile kakhulu, kuningi nokuningi izifundo namawebhusayithi lapho ungabonisana khona ngolwazi mayelana nokusetshenziswa kweRenode. Ngaphezu kwalokho, ikhasi elisemthethweni uqobo linengxenye yamavidiyo wokufundisa ongafunda kuwo izisekelo zokuqala amaphrojekthi akho.

Bona okokufundisa

Bona imibhalo kanye newiki


Okuqukethwe yi-athikili kunamathela ezimisweni zethu ze izimiso zokuhlelela. Ukubika iphutha chofoza lapha.

Yiba ngowokuqala ukuphawula

Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.