[ESP32] CAN bus and MOD bus master RTU.
Hello.
-
Are there support or plans to support CAN bus on ESP32? I see that there are a implementation for pyboard https://docs.micropython.org/en/latest/library/pyb.CAN.html - is that a similar implementation on the ESP32?
-
And about the MOD bus master RTU on micropython?
I think that, differently of CAN bus, MOD bus implementation is not a microcontroller dependent, just works over UART, is that correct?
I not found a implementation for the modbus master RTU in micropython libs and so on, anyone know if are there a third lib for that?
Thank you so much.
How to enable CAN bus support on NUCLEO_F091RC
Hi!
I am using NUCLEO_F091RC, deu to its flash memory and SRAM, it may not perform some complex calculations. But it provide many interfaces at a low cost.
It has: I2C、USARTs、SPI、CAN bus. Now i can use these interfaces with micropython except CAN bus. I have tried to build the firmware by adding following codes in mpconfigboard.h :
#define MICROPY_HW_ENABLE_CAN (1)
#define MICROPY_HW_CAN1_TX (pin_PA11)
#define MICROPY_HW_CAN1_RX (pin_PA12)
But I meet some error when I build the firmware : (
I think I can't simply add some #define to enable the CAN bus on NUCLEO_F091RC.
Is there a way to change some files to enable the CAN bus?