Search found 1163 matches

by ESP_Sprite
Sun Nov 19, 2017 9:22 pm
Forum: General Discussion
Topic: ring buffer RINGBUF_TYPE_ALLOWSPLIT check for splitted item?
Replies: 9
Views: 496

Re: ring buffer RINGBUF_TYPE_ALLOWSPLIT check for splitted item?

Theoretically, that could work... but at the moment, such pointer-resetting-when-empty is not implemented at the moment.
by ESP_Sprite
Sun Nov 19, 2017 3:52 pm
Forum: ESP32 SDK
Topic: Calling functions in C++ class constructors that have static instances
Replies: 2
Views: 71

Re: Calling functions in C++ class constructors that have static instances

The global constructors are called in components/esp32/cpu_start.c, function do_global_ctors, called from start_cpu0_default. Specifically, this is done outside of a thread context, and with the FreeRTOS scheduler not running yet; this means that you can create semaphores, queues, threads etc, but t...
by ESP_Sprite
Sun Nov 19, 2017 1:50 pm
Forum: General Discussion
Topic: Mass Production with ESP32
Replies: 8
Views: 639

Re: Mass Production with ESP32

Also, wrt how to stop others from reading your flash: read up on flash encryption.
by ESP_Sprite
Sun Nov 19, 2017 10:23 am
Forum: General Discussion
Topic: ring buffer RINGBUF_TYPE_ALLOWSPLIT check for splitted item?
Replies: 9
Views: 496

Re: ring buffer RINGBUF_TYPE_ALLOWSPLIT check for splitted item?

The correct answer would be 'it depends'. The ring buffer, as ring buffers tend to do, has a read and a write pointer. If the write pointer is e.g. at 500 bytes from the start of the buffer, there's no way to write 900 bytes without a split. (A 'split' essentially is what happens when the ringbuffer...
by ESP_Sprite
Sun Nov 19, 2017 10:20 am
Forum: General Discussion
Topic: Mass Production with ESP32
Replies: 8
Views: 639

Re: Mass Production with ESP32

On 1: You'd have to find a way to create a blank file, then put all the .bins in there in their expected locations... on an Unix environment, you could probably kludge something with dd and some well-chosen command line arguments. For an easier way, just flash an ESP32 module as you would normally d...
by ESP_Sprite
Sat Nov 18, 2017 5:20 pm
Forum: General Discussion
Topic: pvPortMalloc() and how "ESP-IDF FreeRTOS" solve the thread safe malloc() problem.
Replies: 6
Views: 67

Re: pvPortMalloc() and how "ESP-IDF FreeRTOS" solve the thread safe malloc() problem.

In general, the thing you're looking for is called 'thread-safe'; if something is thread-safe, it essentially means that whoever wrote it took care to accommodate for the possibility of multiple threads (possibly running on different cores) running the same code path at the same time, and that the c...
by ESP_Sprite
Sat Nov 18, 2017 1:42 pm
Forum: General Discussion
Topic: How i can use OTA and SPI flash together
Replies: 3
Views: 67

Re: How i can use OTA and SPI flash together

If you need to update a non-OTA partition, you should be able to just use the SPI flash partition read/write/erase API. Just make sure the spiffs is unmounted first.
by ESP_Sprite
Sat Nov 18, 2017 1:36 pm
Forum: ESP32 SDK
Topic: How to Link third party library in esp-idf
Replies: 3
Views: 118

Re: How to Link third party library in esp-idf

Pretty sure the way you call $(AR) in the makefile is missing an $@ somewhere...
by ESP_Sprite
Sat Nov 18, 2017 1:34 pm
Forum: ESP32 SDK
Topic: How to set rtc time
Replies: 1
Views: 18

Re: How to set rtc time

If I recall correctly, hardware doesn't support setting the RTC time. Suggest either using the 'standard' time APIs (which will automatically use a RTC delta instead of the absolute RTC time) or calculating the difference in actual RTC time and what you want it to be yourself and subtracting that fr...
by ESP_Sprite
Sat Nov 18, 2017 1:29 pm
Forum: General Discussion
Topic: SPI pullups, INT pin question
Replies: 2
Views: 19

Re: SPI pullups, INT pin question

Not sure about how Arduino controls SPI, but from a hardware PoV you're fine. First of all, INT isn't a pin that's defined in any SPI specs, so you should be able to route this to any GPIO pin you wish. Wrt pull-ups and pull-downs: it depends. The SPI hardware in the ESP32 doesn't normally let its l...

Go to advanced search