Skip to content

No messages shown over serial/UART #316

Answered by Rahix
mckayb asked this question in Q&A
Discussion options

You must be logged in to vote

Hmm, so you're building a debug build:

    Finished dev [unoptimized + debuginfo] target(s) in 0.95s

and looking into your Cargo.toml, I see you've configured the compile profiles as follows:

[profile.dev]
panic = "abort"

[profile.release]
panic = "abort"

This will produce a huge bloated binary because absolutely no optimizations are done (no inlining, dead code removal, constant folding, etc.). This means, it eats a lot of the available flash memory (23.3 KiB from your output above) but will also run very slowly. I could see this massively throwing off the timing for the USART peripheral and thus nothing is working. It could also run into a lot of other issues due to the missing optimi…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Rahix
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #106 on September 02, 2022 10:41.