Hi everyone!
I have always used the FreeModbus library with the LPCXpresso IDE (an old version), and I have never had problems. However, when I installed MCUXpresso and opened the same proyect that I used to open with LPCXpresso, I sarted to have parity problems, that is, when I set the modbus configuration in "no parity" I don't have any problem, but when I set it in EVEN or ODD, the message that I receive is not correct, like a parity error(I'm using Modbus RTU slave).
It seems very strange to me, due to I don't have problems with the modbus with LPCXpresso.
Did anyone have a simmilar issue before?
Regards
Hello ,
Hope you are doing well.
Could you please provide the microcontroller that you are using as well as the MCUXpresso IDE version and SDK version.
Best Regards,
Sabina
Hope you are well. In the case of the lpc17xx, it does not have an SDK so the examples must be imported from the LPCOpen folder. The path in your computer will be the following:
C:\nxp\MCUXpressoIDE_11.2.0_4120\ide\Examples\LPCOpen
You may import the available examples by clicking "Import project from file system" in the quick start menu. Select the zip folder option and browse to the above path.
Here you will find the different packages for several microcontrollers.
Select your microcontroller and you may use the examples as reference with the latest version available. Could you please try these examples and see if they work for you. If so, then I'd recommend to port your example using these drivers to see if anything was updated as well. It is strange that a difference in the IDE would be causing a behavior such as not working.
You may also try a simple blink example to make sure that the MCUXpresso IDE is setup correctly.
Please let me know your results.
Thank you, I'll test it soon and let you know the results.
Regards!