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

update example #19

Merged
merged 6 commits into from
Jan 24, 2025
Merged

update example #19

merged 6 commits into from
Jan 24, 2025

Conversation

jamessizeland
Copy link
Contributor

Possibly worth waiting until embassy-rs/trouble#213 is merged.

Mostly just updating trouble example to match latest changes in the nrf-sdc example.

/// - maximum associated with [task-arena-size](https://docs.embassy.dev/embassy-executor/git/cortex-m/index.html)
const SDC_MEMORY_SIZE: usize = 3312; // bytes
const SDC_MEMORY_SIZE: usize = 1448; // bytes
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@alexmoon is it okay to set this memory size constant here? The runtime required_memory() function told me I had over allocated memory since the update, but I'm not sure if this is something the end application developer would need to have control over?

Copy link
Owner

@lulf lulf Jan 13, 2025

Choose a reason for hiding this comment

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

This should be configurable by the end application, because it depends on how many connections and the l2cap mtu you want the controller to handle, so it can vary.

I'm OK if you want to merge this first though.

@jamessizeland jamessizeland marked this pull request as ready for review January 12, 2025 15:30
/// - maximum associated with [task-arena-size](https://docs.embassy.dev/embassy-executor/git/cortex-m/index.html)
const SDC_MEMORY_SIZE: usize = 3312; // bytes
const SDC_MEMORY_SIZE: usize = 1448; // bytes
Copy link
Owner

@lulf lulf Jan 13, 2025

Choose a reason for hiding this comment

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

This should be configurable by the end application, because it depends on how many connections and the l2cap mtu you want the controller to handle, so it can vary.

I'm OK if you want to merge this first though.

Copy link
Owner

@lulf lulf left a comment

Choose a reason for hiding this comment

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

(use the correct radio button)

@jamessizeland
Copy link
Contributor Author

Ah nice I wondered what it would depend on. I'll have a think about the easiest way to pull it out as an accessible const, the static SDC_MEM static made that awkward when I had a quick look before.

@lure23
Copy link

lure23 commented Jan 17, 2025

Possibly worth waiting until embassy-rs/trouble#213 is merged.

My itch is to have jamessizeland/microbit-ble-gamepad#4 merged (different project; dependent) so that I can work in that project's main.

Based on the conversations, I'm not quite sure if there's something remaining to be done here, or whether the merge could in fact take place?

@jamessizeland
Copy link
Contributor Author

I'll finish updating the dependencies for the latest trouble updates on this today and get it merged.

@jamessizeland
Copy link
Contributor Author

happy to merge @lulf ?

@lulf lulf merged commit 7dd5ba5 into lulf:main Jan 24, 2025
1 check passed
@jamessizeland jamessizeland deleted the update-trouble-dependency branch January 24, 2025 22:56
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.

3 participants