December 01, 2024, 08:06:11 AM

STM32-E407 Arduino examples

Started by Alex_SS, November 30, 2019, 12:15:03 AM

Previous topic - Next topic

Alex_SS

Hi,

I am just assigned a project to use STM32-E407 to read from ADC and report via Ethernet. We are using Arduino IDE. currently I have basic setup working, I can upload LED blinking sketch via USB-OTG1 and it works.

But when I tried to upload basic Arduino Ethernet example, I got errors. Can any one point me to some STM32 Arduino examples?

Thanks in advance!

---------------------------------------------------

C:\Program Files (x86)\arduino-1.8.10\libraries\Ethernet\src\EthernetClient.cpp:185:6: error: 'class HardwareSPI' has no member named 'beginTransaction'

  SPI.beginTransaction(SPI_ETHERNET_SETTINGS);

      ^

In file included from C:\Program Files (x86)\arduino-1.8.10\libraries\Ethernet\src\EthernetClient.cpp:24:0:

C:\Program Files (x86)\arduino-1.8.10\libraries\Ethernet\src\utility/w5100.h:21:72: error: 'SPISettings' was not declared in this scope

 #define SPI_ETHERNET_SETTINGS SPISettings(14000000, MSBFIRST, SPI_MODE0)


JohnS

That example assumes an external board connected via SPI so will need extensive changes or find another example.

John