Rp2040#377
Conversation
|
Nice!
|
|
Thanks for the quick reply.
|
|
My bad, sorry! I had a look only at the first commit. Regarding those RTOS task calls, that could be valid for the RP2040 as well - IIRC there are two cores, too? On the ESP32 running the worker task on a dedicated core helps to maintain the bus speed at higher baud rates, the ESP32 can go up to 5Mbaud with it. The RTU server or client do not run on the ESP8266 for exactly the reason of having only one core. |
|
The RP2040 has two cores indeed, however the function used |
|
We are getting there. 😀 I will order a RP2040 for me to test. I would like it better to have the TCP parts also working on that MCU. Did you try those as well? I suppose your definition in |
|
Excellent! Thank you so much. I expect to get the RP2040 on Saturday, so I may approve the PR beginning of next week. |
|
|
What are your recent changes about to achieve? Just renaming the config variable? If so, why is there no matching commit for |
|
Just revisiting this project and cleaning up code on my end. Did not think about the side effect on this PR. I can remove it for the time being if you prefer. |
- squash rp2040 branch history onto upstream/master - include RP2040 FreeRTOS guards and RTU task affinity compatibility - keep RP2040 RTU server example and library metadata updates
|
@ecarjat Thank you for your contribution. |
…s#377) - squash rp2040 branch history onto upstream/master - include RP2040 FreeRTOS guards and RTU task affinity compatibility - keep RP2040 RTU server example and library metadata updates Co-authored-by: Emmanuel Carjat <emmanuel.carjat@quanthouse.com>
This PR enables the code ModbusServerRTU to run on a RP2040 using the arduino framework and the earlephilhower core.
I have only tested the RTU server part. The client RTU replicates the changes done in server and should work as is but it has not been tested.