brainelectronics / micropython-modbus

MicroPython Modbus RTU Slave/Master and TCP Server/Slave library
GNU General Public License v3.0
104 stars 45 forks source link

micropython hangs when stopping slave process #91

Open Omid888 opened 3 months ago

Omid888 commented 3 months ago

Description

After a few times of running & stopping a slave process (result = client.process()) the microcontroller becomes irresponsive. Thonny throws this message: Could not interrupt current process. Please wait, try again or select Stop/Restart!

Now I have to disconnect power completely from raspberrypi pico to get to work again.

MicroPython version

V1.22.2

MicroPython board

Raspberry Pico

MicroPython Modbus version

MicroPython infos: (sysname='rp2', nodename='rp2', release='1.22.2', version='v1.22.2 on 2024-02-22 (GNU 13.2.0 MinSizeRel)', machine='Raspberry Pi Pico with RP2040')

Used micropthon-modbus version: 2.3.7