Search found 62 matches

by rfleming
Thu Dec 03, 2020 7:37 am
Forum: IDEs for ESP-IDF
Topic: EthKit v1.2 Debugging issues
Replies: 4
Views: 4740

EthKit v1.2 Debugging issues

Hi all, I have been using the esp32 variants for some-time now and I have finally decided to try and setup the debugging tools so I dont have to use the printf/delay option anymore for analysing code. I have an Ethernetkit v1.2 that comes with the on-board jtag, having started with several issues my...
by rfleming
Sun Nov 22, 2020 4:34 am
Forum: ESP-IDF
Topic: Can I write directly to flash/partition without fatfs/wear lvl etc drivers?
Replies: 11
Views: 10342

Re: Can I write directly to flash/partition without fatfs/wear lvl etc drivers?

Even better...

examples/storage/partition_api/partition_ops

Here it provides an example how to write/read/erase to a partition. I only a little concerned about how the underlining write operation works though. I'll put this into a new thread as this once has now gone a little out of scope.
by rfleming
Sun Nov 22, 2020 2:59 am
Forum: ESP-IDF
Topic: Can I write directly to flash/partition without fatfs/wear lvl etc drivers?
Replies: 11
Views: 10342

Re: Can I write directly to flash/partition without fatfs/wear lvl etc drivers?

Technically, the flash in an ESP32 module is an 'external IC' as in the flash is not on the die itself, so in that aspect it's more-or-less the same as you're used to. The difference is that the ESP32 has some advanced caching that transparently can allow memory access to the chip, so it's not advi...
by rfleming
Thu Nov 19, 2020 6:54 am
Forum: ESP-IDF
Topic: Can I write directly to flash/partition without fatfs/wear lvl etc drivers?
Replies: 11
Views: 10342

Re: Can I write directly to flash/partition without fatfs/wear lvl etc drivers?

Thanks for the info Sprite. Our devices have battery backup and spend most of their life asleep. So while it is possible that a few of these units may have these issues triggered from power cycles or similar, its more likely a cause from something else. I'll have a crack and writing directly to to t...
by rfleming
Wed Nov 18, 2020 11:19 pm
Forum: ESP-IDF
Topic: Problems installing IDF 4.1
Replies: 2
Views: 2734

Re: Problems installing IDF 4.1

I can only comment on the final point about ncurses. I don't have a solution for this but my work around was to comment out this line in the requirements file. Once done the tools work fine and you get no more complaints.
by rfleming
Wed Nov 18, 2020 9:03 am
Forum: ESP-IDF
Topic: Can I write directly to flash/partition without fatfs/wear lvl etc drivers?
Replies: 11
Views: 10342

Can I write directly to flash/partition without fatfs/wear lvl etc drivers?

Hi All, I have been running into "bugs" in the FATFS implmentation of the driver. This is directly caused from the way I write to the driver using it in ways that it shouldn't be used. My project requires me to use 1MB of storage and I would prefer not to use FATFS as I have ran into issues with it ...
by rfleming
Tue Oct 27, 2020 4:49 am
Forum: ESP-IDF
Topic: Generate rsa 2048b pem ON the esp32?
Replies: 2
Views: 4545

Re: Generate rsa 2048b pem ON the esp32?

Thanks for the reply!

After posting this I found a git repo that someone built around the mbed tls libraries in esp-idf toolchain.

https://github.com/telliottosceola/mbed ... m_key_pair

To be honest I am not quite sure on how the generation required the N, P, Q etc terms.

Cheers,
Ryan.
by rfleming
Tue Oct 27, 2020 12:03 am
Forum: ESP-IDF
Topic: Generate rsa 2048b pem ON the esp32?
Replies: 2
Views: 4545

Generate rsa 2048b pem ON the esp32?

Hi all, I am pretty sure I know the answer to this, but no reason not to ask I guess... I have recently ran into a project that requires me to generate the a key pair on the esp32 itself. Every example I have seen thus far shows examples of doing this externally then embedding the file in the firmwa...
by rfleming
Tue Sep 29, 2020 7:33 am
Forum: ESP-IDF
Topic: Watchdog stuck on CPU 0
Replies: 3
Views: 3394

Re: Watchdog stuck on CPU 0

bump. I managed to replicate this in a small example. It looks like if wifi is enabled and the device goes to sleep, it gets stuck. My example is more or less a stress test to see how long it takes to fail. In my app, my unit will go to sleep for ~2 mins and be awake for 10s. Within that 10s wifi ma...
by rfleming
Thu Sep 24, 2020 10:31 am
Forum: ESP-IDF
Topic: Watchdog stuck on CPU 0
Replies: 3
Views: 3394

Re: Watchdog stuck on CPU 0

This was replicated on both esp-idf v4.0 and v4.1 I dont believe I am doing anything special. I am running my wifi in AP+STA mode and everything works OK for a few weeks, then it just fails :/ I am happy to send you my code for a look over and outline specific locations to make it easier through som...