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).
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();
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.
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?