Skip to content

Conversation

@robamu
Copy link

@robamu robamu commented Nov 20, 2025

  • Introduce defmt which is very commonly used on embedded systems. It is used to print the allocated structures.
  • New QEMU runner to support defmt.
  • Switch to more commonly used thumbv7em-none-eabihf target for the QEMU runner.

@robamu robamu requested a review from a team as a code owner November 20, 2025 12:20
@robamu robamu marked this pull request as draft November 20, 2025 12:22
@robamu robamu marked this pull request as ready for review November 20, 2025 12:45
@robamu
Copy link
Author

robamu commented Nov 20, 2025

With #110 , I think the additional example is not required anymore. The heap memory blocks will be placed into .bss anyway.

@robamu
Copy link
Author

robamu commented Nov 21, 2025

The shell script could be avoided by using knurling-rs/defmt#1012 if that is released...

[build]
# Common embedded build targets
target = "thumbv7em-none-eabihf"
# target = "thumbv6m-none-eabi"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove code, not comment out.

Copy link
Author

@robamu robamu Nov 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the intention here was to simplify quickly switching between the thumv7em and thumbv6m default target, which are both used for tests/examples.

Copy link
Contributor

@zeenix zeenix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM other than the nitpick. The CI isn't going forward though. 🤔 Can you please rebase the branch and force push?

@robamu
Copy link
Author

robamu commented Nov 27, 2025

I am not sure what is going on with the CI. It is related to steps which were removed. Maybe this can be safely ignored?
I can try rebasing though.

- Introduce `defmt` which is very commonly used on embedded systems. It
  is used to print the allocated structures.
- New QEMU runner to support defmt.
- Introduce new example which uses a global heap initialized on BSS
  memory.
- Switch to more commonly used thumbv7em-none-eabihf target for the QEMU
  runner. thumbv6m-none-eabi is still supported as well.
@robamu
Copy link
Author

robamu commented Nov 27, 2025

I rebased and squashed. If you still prefer to have the quick switch option inside the config file removed, I can also do that.

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

Successfully merging this pull request may close these issues.

2 participants