Search found 303 matches

by jcsbanks
Fri Aug 23, 2019 7:59 am
Forum: ESP-IDF
Topic: Variables losing value
Replies: 1
Views: 937

Re: Variables losing value

I am only looking on a phone, but the global is a pointer and the string it points to is probably going out of scope when you delete after getting the JSON. I would investigate the lifetime and location of the string, and who is supposed to allocate and free memory. https://github.com/DaveGamble/cJS...
by jcsbanks
Tue Aug 20, 2019 6:54 pm
Forum: General Discussion
Topic: Prevent Modification of NVS Data
Replies: 6
Views: 2089

Re: Prevent Modification of NVS Data

You could encrypt it.
by jcsbanks
Fri Aug 16, 2019 8:30 am
Forum: ESP-IDF
Topic: esp_timer_start_once - LoadProhibited on the second timer_armed call 1 in a million times
Replies: 2
Views: 1426

Re: esp_timer_start_once - LoadProhibited on the second timer_armed call 1 in a million times

Thanks ESP_Angus. I had solved it by deleting and making a new timer instead of reusing it. Whilst this seems wasteful it meant that fewer critical sections and rechecks were needed in between timer alarm and start once and so far it is working well with heavy testing. Your input was useful to under...
by jcsbanks
Tue Aug 06, 2019 8:18 pm
Forum: ESP-IDF
Topic: Persistent RAM disk
Replies: 10
Views: 3579

Re: Persistent RAM disk

Bear in mind that writing to flash is slow, and FATFS is slow to read and write. PSRAM is mega fast in comparison.
by jcsbanks
Sat Aug 03, 2019 2:16 pm
Forum: General Discussion
Topic: OTA update without internet/WiFi network
Replies: 12
Views: 7203

Re: OTA update without internet/WiFi network

Very nice work username. OTA_update_posthandler() works nicely. Thanks!
by jcsbanks
Wed Jul 31, 2019 9:57 am
Forum: ESP-IDF
Topic: Change memory allocating behavior for a certain component (C++)
Replies: 4
Views: 1720

Re: Change memory allocating behavior for a certain component (C++)

Not a direct solution, but sharing an experience that may help, or maybe you've covered all this and more already... I'm using heap in PSRAM with std::map and std::vector, but had some issues with std::vector where even after erase() the memory was still reserved on the heap. C++ 11 shrink_to_fit di...
by jcsbanks
Tue Jul 30, 2019 6:35 pm
Forum: ESP-IDF
Topic: esp_timer_start_once - LoadProhibited on the second timer_armed call 1 in a million times
Replies: 2
Views: 1426

esp_timer_start_once - LoadProhibited on the second timer_armed call 1 in a million times

Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled. Core 0 register dump: PC : 0x40089a1b PS : 0x00060130 A0 : 0x80081ee3 A1 : 0x3ffaf950 0x40089a1b: timer_armed at C:/msys32/home/jcsba/esp/esp-idf/components/esp32/esp_timer.c:443 A2 : 0x00000000 A3 : 0x000007e0 A4 : 0...
by jcsbanks
Fri Jul 26, 2019 2:38 pm
Forum: ESP-IDF
Topic: Change timeout of netconn connection - reads back correct value but timeout is still as originally set
Replies: 0
Views: 701

Change timeout of netconn connection - reads back correct value but timeout is still as originally set

I normally have a 10s timeout on a netconn that I use for a websocket that serves a javascript browser app. This is good because when a client disconnects disgracefully, the connection is reset and another client can connect (such as when changing between AP and STA, or between devices). However, wh...
by jcsbanks
Fri Jul 26, 2019 10:22 am
Forum: General Discussion
Topic: [NEWS] Espressif initial public offerings of stock IPO 688018
Replies: 11
Views: 8477

Re: [NEWS] Espressif initial public offerings of stock IPO 688018

Fantastic news and something like $1 billion added to the market cap this week if I understand correctly. Espressif deserve every bit of their success. Wonderful company in terms of product, support, including fixing in a really honourable way went things went wrong, which was really appreciated and...
by jcsbanks
Thu Jul 25, 2019 1:19 pm
Forum: General Discussion
Topic: Question to people wanting CanBus in the next chip version
Replies: 13
Views: 4750

Re: Question to people wanting CanBus in the next chip version

Existing systems in cars. I would not use CAN for a fully owned system as it is neither fast or cheap. Ethernet is so well supported generally with commodity hardware. Some new BMWs now have in the teens of ethernet nodes, but apart from between the gateway and OBD port it is 2 wire 100Mbps develope...

Go to advanced search