cwalter-at / freemodbus

BSD licensed MODBUS RTU/ASCII and TCP slave
720 stars 379 forks source link

freemodbus on ATmega3209 not working #20

Open maures opened 3 years ago

maures commented 3 years ago

Hi, Thank you very much for this great stack. I've used it on old Atmega644 with success. Now I'm trying to run it on new devices from microchip. I'm struggling to get running on ATmega3209. I've changed all port related files (port.h, porttimer.c and portserial.c). Done all test from porting.docx, everything look good, receiver and transmitter working as expected, interrupt on timer toggle LED, but when trying to test it using mbpull and usb-rs485 converter always got Timeout error.

Code after changes attached. Any ideas why it's not working?? Atmega3209_Modbus.zip

CyrilJiang commented 2 years ago

Please give specific questions. Such a question is unanswerable.