Re: RP2040 clock speed increase

2025-02-25 Thread Sebastien Lorquet

Hello,

The pico sdk allows changing the speed dynamically.

I've had one run stable at 400 MHz for a frequency counter project, 
executing from RAM, not from flash. It required pushing the core voltage 
to 1.30V. The stuff does not even heat, and I did not check power draw. 
USB serial was still working fine.


It was a simple bare metal program, no rtos involved.

Sebastien


On 22/02/2025 04:12, Tomek CEDRO wrote:

On Fri, Feb 21, 2025 at 7:53 PM Matteo Golin  wrote:

Recently the RP2040 has officially been rated up to 200MHz by Raspberry Pi, a 
bump from the 125MHz speeds it was
initially rated for. It appears the Pico SDK has been updated recently to allow 
users to use the new rated speed.

Here's an interesting conversation about the topic on the Arduino project:
https://github.com/earlephilhower/arduino-pico/issues/2814

I think we should discuss the same thing here for NuttX. Should we update the 
RP2040 to now use 200MHz as the default,
since that is its rated speed? And we should then update the version of the 
Pico SDK mentioned in our documentation so
that users can leverage the new clock speed. I would propose that at the same 
time we update that in the documentation,
we perhaps include the installation/build procedure for the SDK and picotool on 
a common doc page (the RP2040 chip page)
so that we don't need to update every single RP2040 board page with the new 
version when we upgrade on the NuttX side.
That way each board page can simply link to the installation procedure (afaik 
none of them have a different procedure).

Good idea Matteo :-) I bought rPI-Pico(-W) and rpi-Pico-2(-W) 4 boards
just for testing but I am not familiar with the hw :-)

Would it be good to allow users to select clock frequency? If 125MHz
-> 200MHz that would imply increased power consumption too? Can it be
easily changed at runtime?



Re: [OT] PebbleOS becomes open-source

2025-02-25 Thread Alan C. Assis
You are welcome!

Actually when I said it was not CamelCase I was looking most the files at
https://github.com/google/pebble/tree/main/src/libutil

The rest of the OS has it in many places, but at least not the hungarian
style from FreeRTOS.

BR,

Alan

On Tue, Feb 25, 2025 at 9:42 AM alin.jerpe...@sony.com <
alin.jerpe...@sony.com> wrote:

> Hi Alan,
>
> Thanks for sharing the information
>
> Best regards
> Alin
> 
> Från: Alan C. Assis 
> Skickat: den 25 februari 2025 1:35
> Till: dev@nuttx.apache.org 
> Ämne: [OT] PebbleOS becomes open-source
>
> Hi NuttXers, Last month Google/Fitbit released PlebbleOS source code
> (Apache License) https: //urldefense. com/v3/__https: //ericmigi.
> com/blog/why-were-bringing-pebble-back__;!!O7_YSHcmd9jp3hj_4dEAcyQ!yr_KGuyP0ul3jxoDMgmV9kaR873t3okZ0VE3ZsQ_mbZZUSFzLRpcXGqno7Om0Dk3TocJ_Bb0Ml2-CQIQ$
>
>
> Hi NuttXers,
>
> Last month Google/Fitbit released PlebbleOS source code (Apache License)
>
>
> https://urldefense.com/v3/__https://ericmigi.com/blog/why-were-bringing-pebble-back__;!!O7_YSHcmd9jp3hj_4dEAcyQ!yr_KGuyP0ul3jxoDMgmV9kaR873t3okZ0VE3ZsQ_mbZZUSFzLRpcXGqno7Om0Dk3TocJ_Bb0Ml2-CQIQ$
>
> The code is in GitHub and probably there are useful things that could be
> interesting for NuttX community to explore (they used FreeRTOS but the C
> code is agnostic, and no CamelCase).
>
> BR,
>
> Alan
>
>


[OT] PebbleOS becomes open-source

2025-02-25 Thread Alan C. Assis
Hi NuttXers,

Last month Google/Fitbit released PlebbleOS source code (Apache License)

https://ericmigi.com/blog/why-were-bringing-pebble-back

The code is in GitHub and probably there are useful things that could be
interesting for NuttX community to explore (they used FreeRTOS but the C
code is agnostic, and no CamelCase).

BR,

Alan


Re: [VOTE] ROUND2 NuttX Contributing Guidelines update 202502.

2025-02-25 Thread Tiago Medicci Serrano
Hi,

Voting again (my previous e-mail was discarded in the voting process):

1. Contributing Guidelines with hints for Reviewers.
> We are adding additional section for Reviewers to Contributing
> Guidelines in order to provide checklist and complementary set of
> rules that should filter out breaking code as much as possible also on
> our side.


+1 Tomek
+1 Alin
+1 Tiago

2. PR and GIT COMMITS must adhere to Contributing Guidelines or rejected.
> Each PR and GIT COMMIT **must** adhere to requirements presented in
> Contributing Guidelines or will be auto-rejected until fixed /
> updated. Both code authors and reviewers/committers must follow the
> rules. Special cases are defined in a separate dedicated rules.


+1 Tomek
+1 Alin
+1 Tiago

