...
Note |
---|
Please connect both boards with each other, before you connect them per USB to your computer. |
Note |
---|
Please also see the Known Issues regarding the Connection between the ATMEGA2560 and the SoM. |
In order for the SPI connection to work you need to add following wiring:
PMOD connector pin | Arduino pin | Function |
---|---|---|
1 (CS) | 53 | Chip select |
2 (MOSI) | 51 | MOSI |
3 (MISO) | 50 | MISO |
4 (SCK) | 52 | SCK |
Debugging
UART
The ATMEGA 2560 provides a UART over USB cable. Choose the following settings:
Speed | 28800 |
Data Bits | 8 |
Stop Bits | 1 |
Parity | Odd |
Flow Control | XON/XOFF |
Application 02_profinet
After setting up the serial monitor and starting the debug session, the output should look like this:
...
Following you’ll find current limitations regarding the ATMEGA 2560.
Some examples will not work since the platform provides insufficient resources. In general the uGOAL examples will work ( iRJ45 / SoM - uGOAL Examples ). Examples from the 20215013_irj45 folder ( iRJ45 / SoM - GOAL examples ) may need additional resources. This is specially the case when web server and tcp/udp channels are used in addition to a fieldsbus protocol.
Under specific conditions the SPI connection gets sporadically timeouts when using single wires connecting the SoM using the PMOD-Connectors. We highly recommend to separate the SPI-Signals MOSI, MISO, SCK and CS using GND wires, to achieve proper shielding and a reliable SPI communication between the ATMEGA2560 and the SoM.