Skip to content

Build profile docs change related to sleep #140

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

Merged
merged 3 commits into from
Jun 19, 2017

Conversation

bulislaw
Copy link
Member

This change will be needed when ARMmbed/mbed-os#4097 is merged.

@bulislaw
Copy link
Member Author

@AnotherButler

@@ -10,6 +10,7 @@ mbed OS 5 supports three primary build profiles: *develop*, *debug* and *release
* Largest and slowest profile.
* Full error information. For example, asserts have file name and line number.
* Easy to step through code with a debugger.
* Sleep is disabled.
Copy link
Contributor

Choose a reason for hiding this comment

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

To eliminate passive voice, I recommend changing this to "Disabled sleep" or "Disabled sleep mode". Would that keep the same meaning?

Copy link
Contributor

@Patater Patater left a comment

Choose a reason for hiding this comment

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

Should we also add the "Chip is put to sleep when going idle" and related comments (including the file system breakage) to the "Develop" profile section?

@bulislaw
Copy link
Member Author

bulislaw commented Apr 5, 2017

Good point, will update.

@Patater
Copy link
Contributor

Patater commented Apr 5, 2017

There is probably a way to rejigger things so you can avoid repeating yourself.

@bulislaw
Copy link
Member Author

bulislaw commented Apr 5, 2017

I think it's cleaner to repeat small amount of text than to make some 'common' options with exclusions.

@Patater
Copy link
Contributor

Patater commented Apr 5, 2017

Yes, a repeating small amount is much more readable than a common section with exclusions.

However, the issues listed here for when sleep is enabled sound like good candidates for a known issues document. This location is probably not the first place a user would expect to find these known issues, although it may be handy to link to them from here. It's also probably difficult to keep these caveats up to date as they aren't as visible as a known issues document which would get reviewed on every release. (I'm assuming that eventually these sleep issues will get fixed.)

@bulislaw
Copy link
Member Author

bulislaw commented Apr 5, 2017

I agree, unfortunately our docs are not necessarily very well structured or clear to find things in. https://docs.mbed.com/docs/mbed-os-handbook/en/latest/
To be frank I wouldn't be able easily find known issues (I think they are in blog posts per release but not in docs themselves).

@Patater
Copy link
Contributor

Patater commented Apr 5, 2017

As an outsider, I'd look for known issues in the GitHub issue tracker or in a dedicated release notes document.

Anyway, making sure these issues are in the GitHub issue tracker or in release notes is not really something for this PR to deal with.

Copy link
Contributor

@Patater Patater left a comment

Choose a reason for hiding this comment

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

I'm happy with the semantics of this change.

@@ -5,11 +5,15 @@ mbed OS 5 supports three primary build profiles: *develop*, *debug* and *release
* Small and fast code.
* Full error information. For example, asserts have file name and line number.
* Hard to follow code flow when using a debugger.
* Chip is put to sleep when going idle:
Copy link
Contributor

Choose a reason for hiding this comment

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

Query: Could we change this to "Chip goes to sleep we idle" and keep the meaning? I would like to avoid the passive voice in "is put to sleep".

Copy link
Contributor

@Patater Patater Apr 5, 2017

Choose a reason for hiding this comment

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

"The RTOS idle task puts the chip to sleep." is accurate, but maybe too detailed.

"The chip sleeps when idle." is accurate as well.

@AnotherButler
Copy link
Contributor

@geky @theotherjimmy Should I merge this? The instructions say to merge it after we merge ARMmbed/mbed-os#4097, but I see ARMmbed/mbed-os#4200 reverts that.

@geky
Copy link
Contributor

geky commented Apr 19, 2017

I would wait, it does look like the revert will go through, but I suspect a slightly revised pr will be merged later.

@AnotherButler
Copy link
Contributor

@geky Thanks. I'll do that.

@AnotherButler AnotherButler changed the base branch from 5.4 to 5.5 June 12, 2017 15:30
@AnotherButler
Copy link
Contributor

@geky Should I merge this yet or still wait?

@bulislaw
Copy link
Member Author

The revert PR was closed ARMmbed/mbed-os#4200 I think that should be merged to reflect what's going on in the code. Then we should update the docs again when/if it changes.

@AnotherButler AnotherButler merged commit f03649a into ARMmbed:5.5 Jun 19, 2017
AnotherButler pushed a commit that referenced this pull request Jun 19, 2017
Apply changes from merged PR #140
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.

4 participants