3. Git commit messages as important as PR description.
> Git commit messages are as important as PR descriptions. These
> provide in-code descriptions of each change and are git interface
> independent.


+1 Tomek
+1 Alin
+1 Tiago

4. Proper description details requirements.
> Proper description of change is mandatory. Description must contain
> explanation on what proposed change do, why it is necessary, what if
> fixes, and how things are changed / fixed / updated, what is the
> impact (build / runtime / api / what area), how it was tested. Local
> code build and real world hardware runtime test logs must be provided
> (for code related changes). Description can be single..several
> sentences long or bullet points but enough for anyone to understand
> change goals and details. Usually it will look similar for PR and git
> commit  message.


+1 Tomek ( However I understand this PR template is separate from the rule
and will be updated / voted independently.)
+1 Alin
+1 Tiago

6. Git commit message must adhere to description requirements.
> Proper GIT COMMIT message according to template is mandatory, or
> change is rejected until fixed / updates. Build and runtime logs are
> optional here if these are too long and already provided in PR.



Git commit message consists of:

1. Topic with functional name prefix, ":" mark, and short
> self-explanatory context.
> 2. Blank line
> 3. Description on what is changed, how, and why. May use several
> lines, short sentences, or bullet points.
> 4. Blank line.
> 5. Signature (created with `git commit -s`).


> GIT COMMIT TEMPLATE / EXAMPLE:


> net/can: Add g_ prefix to can_dlc_to_len and len_to_can_dlc.


> Add g_ prefix to can_dlc_to_len and len_to_can_dlc to
> follow NuttX coding style conventions for global symbols,
> improving code readability and maintainability.
> * you can also use bullet points.
> * to note different thing briefly.


+1 Tomek
+1 Alin
+1 Tiago

7. Git commit message mandatory fields (topic, desctiption, signature).
> Each git commit message must consist of topic, description, and
> signature (git commit -s), as presented in GIT COMMIT TEMPLATE, which
> are mandatory, or change is auto-rejected until fixed / updated.


+1 Tomek
+1 Alin
+1 Tiago

8. Changes must come with documentation.
> Changes must come with with documentation update where applicable. For
> maintenance reasons code and documentation should be split into two
> separate PR with the same name marked [1/2 CODE] for code and [2/2
> DOC] for documentation. If change presents new functionality a
> documentation must be provided along with the code (not in future). If
> change requires documentation  update it must be contained along with
> the code (not in future). Successful documentation build log shortcut
> is welcome.


> See: https://github.com/apache/nuttx/blob/master/INVIOLABLES.md


0: Tomek (Having documentation in a single PR (same pr separate commit) is
easier to perform and review, otherwise we may get out of code/doc
sync? But if this is the only way and better for release manager then
okay.)
0 Alin (Having documentation in a single PR (same pr separate commit) is
easier to perform and review. The release process can use it)
0 Tiago. Yes, documentation should be provided, but I don't see any reason
for
splitting it into two different PRs. We keep our documentation in the same
repository and - for the sake of traceability - it should be updated in the
same PR (separate commit, not PR). We should make reviewers' and committers
lives easier. Alternative writing would be:
"*Changes must come with a documentation update where applicable. For*
*maintenance reasons, code and documentation should be split into two*
*commits in the same PR. If change presents new functionality,
documentation*
*must be provided along with the code (not in the future). If change*
*requires a documentation update it must be contained along with the code*
*(not in the future).*"

9. Zero trust approach to user testing.
> We implement zero trust approach to user provided testing. It is the
> commit author duty to provide real world hardware build and runtime
> logs for at least one device. Remember that any code change may break
> things for others, please avoid 

Re: [OT] PebbleOS becomes open-source

2025-02-25 Thread alin.jerpe...@sony.com
Hi Alan,

Thanks for sharing the information

Best regards
Alin

Från: Alan C. Assis 
Skickat: den 25 februari 2025 1:35
Till: dev@nuttx.apache.org 
Ämne: [OT] PebbleOS becomes open-source

Hi NuttXers, Last month Google/Fitbit released PlebbleOS source code (Apache 
License) https: //urldefense. com/v3/__https: //ericmigi. 
com/blog/why-were-bringing-pebble-back__;!!O7_YSHcmd9jp3hj_4dEAcyQ!yr_KGuyP0ul3jxoDMgmV9kaR873t3okZ0VE3ZsQ_mbZZUSFzLRpcXGqno7Om0Dk3TocJ_Bb0Ml2-CQIQ$


Hi NuttXers,

Last month Google/Fitbit released PlebbleOS source code (Apache License)

https://urldefense.com/v3/__https://ericmigi.com/blog/why-were-bringing-pebble-back__;!!O7_YSHcmd9jp3hj_4dEAcyQ!yr_KGuyP0ul3jxoDMgmV9kaR873t3okZ0VE3ZsQ_mbZZUSFzLRpcXGqno7Om0Dk3TocJ_Bb0Ml2-CQIQ$

The code is in GitHub and probably there are useful things that could be
interesting for NuttX community to explore (they used FreeRTOS but the C
code is agnostic, and no CamelCase).

BR,

Alan