Rust iha chip Espressif – 29-09-2023

Photo of author

By naroman

Hau mak atualizasaun trimestral esp-rs nian iha tinan Q3 2023 nian, hodi hateten kona-ba progresu ne’ebé halo ona.

Rust Xtensa Compiler

Ami iha bug-fix ida ne’ebé boot liu kona-ba hardware floating point unit ba ESP32 & ESP32-S3, agradese ba zRedShift tanba hetan bug no halao ona fix iha llvm-project#76. Hamutuk ho bug-fix ne’e, zRedShift mos kontribui hamutuk ho patch rua hodi hadi’a performance ba code generation, ida hodi hadi’a performance ba cttz no seluk ida hodi hadi’a performance ba abs, min no max. Patch sira ne’ebé relasiona ho Xtensa LLVM iha upstream sei iha revisaun maibé dadaun ne’e mosu ona progresu.

esp-hal – no_std

Iha Q3 halo ona lançamentu v0.11 no v0.12 ba esp-hal. Destake mak atualiza package embedded-hal-* ba 1.0.0-rc.1, preparadu ona ba lançamentu longu ba embedded-hal ne’ebé sei sai 1.0; Halo mos suporta ba deep-sleep ba ESP32-S3 no suporta mos ba cryptographic accelerator ba ECC, HMAC no RSA. Ami mos halo esforsu hodi halo suporta ba low-power core ba ESP32-C6, inklui mos driver GPIO báziku no suporta ba kódigu LP husi core prinsipal. Lee changelog kompletu iha ne’e hodi hetan informasaun detallu.

esp-wifi – no_std

Ami inklui suporta ba BLE ba ESP32-C6 iha esp-wifi#262, mellora esp-now async API iha #232 no halo mos hamutuk ho fix no mellora seluk ne’ebé ki’ik. Ami prepara ami nia primeira lançamentu iha crates.io, ne’ebé bele demora ona. Ita hotu iha peça hotu iha lokal hodi halo lançamentu, maibé to’o agora la hetan tempu atu halo. Agora ami iha prosesu atu hamutuk ho dokumentasaun no halo teste final antes atu halo lançamentu.

esp-idf-hal – std

Halo ona adisaun ba I2S, SPI, ADC no GPIO iha esp-idf-hal#279, ho PR foun ida ba UART iha esp-idf-hal#306. Parabens barak ba ivmarkov tanba esforsu di’ak ne’e. Husi lançamentu v0.42.0 nian, ESP-IDF versaun 4.3 sei ladiak atu uza ho Rust. Favor haree cronolojia suporta ESP-IDF nian ba dalan atu atualiza. Lee changelog kompletu ba esp-idf-hal iha ne’e hodi hetan informasaun detallu.

esp-idf-svc – std

Ami inklui suporta ba Bluetooth klasiku (ba esp32 deit iha momentu ne’e) ho experimental feature flag; BLE mos planu atu inklui. Ami mos diskute kona-ba dalan atu inklui traits Bluetooth jeral iha embedded-svc, iha ne’e. Husi lançamentu foun, la preokupa depende ona ba esp-idf-sys crate ka esp-idf-hal crate diretamente iha projetu ita nian, tanba ne’e, crate ida ne’e sei halo re-export ho naran esp_idf_svc::sys no esp_idf_svc::hal.

matter-rs / rs-matter

rs-matter (iha dahuluk naran matter-rs, maibé muda naran tanba iha crate ida iha crates.io ne’ebé naran hanesan ona) hatudu ona lançamentu foun iha crates.io! Agora dadaun ne’e sei uza async dala barak (executor agnostic), ho suporta ba no_std direta, inklui mos hodi hasai QR. Repo rs-matter agora iha mos ezemplu sira ne’ebé bele hala’o iha plataforma std, inklui portu std espidf! Ba no_std iha ezemplu rua ba uso matter, ida uza esp32c3 (blocking) no seluk uza rp-2040 (async).

espflash

Lançamentu patch ki’ik tebes, v2.0.1 ne’ebé includes informasaun ajuda adisional ba komandu CLI no halo ona foun ba problema kompilasaun iha dependensia cargo.

espsegs

espsegs mak ferramenta atu haree memoria ne’ebé utiliza husi sekuensa no iha ne’ebé iha esp. Uma ezemplu, ita bele simplesmente hatudu ferramenta ba fail elf, no ita sei hetan rezultadu hanesan iha leten.

RFCs

Seksaun ida ne’e mak liu-liu ba ita hotu ne’ebé uza esp-rs; ami iha isin barak iha ne’ebé ami hakarak hetan feedback husi ita hotu.

esp-hal

Ami diskute ona atu halo hasoru suporta boot direta: esp-hal#803, se ita fiar katak ne’e bele afeta ita, favor hatama ita nia kazu iha isin ne’e.

Talks

Espressif iha konferensia anual dezenvolvedor sira nian, Espressif DevCon. Ita boot sira ohin halo talk ki’ik kona-ba uza async iha Rust, ita bele haree iha leten.

Hau mos halo talk iha enkontru mensal Rust Copenhagen iha Agostu. Talk ida ne’e fo enfasementu ba introdusaun ba programasaun enfokadu ba sira ne’ebé konhese ona Rust. Haree talk ida ne’e iha leten se ita interese.

Tetun Translator

FREE
VIEW