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

Do not use analogRead or ECCX08 to generate random NTP port #481

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pennam
Copy link
Collaborator

@pennam pennam commented Jun 20, 2024

Copy link

Memory usage change @ 471296d

Board flash % RAM for global variables %
arduino:esp32:nano_nora 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed_edge:edge_control 💚 -2096 - -64 -0.21 - -0.01 💚 -168 - 0 -0.06 - 0.0
arduino:mbed_giga:giga 💚 -64 - 0 -0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed_nano:nanorp2040connect 💚 -62 - 0 -0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed_nicla:nicla_vision 💚 -7088 - 0 -0.36 - 0.0 💚 -96 - 0 -0.02 - 0.0
arduino:mbed_opta:opta 💚 -64 - 0 -0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A
arduino:renesas_portenta:portenta_c33 💚 -1432 - 0 -0.07 - 0.0 0 - 0 0.0 - 0.0
arduino:renesas_uno:unor4wifi 💚 -120 - -104 -0.05 - -0.04 0 - 0 0.0 - 0.0
arduino:samd:mkr1000 🔺 0 - +184 0.0 - +0.07 0 - 0 0.0 - 0.0
arduino:samd:mkrgsm1400 🔺 0 - +184 0.0 - +0.07 0 - 0 0.0 - 0.0
arduino:samd:mkrnb1500 🔺 0 - +184 0.0 - +0.07 0 - 0 0.0 - 0.0
arduino:samd:mkrwan1300 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
arduino:samd:mkrwifi1010 🔺 0 - +128 0.0 - +0.05 0 - 0 0.0 - 0.0
arduino:samd:nano_33_iot ❔ -120 - +128 -0.05 - +0.05 💚 -8 - 0 -0.02 - 0.0
esp32:esp32:esp32 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
esp8266:esp8266:huzzah 0 - 0 0.0 - 0.0 0 - 0 0.0 - 0.0
Click for full report table
Board examples/ArduinoIoTCloud-Advanced
flash
% examples/ArduinoIoTCloud-Advanced
RAM for global variables
% examples/ArduinoIoTCloud-Basic
flash
% examples/ArduinoIoTCloud-Basic
RAM for global variables
% examples/ArduinoIoTCloud-Callbacks
flash
% examples/ArduinoIoTCloud-Callbacks
RAM for global variables
% examples/ArduinoIoTCloud-Schedule
flash
% examples/ArduinoIoTCloud-Schedule
RAM for global variables
% examples/utility/ArduinoIoTCloud_Travis_CI
flash
% examples/utility/ArduinoIoTCloud_Travis_CI
RAM for global variables
% examples/ArduinoIoTCloud-DeferredOTA
flash
% examples/ArduinoIoTCloud-DeferredOTA
RAM for global variables
% examples/utility/Provisioning
flash
% examples/utility/Provisioning
RAM for global variables
% examples/utility/SelfProvisioning
flash
% examples/utility/SelfProvisioning
RAM for global variables
%
arduino:esp32:nano_nora 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
arduino:mbed_edge:edge_control -2096 -0.21 -168 -0.06 -64 -0.01 0 0.0 -2096 -0.21 -168 -0.06 -2096 -0.21 -168 -0.06 -2032 -0.21 -168 -0.06
arduino:mbed_giga:giga -64 -0.0 0 0.0 -64 -0.0 0 0.0 -64 -0.0 0 0.0 -64 -0.0 0 0.0 -64 -0.0 0 0.0 -64 -0.0 0 0.0 0 0.0 0 0.0
arduino:mbed_nano:nanorp2040connect -62 -0.0 0 0.0 -62 -0.0 0 0.0 -62 -0.0 0 0.0 -62 -0.0 0 0.0 -62 -0.0 0 0.0 -62 -0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
arduino:mbed_nicla:nicla_vision -7024 -0.36 -56 -0.01 -64 -0.0 0 0.0 -7024 -0.36 -56 -0.01 -7024 -0.36 -56 -0.01 -7088 -0.36 -56 -0.01 -7032 -0.36 -96 -0.02 0 0.0 0 0.0
arduino:mbed_opta:opta -64 -0.0 0 0.0 -64 -0.0 0 0.0 -64 -0.0 0 0.0 -64 -0.0 0 0.0 -64 -0.0 0 0.0 -64 -0.0 0 0.0 0 0.0 0 0.0
arduino:mbed_portenta:envie_m7 N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A
arduino:renesas_portenta:portenta_c33 -1432 -0.07 0 0.0 -56 -0.0 0 0.0 -1424 -0.07 0 0.0 -1432 -0.07 0 0.0 -1424 -0.07 0 0.0 0 0.0 0 0.0
arduino:renesas_uno:unor4wifi -120 -0.05 0 0.0 -104 -0.04 0 0.0 -104 -0.04 0 0.0 -120 -0.05 0 0.0 -104 -0.04 0 0.0
arduino:samd:mkr1000 176 0.07 0 0.0 184 0.07 0 0.0 176 0.07 0 0.0 176 0.07 0 0.0 176 0.07 0 0.0 0 0.0 0 0.0
arduino:samd:mkrgsm1400 184 0.07 0 0.0 176 0.07 0 0.0 184 0.07 0 0.0 176 0.07 0 0.0 176 0.07 0 0.0 0 0.0 0 0.0
arduino:samd:mkrnb1500 184 0.07 0 0.0 176 0.07 0 0.0 184 0.07 0 0.0 176 0.07 0 0.0 176 0.07 0 0.0 0 0.0 0 0.0
arduino:samd:mkrwan1300 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
arduino:samd:mkrwifi1010 128 0.05 0 0.0 128 0.05 0 0.0 128 0.05 0 0.0 128 0.05 0 0.0 128 0.05 0 0.0 128 0.05 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
arduino:samd:nano_33_iot -120 -0.05 -8 -0.02 128 0.05 0 0.0 -120 -0.05 -8 -0.02 -120 -0.05 -8 -0.02 -120 -0.05 -8 -0.02 -120 -0.05 -8 -0.02 0 0.0 0 0.0 0 0.0 0 0.0
esp32:esp32:esp32 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
esp8266:esp8266:huzzah 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0 0 0.0
Click for full report CSV
Board,examples/ArduinoIoTCloud-Advanced<br>flash,%,examples/ArduinoIoTCloud-Advanced<br>RAM for global variables,%,examples/ArduinoIoTCloud-Basic<br>flash,%,examples/ArduinoIoTCloud-Basic<br>RAM for global variables,%,examples/ArduinoIoTCloud-Callbacks<br>flash,%,examples/ArduinoIoTCloud-Callbacks<br>RAM for global variables,%,examples/ArduinoIoTCloud-Schedule<br>flash,%,examples/ArduinoIoTCloud-Schedule<br>RAM for global variables,%,examples/utility/ArduinoIoTCloud_Travis_CI<br>flash,%,examples/utility/ArduinoIoTCloud_Travis_CI<br>RAM for global variables,%,examples/ArduinoIoTCloud-DeferredOTA<br>flash,%,examples/ArduinoIoTCloud-DeferredOTA<br>RAM for global variables,%,examples/utility/Provisioning<br>flash,%,examples/utility/Provisioning<br>RAM for global variables,%,examples/utility/SelfProvisioning<br>flash,%,examples/utility/SelfProvisioning<br>RAM for global variables,%
arduino:esp32:nano_nora,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
arduino:mbed_edge:edge_control,-2096,-0.21,-168,-0.06,-64,-0.01,0,0.0,-2096,-0.21,-168,-0.06,-2096,-0.21,-168,-0.06,-2032,-0.21,-168,-0.06,,,,
arduino:mbed_giga:giga,-64,-0.0,0,0.0,-64,-0.0,0,0.0,-64,-0.0,0,0.0,-64,-0.0,0,0.0,-64,-0.0,0,0.0,-64,-0.0,0,0.0,0,0.0,0,0.0
arduino:mbed_nano:nanorp2040connect,-62,-0.0,0,0.0,-62,-0.0,0,0.0,-62,-0.0,0,0.0,-62,-0.0,0,0.0,-62,-0.0,0,0.0,-62,-0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
arduino:mbed_nicla:nicla_vision,-7024,-0.36,-56,-0.01,-64,-0.0,0,0.0,-7024,-0.36,-56,-0.01,-7024,-0.36,-56,-0.01,-7088,-0.36,-56,-0.01,-7032,-0.36,-96,-0.02,0,0.0,0,0.0,,,,
arduino:mbed_opta:opta,-64,-0.0,0,0.0,-64,-0.0,0,0.0,-64,-0.0,0,0.0,-64,-0.0,0,0.0,-64,-0.0,0,0.0,-64,-0.0,0,0.0,0,0.0,0,0.0,,,,
arduino:mbed_portenta:envie_m7,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,N/A,,,,
arduino:renesas_portenta:portenta_c33,-1432,-0.07,0,0.0,-56,-0.0,0,0.0,-1424,-0.07,0,0.0,-1432,-0.07,0,0.0,-1424,-0.07,0,0.0,,,,,0,0.0,0,0.0,,,,
arduino:renesas_uno:unor4wifi,-120,-0.05,0,0.0,-104,-0.04,0,0.0,-104,-0.04,0,0.0,-120,-0.05,0,0.0,-104,-0.04,0,0.0,,,,,,,,,,,,
arduino:samd:mkr1000,176,0.07,0,0.0,184,0.07,0,0.0,176,0.07,0,0.0,176,0.07,0,0.0,176,0.07,0,0.0,,,,,0,0.0,0,0.0,,,,
arduino:samd:mkrgsm1400,184,0.07,0,0.0,176,0.07,0,0.0,184,0.07,0,0.0,176,0.07,0,0.0,176,0.07,0,0.0,,,,,0,0.0,0,0.0,,,,
arduino:samd:mkrnb1500,184,0.07,0,0.0,176,0.07,0,0.0,184,0.07,0,0.0,176,0.07,0,0.0,176,0.07,0,0.0,,,,,0,0.0,0,0.0,,,,
arduino:samd:mkrwan1300,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,,,,,,,,,,,,
arduino:samd:mkrwifi1010,128,0.05,0,0.0,128,0.05,0,0.0,128,0.05,0,0.0,128,0.05,0,0.0,128,0.05,0,0.0,128,0.05,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0
arduino:samd:nano_33_iot,-120,-0.05,-8,-0.02,128,0.05,0,0.0,-120,-0.05,-8,-0.02,-120,-0.05,-8,-0.02,-120,-0.05,-8,-0.02,-120,-0.05,-8,-0.02,0,0.0,0,0.0,0,0.0,0,0.0
esp32:esp32:esp32,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,,,,,,,,
esp8266:esp8266:huzzah,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0,,,,,,,,,,,,

@per1234 per1234 added the topic: code Related to content of the project itself label Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Library changes pin mode of A0 to INPUT
2 participants