Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Freeze when loading project #263

Closed
aliakseika opened this issue Apr 5, 2024 · 8 comments
Closed

Freeze when loading project #263

aliakseika opened this issue Apr 5, 2024 · 8 comments

Comments

@aliakseika
Copy link

Hello, when I try to load a project from the no_std template onto the device, esp just freezes for a moment, as in the screenshot and that’s it, no action happens. Tried it on esp32H2 and esp32C6.
Maybe there are some ideas on what can be done about this?
Снимок экрана 2024-04-04 в 18 33 32

@SergioGasquez
Copy link
Member

Sorry, what do you mean by "freezes"? That "Hello World" prints are not shown? Are those printed afterward?

@aliakseika
Copy link
Author

No - these are the last lines after loading and this continues endlessly.
I apologize, perhaps I am not expressing myself clearly. The fact is that I am writing through Google translator

@SergioGasquez
Copy link
Member

Which devkit are you using? Are you using the "USB" or "UART" port of the devkit? Make sure you use the "UART" one

@aliakseika
Copy link
Author

if i use uart port then i get different error
Снимок экрана 2024-04-05 в 13 12 59

@SergioGasquez
Copy link
Member

Can you run it with debug logs: RUST_LOG=debug cargo run. Also, can you edit .cargo/config.toml to add --no-stub into the espflash command so its espflash flash --monitor --no-stub

@aliakseika
Copy link
Author

it works, thanks 👍 )

@aliakseika
Copy link
Author

aliakseika commented Apr 5, 2024

Maybe it is possible to connect the device via a USB port, or is it planned in the future? since the debug only works through the USB port, and not the UART. But then the firmware does not work)

@SergioGasquez
Copy link
Member

But then the firmware does not work

Firmware does work, but in the default example you are writing to UART, so if you connect to USB you dont receive it. Have a look at https://github.com/esp-rs/esp-hal/blob/main/examples/src/bin/usb_serial_jtag.rs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants