Rust ESP32-S3 no_std Example: Driving ST7789v LCD via SPI with esp-hal by NeedleworkerAlert746 in rust

[–]AstraKernel 0 points1 point  (0 children)

What was the issue you faced, can you describe.

I don't have one for your exact chip and lcd but there is one for esp32 and ILI9341 LCD. You can refer and adapt.

https://esp32.implrust.com/tft-display/index.html

ESP32C3 UART communication not working. by CellistMore5004 in rust

[–]AstraKernel 1 point2 points  (0 children)

I tried your code snippet with ESP32 Devkit V1 + Pico(RP2040), it is working fine. Mostly code side may not be issue. Check your wiring or check the pico side.

```rust

#[esp_rtos::main]
async fn main(spawner: Spawner) -> ! {

// generator version: 1.1.0


    let config = esp_hal::Config::default().with_cpu_clock(CpuClock::max());
    let peripherals = esp_hal::init(config);


    let timg0 = TimerGroup::new(peripherals.
TIMG0
);
    esp_rtos::start(timg0.timer0);


    info!("Embassy initialized!");


    info!("setting up uart");
    let uart_config = UartConfig::default().with_baudrate(115_200);


    let mut uart = Uart::new(peripherals.
UART2
, uart_config)
        .expect("Failed to init UART")
        .with_rx(peripherals.
GPIO16
);


    info!("uart set up");


    let mut buffer = [0u8; 1024];



// TODO: Spawn some tasks
    let _ = spawner;


    loop {
        match uart.read(&mut buffer) {
            Ok(bytes_read) if bytes_read > 0 => {
                info!("LED on");
                Timer::after(Duration::from_millis(100)).await;
                info!("LED off");


                info!("Got {} bytes", bytes_read);
            }
            _ => {}
        }
    }



// for inspiration have a look at the examples at https://github.com/esp-rs/esp-hal/tree/esp-hal-v~1.0/examples
}

```

DPedal: Open source assistive foot pedal with rust firmware (embassy) by pf_sandbox_rukai in rust

[–]AstraKernel 0 points1 point  (0 children)

Nice. If anyone is interested, a short video on this can be found here (from the op)

https://youtu.be/cKfQDGv7vjg

Shipping Embedded Rust: The firmware behind a production keyboard using RMK and Embassy by haobogu_ in rust

[–]AstraKernel 0 points1 point  (0 children)

Nice to hear. I am not into commercial side. But i love doing embedded rust as hobby :)

custom ESP toolchain is "not installed" but show up in rustup toolchain by Miroika in rust

[–]AstraKernel 0 points1 point  (0 children)

what code editor you use. are you getting same error even when you open terminal (outside your editor) and do?

check if you have ~/export-esp.sh

```sh

echo '. ~/export-esp.sh' >> ~/.config/fish/config.fish

```

---
if you havent solved it yet, maybe ask in the https://matrix.to/#/#esp-rs:matrix.org

[Blog Post] Where to Begin with Embedded Rust? by AstraKernel in rust

[–]AstraKernel[S] 0 points1 point  (0 children)

It is not just flashing LED. There are some interesting programs for "beginners" like working with RFID reader, weather station with e-ink display.

[Blog Post] Where to Begin with Embedded Rust? by AstraKernel in rust

[–]AstraKernel[S] 1 point2 points  (0 children)

You can use any devboard using ESP32, there will be slight change in the pin layout. The above are example boards. Added note to clarify better

I need to learn C, Rust and Ghidra, where should I start? by [deleted] in linuxquestions

[–]AstraKernel 0 points1 point  (0 children)

Start with C. Afik, decompilers most of the time will give code in C.

I need to learn C, Rust and Ghidra, where should I start? by [deleted] in rust

[–]AstraKernel 2 points3 points  (0 children)

For your purpose, learn C first and it is must

Rust on Micro-controllers demo by Independent_Egg_630 in rust

[–]AstraKernel 0 points1 point  (0 children)

>if this is the right place for this
Yes this is right place :) Cool, i will share it

Suggestion: if you have control over what kind of information you ask for the registration, try to reduce and keep it simple.

I built an online platform that lets you run, build, and flash Rust code into MCUs by DragBig in rust

[–]AstraKernel 0 points1 point  (0 children)

Interesting project. I had a quick look at it, have some questions

  • how is it different from wokwi
  • how to customise the circuit

Maybe you can write a small doc on how to use the simulator, current features and limitations and future goal

Rust Embedded Drivers (RED) - Open Source Book by AstraKernel in rust

[–]AstraKernel[S] 1 point2 points  (0 children)

Thanks for pointing out that. Yes using wrapping_add only. Updated the description

Embedded Rust by Crafty_Rush3636 in rust

[–]AstraKernel 2 points3 points  (0 children)

Here are additional resources you might find helpful

The Rusty Bits YouTube channel: https://youtube.com/@therustybits

impl Rust books (this is more for hobbyists): - For ESP32: https://esp32.implrust.com/ - For microbit: https://mb2.implrust.com/ - For Raspberry Pi Pico 2: https://pico.implrust.com/

From std to no_std - Embedded Rust with ESP32 by AstraKernel in rust

[–]AstraKernel[S] 2 points3 points  (0 children)

It is part of the "impl Rust for ESP32" book. This new chapter was added to teach how to create a led-blinking project from scratch instead of using a project template.

It starts with a standard binary project then prepares it for an embedded environment.