Mike Dunston
Mike Dunston
> I decided on the SN65HVD230DR chip for the hardware element http://www.ti.com/lit/ds/symlink/sn65hvd230.pdf > as they are simple to use and available via JLCPCB, although hand soldering of it is a...
> Possibly I could help out testing it against that inverter. I'm afraid my C++ isn't good enough to help out here. Don't be afraid to submit C code for...
> Thats annoying, I skipped that part as the JLC description says 4.5 to 5v and I thought that was the input voltage! Should have read the datasheet! Yeah, sometimes...
overall your code looks OK. I'd suggest using: ``` can_general_config_t g_config = CAN_GENERAL_CONFIG_DEFAULT(GPIO_NUM_22, GPIO_NUM_21, CAN_MODE_NORMAL); ``` rather than initializing the fields yourself. This should be available in IDF v3.2+ (including...
Note that in my case I have a background task that runs every 10-15sec to dump the bus status and also initiates the recovery when needed.
What error are you seeing with the -1?
use `(gpio_num_t)-1` instead.
Very strange. It sounds like a bug in the version of the code you are using. I'm guessing PIO is not picking up the latest ESP-IDF code.
> "name": "framework-arduinoespressif32", > "version": "3.10004.201016", > "description": "Arduino Wiring-based Framework for Espressif ESP32 microcontrollers", ok this would map to arduino-esp32 1.0.4 which had an earlier version of ESP-IDF v3.2...
By using xTaskCreate it will float between cores. The loopTask runs pinned to core 1 (APP_CPU), so you could use `xTaskCreatePinnedToCore(...., PRO_CPU_NUM)` have the monitoring task run on core 0.