Search found 22 matches
- Sat Apr 14, 2018 4:10 pm
- Forum: Hardware
- Topic: CAn controller
- Replies: 9
- Views: 5424
Re: CAn controller
Hi jcsbanks, exactly. For the simple case (node disconnected) the controller will enter passive error state and keep transmitting the frame without incrementing tx error counter until the frame gets acked by a node. In other cases, on a massively disturbed bus, bus-off will be reached. Anyway, a fra...
- Fri Apr 13, 2018 8:47 pm
- Forum: Hardware
- Topic: CAn controller
- Replies: 9
- Views: 5424
Re: CAn controller
Hi Timons, first of all, bus off condition should not be reached under normal circumstances. It might be caused by some hardware issue, like invalid bus termination, or you might have multiple nodes trying to arbitrate the bus using the same message id at a time. I'd recommend to look at the SJA1000...
- Fri Apr 13, 2018 7:26 pm
- Forum: Hardware
- Topic: Reed Relay resetting ESP32
- Replies: 2
- Views: 2214
Re: Reed Relay resetting ESP32
Hi f.h-f.s., hard to say, but for me your issue seems related to the load rather than to the relais coil, as it works fine without the load. I'd try to set up the erroneous configuration, then switch the load by shortening the relais switch using a short wire directly on the pcb and see if you get e...
- Thu Apr 12, 2018 5:53 pm
- Forum: Hardware
- Topic: About the CAN controller.
- Replies: 174
- Views: 151275
Re: About the CAN controller.
ahgrrr, this was caused by myself editing an unsued source file in combination with ignoring the SJA1000 data sheet, sorry. The acceptance filters in fact work nicely as expected. I simply missed, that the SJA1000 needs to be in reset mode to give access to the filter registers. To change filter set...
- Thu Apr 12, 2018 1:21 pm
- Forum: Hardware
- Topic: About the CAN controller.
- Replies: 174
- Views: 151275
Re: About the CAN controller.
sure, setting up filtering within the isr works, but in my case the SJA1000 filters would well match my needs.
And reducing interrupts is always desirable...
And reducing interrupts is always desirable...
- Thu Apr 12, 2018 12:44 pm
- Forum: Hardware
- Topic: About the CAN controller.
- Replies: 174
- Views: 151275
Re: About the CAN controller.
Has anyone used the acceptance filters? For me, whatever i write to MODULE_CAN->MBX_CTRL.ACC.CODE[] and MODULE_CAN->MBX_CTRL.ACC.MASK[] seems to have no effect at all. All messages get through, even if i set the mask registers all to 0 directly in can.c, where they are initialized to 0xff (dont care...
- Fri Mar 23, 2018 1:02 pm
- Forum: General Discussion
- Topic: Custom partition table make slow boot
- Replies: 13
- Views: 6535
Re: Custom partition table make slow boot
executing ESP_LOGI( TAG, "Initializing NVS..") esp_err_t err = nvs_flash_init(); if (err == ESP_ERR_NVS_NO_FREE_PAGES) { // NVS partition was truncated and needs to be erased // Retry nvs_flash_init ESP_ERROR_CHECK(nvs_flash_erase()); err = nvs_flash_init(); } ESP_ERROR_CHECK(err); ESP_LOGI( TAG, "N...
- Tue Mar 20, 2018 10:18 am
- Forum: General Discussion
- Topic: Failed to enable secure boot / encrypted flash
- Replies: 8
- Views: 5159
Re: Failed to enable secure boot / encrypted flash
Hi Angus,
Best
Markus
well, it was there. As I did not erase the flash, there was a somewhat unclear situation. The SPIFFS contains configuration data, the app never writes to it by now.Out of curiosity, were you flashing a SPIFFS partition the first (failed) time as well?
Best
Markus
- Mon Mar 19, 2018 10:16 am
- Forum: General Discussion
- Topic: Failed to enable secure boot / encrypted flash
- Replies: 8
- Views: 5159
Re: Failed to enable secure boot / encrypted flash
Finally the following procedure worked well: #!/bin/bash echo erase.... make erase_flash if (( $? > 0 )) ; then echo erase flash failed exit fi echo spiffs.... python /home/esp32/esp/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 115200 write_flash -z 0xb000...
- Thu Mar 15, 2018 11:51 am
- Forum: General Discussion
- Topic: Failed to enable secure boot / encrypted flash
- Replies: 8
- Views: 5159
Re: Failed to enable secure boot / encrypted flash
Hi Angus Thanks for commenting, I really appreciate your help. The board in use is self made. Around a ESP-WROOM-32 module there is a power supply for a wider supply voltage range, an I2C port expander, level IO, RS232, CAN, sd-card support among others. Regarding reset, boot, flashing: The circuitr...