andresarmento / modbus-arduino

A library that allows your Arduino to communicate via Modbus protocol, acting as a slave (master in development). Supports serial (RS-232, RS-485) and IP via Ethernet (Modbus IP).
BSD 3-Clause "New" or "Revised" License
453 stars 267 forks source link

ModbusIP Atmega168 7,32Mhz #46

Open Edxx-xx opened 4 years ago

Edxx-xx commented 4 years ago

Hi,

I use the Modbus library with board UNO and was working perfect. The same program I compile to ATmega168 with clock 7,32Mhz (MiniCore boards) and looks that is stack. The program use 99% of the memory. The test values are send to outputs of MCP23017 only if I disable line mb.task();

The problem is the memory or clock?

Edxx-xx commented 4 years ago

I change clock to 11.59 and with ATmega 168 no any change - program is stack. When I replace ATmega168 with ATmega328P and leave clock 11,059 everything is working perfect.