arduino-libraries / Arduino_PortentaBreakout

GNU Lesser General Public License v2.1
10 stars 5 forks source link

Breakout ETH #14

Closed pennam closed 3 years ago

pennam commented 3 years ago

Add support for ethernet peripheral and Ethernet library.

Needs: https://github.com/arduino/ArduinoCore-mbed/commit/c271a1795ecae6987ae08a1ae9f7a72dbe195f8c Merge after: #12

pennam commented 3 years ago

@facchinm @Rocketct seems there is an issue reading analog pin A1 (PA1_C) while ethernet connection is up (PA1 pin connected to nINT/REFCLK0). If i do this, communication hangs. I thought it is related to this : image but SYSCFG_PMCR configuration is OK. Is this something we already know? anyway i need to better investigate.

facchinm commented 3 years ago

For sure it's worth investigating; maybe the analog apis in mbed core trigger a flip in the SYSCFG_PMCR register when called for the first time (the _C handling has been reworked by ST after we did the first round of patches for the h747)

pennam commented 3 years ago

made some measurements and clock looks ok while reading PA1_C analog input... still investigating.

DS1Z_QuickPrint10

pennam commented 3 years ago

this could be a possible fix https://github.com/ARMmbed/mbed-os/pull/14707

pennam commented 3 years ago

fixed by https://github.com/ARMmbed/mbed-os/pull/14733