Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add ethernet interface support (OTA and Watchdog) for Portenta H7#328

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
pennam merged 6 commits intoarduino-libraries:masterfrompennam:portenta-eth
Nov 7, 2022

Conversation

@codecov-commenter
Copy link

codecov-commenter commentedJul 27, 2022
edited
Loading

Codecov Report

Merging#328 (c934b8d) intomaster (04f41b8) willnot change coverage.
The diff coverage isn/a.

@@           Coverage Diff           @@##           master     #328   +/-   ##=======================================  Coverage   94.87%   94.87%           =======================================  Files          27       27             Lines        1113     1113           =======================================  Hits         1056     1056             Misses         57       57
Impacted FilesCoverage Δ
src/property/Property.h88.88% <0.00%> (ø)
src/property/Property.cpp88.60% <0.00%> (ø)
src/property/types/CloudString.h100.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell ushow you rate us. Have a feature suggestion?Share it here.

@per1234per1234 added type: enhancementProposed improvement topic: codeRelated to content of the project itself labelsJul 27, 2022
Copy link
Contributor

@aentingeraentinger left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Just got a couple of questions and small suggestions.

@@ -61,7 +64,13 @@ int portenta_h7_onOTARequest(char const * ota_url)
watchdog_reset();

/* Download the OTA file from the web storage location. */
int const ota_portenta_qspi_download_ret_code = ota_portenta_qspi.download(ota_url, true /* is_https */);
MbedSocketClass * download_socket = static_cast<MbedSocketClass*>(&WiFi);
#if defined (ARDUINO_PORTENTA_H7_M7)
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure if this ifdef is really needed? After all, should not this file be only compiled for Portenta H7?

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

Yes, it is. The file is compiled also for NICLA VISION that does not have Ethernet. I think the best thing to do here is to rename the file intoOTA-stm32-h7.cpp to avoid confusion, but then we need also to renameArduino_Portenta_OTA library; or make a new library calledArduino_STM32_H7_OTA and deprecateArduino_Portenta_OTA.

@@ -63,6 +66,11 @@ static void samd_watchdog_reset()
}
}

static void samd_watchdog_enable_network_feed()
{
WiFi.setFeedWatchdogFunc(watchdog_reset);
Copy link
Contributor

Choose a reason for hiding this comment

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

This function works for NINA? Not to say that it does not, I just never saw it before 😉

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

Yes, we added this function with this PRarduino-libraries/WiFiNINA#186 one year ago

@@ -154,4 +173,13 @@ void watchdog_reset()
mbed_watchdog_reset();
#endif
}

void watchdog_enable_network_feed(bool use_ethernet)
Copy link
Contributor

Choose a reason for hiding this comment

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

In how far iswatchdog_enable_network_feed different fromwatchdog_enable. What are the advantages of one over the other? I don't think I get it.

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

watchdog_enable enables the mcu watchdog
watchdog_enable_network_feed enables watchdog kiks/resets during network operations. This was introduced with:

@pennam
Copy link
CollaboratorAuthor

LGTM +1 Just got a couple of questions and small suggestions.

Thanks@aentinger

@pennam
Copy link
CollaboratorAuthor

Cleanup and rebase:c6a12f6 should be dropped before merge.

@pennam
Copy link
CollaboratorAuthor

rebased to resolve conflicts

  The implementation is done as for WiFi so we can reuse the same define ARDUINO_PORTENTA_H7_WIFI_HAS_FEED_WATCHDOG_FUNC  Move watchdog network feed configuration into Watchdog module
  In this way we can also use the more meaningful define BOARD_HAS_ETHERNET
…ernet.h  In this way we can also use the more meaningful define BOARD_HAS_ETHERNET
  This board is an mbed platform + WiFiNINA so needs special handling for watchdog network feed.
@pennam
Copy link
CollaboratorAuthor

Droppedc6a12f6

@github-actions
Copy link

Memory usage change @fdaac0f

