Search found 108 matches

by dmaxben
Tue Aug 02, 2022 12:02 pm
Forum: ESP-IDF
Topic: ESP32 CAN driver multiframe not working
Replies: 1
Views: 1757

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 just h...
by dmaxben
Thu Jan 13, 2022 2:41 pm
Forum: General Discussion
Topic: SPI pullups, INT pin question
Replies: 4
Views: 13716

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 documen...
by dmaxben
Mon Jan 10, 2022 5:39 pm
Forum: ESP-IDF
Topic: sha256 calc of SPIFFS fails with encrypted flash
Replies: 5
Views: 7087

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 an ...
by dmaxben
Tue Dec 14, 2021 12:55 pm
Forum: ESP-IDF
Topic: sha256 calc of SPIFFS fails with encrypted flash
Replies: 5
Views: 7087

Re: sha256 calc of SPIFFS fails with encrypted flash

WiFive wrote:
Tue Dec 14, 2021 5:18 am
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: 7087

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 ca...
by dmaxben
Mon Dec 13, 2021 9:10 pm
Forum: ESP-IDF
Topic: sha256 calc of SPIFFS fails with encrypted flash
Replies: 5
Views: 7087

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 whe...
by dmaxben
Tue Nov 23, 2021 5:58 pm
Forum: ESP-IDF
Topic: Check RMT Rx level before RMT Tx?
Replies: 0
Views: 3043

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 for...
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: 49732

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

Is the ESP32-S3 "mini" module datasheet available yet?
by dmaxben
Wed Nov 03, 2021 5:35 pm
Forum: General Discussion
Topic: CAN-BUS port reading with ESP32 and MCP2515_CAN module
Replies: 2
Views: 5098

Re: CAN-BUS port reading with ESP32 and MCP2515_CAN module

You dont need to use an MCP2515. Just use the ESP32's internal native SJA1000 CAN controller. Much easier to use the ESP32's internal CAN peripheral, unless you need to connect to multiple CAN busses at once (in that case you'll need to use the MCP2515). Search "TWAI" (two-wire-automotive-interface)...
by dmaxben
Wed Oct 20, 2021 12:46 pm
Forum: ESP-IDF
Topic: simple spi with multiple devices
Replies: 10
Views: 10435

Re: simple spi with multiple devices

and yes you can use an SD card reader and also the CAN interface on the same bus. You are going to have to have a cable select pin set up for each device and when you want that device to listen you turn off the select pin for that device. When finished turn it back on. errr I think it's off is sele...