Rust Embedded for STM32 Microcontrollers: Serial Wire Debug (aka. Hello World)

Поділитися
Вставка
  • Опубліковано 24 гру 2024

КОМЕНТАРІ • 7

  • @fabracht
    @fabracht 2 роки тому +2

    Good show

  • @DavidManukian-k9x
    @DavidManukian-k9x Рік тому

    Thank you for your video, it was helpful.
    Although when I was doing the same I was getting exception during `cargo run`
    Finished dev [unoptimized + debuginfo] target(s) in 0.04s
    Running `gdb-multiarch -q -x openocd.gdb target/thumbv7em-none-eabihf/debug/embedded-programming`
    error: could not execute process `gdb-multiarch -q -x openocd.gdb target/thumbv7em-none-eabihf/debug/embedded-programming` (never executed)
    I couldn't solve it that's why I decided to change my target runner to `runner = "arm-none-eabi-gdb -tui -q -x openocd.gdb` and it started working at first
    but when it tried to `load` or to `continue` I'm getting:
    Info : accepting 'gdb' connection on tcp/3333
    Info : device id = 0x10006431
    Info : flash size = 512 KiB
    Info : flash size = 512 bytes
    Hello, world
    Error: jtag status contains invalid mode value - communication failure
    Warn : target stm32f4x.cpu is not halted (gdb fileio)
    Polling target stm32f4x.cpu failed, trying to reexamine
    Examination failed, GDB will be halted. Polling again in 100ms
    Info : Previous state query failed, trying to reconnect
    Don't you know how to fix it?

    • @JaJakubYT
      @JaJakubYT  Рік тому +1

      Does it work only on the first try? Can you remove and reapply power to the board; does it work then only once or multiple times? It's important to have the correct target runner. Are you using exactly the same board as the video?

    • @DavidManukian-k9x
      @DavidManukian-k9x Рік тому

      Hi @@JaJakubYT
      Thanks for the reply. Yes I've tried multiple times. I reapplied power and anyway it's not working. I'm using stm32f411ceu6 board and unfortunatelly I can't succceed it

    • @DavidManukian-k9x
      @DavidManukian-k9x Рік тому

      I event reinstalled cargo to solve this issue
      Finished dev [unoptimized + debuginfo] target(s) in 0.04s
      Running `gdb-multiarch -q -x openocd.gdb target/thumbv7em-none-eabihf/debug/embedded-programming`
      error: could not execute process `gdb-multiarch -q -x openocd.gdb target/thumbv7em-none-eabihf/debug/embedded-programming` (never executed)
      it didn't help

    • @wesleyparr4830
      @wesleyparr4830 8 місяців тому

      @@DavidManukian-k9x
      I get the same but that is because 'gdb-multiarch' is not supported on Fedora OS