Boardflash%RAM for global variables%
arduino:mbed_nano:nanorp2040connect🔺 0 - +240.0 - 0.00 - 00.0 - 0.0
arduino:mbed_nicla:nicla_vision🔺 0 - +640.0 - 0.00 - 00.0 - 0.0
arduino:mbed_portenta:envie_m7🔺 +64 - +64+0.01 - +0.010 - 00.0 - 0.0
arduino:samd:mkr1000🔺 0 - +240.0 - +0.010 - 00.0 - 0.0
arduino:samd:mkrgsm1400🔺 0 - +240.0 - +0.010 - 00.0 - 0.0
arduino:samd:mkrnb1500🔺 0 - +240.0 - +0.010 - 00.0 - 0.0
arduino:samd:mkrwan13000 - 00.0 - 0.00 - 00.0 - 0.0
arduino:samd:mkrwifi1010🔺 0 - +160.0 - +0.010 - 00.0 - 0.0
arduino:samd:nano_33_iot🔺 0 - +160.0 - +0.010 - 00.0 - 0.0
esp32:esp32:esp320 - 00.0 - 0.00 - 00.0 - 0.0
esp8266:esp8266:huzzah0 - 00.0 - 0.00 - 00.0 - 0.0
Click for full report table
Boardexamples/ArduinoIoTCloud-Advanced
flash
%examples/ArduinoIoTCloud-Advanced
RAM for global variables
%examples/ArduinoIoTCloud-Basic
flash
%examples/ArduinoIoTCloud-Basic
RAM for global variables
%examples/utility/ArduinoIoTCloud_Travis_CI
flash
%examples/utility/ArduinoIoTCloud_Travis_CI
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:mbed_nano:nanorp2040connect240.000.0240.000.0240.000.000.000.000.000.0
arduino:mbed_nicla:nicla_vision640.000.0640.000.000.000.0640.000.0
arduino:mbed_portenta:envie_m7640.0100.0640.0100.0640.0100.0640.0100.0
arduino:samd:mkr1000240.0100.0160.0100.0240.0100.000.000.0
arduino:samd:mkrgsm1400240.0100.0240.0100.0240.0100.000.000.0
arduino:samd:mkrnb1500160.0100.0160.0100.0240.0100.000.000.0
arduino:samd:mkrwan130000.000.000.000.000.000.0
arduino:samd:mkrwifi1010160.0100.0160.0100.0160.0100.000.000.000.000.0
arduino:samd:nano_33_iot160.0100.0160.0100.0160.0100.000.000.000.000.0
esp32:esp32:esp3200.000.000.000.000.000.0
esp8266:esp8266:huzzah00.000.000.000.000.000.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/utility/ArduinoIoTCloud_Travis_CI<br>flash,%,examples/utility/ArduinoIoTCloud_Travis_CI<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:mbed_nano:nanorp2040connect,24,0.0,0,0.0,24,0.0,0,0.0,24,0.0,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0arduino:mbed_nicla:nicla_vision,64,0.0,0,0.0,64,0.0,0,0.0,0,0.0,0,0.0,64,0.0,0,0.0,,,,arduino:mbed_portenta:envie_m7,64,0.01,0,0.0,64,0.01,0,0.0,64,0.01,0,0.0,64,0.01,0,0.0,,,,arduino:samd:mkr1000,24,0.01,0,0.0,16,0.01,0,0.0,24,0.01,0,0.0,0,0.0,0,0.0,,,,arduino:samd:mkrgsm1400,24,0.01,0,0.0,24,0.01,0,0.0,24,0.01,0,0.0,0,0.0,0,0.0,,,,arduino:samd:mkrnb1500,16,0.01,0,0.0,16,0.01,0,0.0,24,0.01,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,,,,,,,,arduino:samd:mkrwifi1010,16,0.01,0,0.0,16,0.01,0,0.0,16,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0arduino:samd:nano_33_iot,16,0.01,0,0.0,16,0.01,0,0.0,16,0.01,0,0.0,0,0.0,0,0.0,0,0.0,0,0.0esp32:esp32:esp32,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,,,,,,,,

@pennampennam merged commit5393437 intoarduino-libraries:masterNov 7, 2022
@pennampennam deleted the portenta-eth branchMay 17, 2024 09:14
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@aentingeraentingeraentinger approved these changes

@facchinmfacchinmAwaiting requested review from facchinm

Assignees
No one assigned
Labels
topic: codeRelated to content of the project itselftype: enhancementProposed improvement
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@pennam@codecov-commenter@aentinger@per1234

[8]ページ先頭

©2009-2025 Movatter.jp