Skip to content

Cannot get past reset with the blinky example. #263

Closed
@matoushybl

Description

Hi, I am trying to start developing for the STM32H743, using the weact H7 board (https://github.com/WeActTC/MiniSTM32H7xx) but I am having trouble even with the blinky example. From my understanding, the program panics during the initialization phase and goes to a fault.

I am compiling the example like this:

cargo build --example blinky --features="stm32h743 rt log-semihost example-ldo"

Then I run the gdb:

arm-none-eabi-gdb -q target/thumbv7em-none-eabihf/debug/examples/blinky
Reading symbols from target/thumbv7em-none-eabihf/debug/examples/blinky...
(gdb) target extended-remote :3333
Remote debugging using :3333
0x080002aa in Reset ()
(gdb) monitor arm semihosting enable
semihosting is enabled

(gdb) break main
Breakpoint 1 at 0x8001574: file examples/blinky.rs, line 14.
Note: automatically using hardware breakpoints for read-only addresses.
(gdb) next
Single stepping until exit from function Reset,
which has no line number information.
halted: PC: 0x080002ac
halted: PC: 0x080002ae
halted: PC: 0x080002b0
halted: PC: 0x080002aa
halted: PC: 0x080002ac
halted: PC: 0x080002ae
halted: PC: 0x080002b0
halted: PC: 0x080002aa
halted: PC: 0x080002ac
halted: PC: 0x080002ae
halted: PC: 0x080002b0
halted: PC: 0x080002aa
halted: PC: 0x080002ac

The halted: PC ... messages keep going on forever.

Could you please help me with this issue? Thanks!

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions