Search found 110 matches

by dmaxben
Thu Oct 02, 2025 9:30 pm
Forum: Hardware
Topic: ESP32-C6 GPIO0 issue
Replies: 2
Views: 1872

Re: ESP32-C6 GPIO0 issue

Figured it out! I'm stupid...

Apparently if you do not manually set .bus_off_indicator to disabled (-1), it defaults to enabled , and defaults to GPIO0.

Once I set the bus_off_indicator output to -1, everything worked perfectly.

/* Node 1 config */
twai_onchip_node_config_t cfg1 = {
.io_cfg ...
by dmaxben
Thu Oct 02, 2025 2:45 am
Forum: Hardware
Topic: ESP32-C6 GPIO0 issue
Replies: 2
Views: 1872

ESP32-C6 GPIO0 issue

Is there something special about GPIO-0 on the ESP32-C6? Specifically the ESP32-C6-MINI-1-N4. Using ESP-IDF v5.5.1.

It does not mention anything in the datasheet, it is not a strapping pin.

I am building a device with 3 CAN busses. I know that the ESP32-C6 only has two TWAI controllers, so im ...
by dmaxben
Tue Aug 02, 2022 12:02 pm
Forum: ESP-IDF
Topic: ESP32 CAN driver multiframe not working
Replies: 1
Views: 2134

Re: ESP32 CAN driver multiframe not working

Im not sure what you're asking...

Classical CAN only allows 8 bytes max payload per message.

For messages with >8 bytes payload, you need to use CAN-FD (which is not supported by the ESP32's internal CAN controller).

Regarding the filtering, you dont have to use the hardware filters...you can ...
by dmaxben
Thu Jan 13, 2022 2:41 pm
Forum: General Discussion
Topic: SPI pullups, INT pin question
Replies: 4
Views: 15156

Re: SPI pullups, INT pin question


Hey can anyone help me interfacing esp32 with mcp2515 with tja1050 transceiver module.


If you are only working with one CAN bus, you dont need an MCP2515. The ESP32 already has one CAN controller built in.

All you need is the TJA1050 wired directly to the ESP32. Search "TWAI" in the ESP IDF ...
by dmaxben
Mon Jan 10, 2022 5:39 pm
Forum: ESP-IDF
Topic: sha256 calc of SPIFFS fails with encrypted flash
Replies: 5
Views: 8013

Re: sha256 calc of SPIFFS fails with encrypted flash

Finally had a chance to mess around with this...in case anyone else is curious...

code is sloppy and could be condensed...and of course be sure add your own stuff to check return/error codes.

Also this code assumes your SPIFFS partition size is a multiple of 1024 obviously, otherwise you can add ...
by dmaxben
Tue Dec 14, 2021 12:55 pm
Forum: ESP-IDF
Topic: sha256 calc of SPIFFS fails with encrypted flash
Replies: 5
Views: 8013

Re: sha256 calc of SPIFFS fails with encrypted flash

Yes that api uses memory mapped reads which are always tied to flash encryption, so it would have to be reworked to use raw flash reads for unencrypted partitions.
Is there any documentation or sample code on using the SHA hardware engine for raw hardware reads?
by dmaxben
Mon Dec 13, 2021 11:17 pm
Forum: ESP-IDF
Topic: sha256 calc of SPIFFS fails with encrypted flash
Replies: 5
Views: 8013

Re: sha256 calc of SPIFFS fails with encrypted flash

My suspicion was confirmed as correct.

I read out the [unencrypted] SPIFFS from the encrypted unit, then I manually encrypted that SPIFFS bin using espsecure.py with the same key I used to encrypt the app-flash, then flashed that encrypted SPIFFS bin back into the ESP32.

Then I asked the ESP32 to ...
by dmaxben
Mon Dec 13, 2021 9:10 pm
Forum: ESP-IDF
Topic: sha256 calc of SPIFFS fails with encrypted flash
Replies: 5
Views: 8013

sha256 calc of SPIFFS fails with encrypted flash

There appears to be a problem with esp_partition_get_sha256 when requesting the sha256 hash of a SPIFFS partition on an ESP32 that has flash encryption enabled.

Yes, I know that even with flash encryption enabled, SPIFFS encryption is not supported.

That is fine, however I believe the problem is ...
by dmaxben
Tue Nov 23, 2021 5:58 pm
Forum: ESP-IDF
Topic: Check RMT Rx level before RMT Tx?
Replies: 0
Views: 3334

Check RMT Rx level before RMT Tx?

Im using the RMT peripheral to bitbang a mult-master single-wire databus that uses CSMA/NDA to control arbitration and prevent collisions if two nodes attempt to Tx simultaneously.

I have it working for Tx/Rx, but Im having trouble with how to setup bus idle verification.

The End-Of-Frame marker ...
by dmaxben
Wed Nov 03, 2021 5:38 pm
Forum: Documentation
Topic: [Prerelease] ESP32­S3­WROOM­1 & ESP32­S3­WROOM­1U Datasheet
Replies: 9
Views: 52850

Re: [Prerelease] ESP32­S3­WROOM­1 & ESP32­S3­WROOM­1U Datasheet

Is the ESP32-S3 "mini" module datasheet available yet?

Go to advanced search