Search found 21 matches

by jas39_
Thu Mar 04, 2021 9:40 pm
Forum: ESP-IDF
Topic: Modbus TCP Implementation
Replies: 36
Views: 35945

Re: Modbus TCP Implementation

@Esp_alisitsyn,
Do you have a plan to push your MR to github? This bug remains in v4.3-beta
by jas39_
Sat Jan 30, 2021 1:35 pm
Forum: ESP-IDF
Topic: Design flow with SecureBoot and FlashEncryption enabled
Replies: 3
Views: 3692

Re: Design flow with SecureBoot and FlashEncryption enabled

The reason for my initial fail must have been a failed write in step 2. Secure boot key is known and burnt in BLK2 resulting in an unknown key.
by jas39_
Sat Jan 30, 2021 12:08 pm
Forum: ESP-IDF
Topic: Design flow with SecureBoot and FlashEncryption enabled
Replies: 3
Views: 3692

Re: Design flow with SecureBoot and FlashEncryption enabled

When taking an encrypted device and reflashing everything nvs partitions must be re-initialized: All encrypted nvs partitions needs to be initialized so that they read 0xff after decryption. This is done by creating a file with all 0xff of the proper length, encode it using the key and address and t...
by jas39_
Thu Jan 28, 2021 7:56 pm
Forum: ESP-IDF
Topic: Design flow with SecureBoot and FlashEncryption enabled
Replies: 3
Views: 3692

Re: Design flow with SecureBoot and FlashEncryption enabled

The above process works, at least when flashed on an un-encrypted device, letting it self-encrypt, and doing sub-sequent writes with encrypted files to the bootloader, partition table, ota and app.
by jas39_
Thu Jan 21, 2021 9:16 pm
Forum: IDEs for ESP-IDF
Topic: Anyone managed to get debugging working with IDF 4.1 / VS Code / Windows
Replies: 25
Views: 27425

Re: Anyone managed to get debugging working with IDF 4.1 / VS Code / Windows

Thats a great step-by-step! Could you please also add what your launch.jso looks like? I think I've messed mine up.
by jas39_
Tue Jan 19, 2021 10:29 pm
Forum: ESP-IDF
Topic: Design flow with SecureBoot and FlashEncryption enabled
Replies: 3
Views: 3692

Design flow with SecureBoot and FlashEncryption enabled

I'm having a commercial product out based on ESP32 where I have secure flash and OTA updates enabled. As volumes now grows I would like to enable the secure boot for a new generation based on idf 4.2. I would like to be able to be able regularly reflash my internal boards but keep them as close to t...
by jas39_
Sun Dec 06, 2020 12:35 pm
Forum: ESP-IDF
Topic: Modbus TCP Implementation
Replies: 36
Views: 35945

Re: Modbus TCP Implementation

@ESP_alisitsyn, I think I've found an issue with the the code. I have a multi-region setup where I also have a mix of 16 and 32 bit registers. This means that one memory region can be followed by another without an "empty" address in between but with different read/write sizes. The current check to ...
by jas39_
Wed Nov 11, 2020 6:46 pm
Forum: ESP-IDF
Topic: Modbus TCP Implementation
Replies: 36
Views: 35945

Re: Modbus TCP Implementation

Looks good, and I can have multiple areas defined. Would be great to have each area defined with a memory pointer to one "read area" and one "write area" in the call. And using them accordingly in the read and write functions. Then you can avoid overwriting results if not wanted. Setting the memory ...
by jas39_
Sat Nov 07, 2020 7:25 pm
Forum: ESP-IDF
Topic: Modbus TCP Implementation
Replies: 36
Views: 35945

Re: Modbus TCP Implementation

I'm definitely interested to help out verifying your code
by jas39_
Thu Oct 29, 2020 7:23 pm
Forum: ESP-IDF
Topic: Modbus TCP Implementation
Replies: 36
Views: 35945

Re: Modbus TCP Implementation

I had to extend the current implementation of mbc_serial_slave.c and mbc_tcp_slave.c by using a linked list of memory areas. It's a hack for now.