Search found 1170 matches

by ESP_Sprite
Mon Nov 20, 2017 4:50 pm
Forum: General Discussion
Topic: some error about esp32 for sd driver
Replies: 3
Views: 38

Re: some error about esp32 for sd driver

Check your setting of io_conf.pin_bit_mask in spi_master2.c. You put a GPIO number in there (18), but you should put a bitmask in there (1<<18).
by ESP_Sprite
Mon Nov 20, 2017 2:37 pm
Forum: General Discussion
Topic: What files are required for flashin
Replies: 4
Views: 51

Re: What files are required for flashin

Those are the files you need indeed. (And the project name is set in the main Makefile in the root of your project; I think you did not change it when you copied the app template hence your main binary is called app-template.bin.) If you run 'make' without anything else in the project directory (and...
by ESP_Sprite
Mon Nov 20, 2017 1:06 pm
Forum: ESP32 SDK
Topic: is here a problem of heap_region in freertos library in IDF?
Replies: 7
Views: 211

Re: is here a problem of heap_region in freertos library in IDF?

Yes, the error is pretty obvious. C strings consist of a number of characters terminated by a 0-character. Strlen gives the amount of 'real' characters in the string, excluding the 0-character. You then use that count to allocate new memory. However, strcpy copies the string and terminates it with a...
by ESP_Sprite
Mon Nov 20, 2017 1:01 pm
Forum: General Discussion
Topic: new release 2.1.1 ?
Replies: 4
Views: 51

Re: new release 2.1.1 ?

Ah, maybe I'm too used to the China-expat life... it's used for Chinese New Year here, and that's what I meant.
by ESP_Sprite
Mon Nov 20, 2017 11:22 am
Forum: ESP32 SDK
Topic: mismatch vTaskDelay and cycle count using XTHAL_GET_CCOUNT() ?
Replies: 2
Views: 28

Re: mismatch vTaskDelay and cycle count using XTHAL_GET_CCOUNT() ?

I tracked it down in the FreeRTOS code; it seems to be an artifact of how FreeRTOS works. Essentially, calling vTaskDelay(xTicksToDelay) will mark the task as sleeping, to be woken up at (xTickCount + xTicksToDelay), and forces a yield. The task is eventually unblocked in the tick function, which wi...
by ESP_Sprite
Mon Nov 20, 2017 11:01 am
Forum: General Discussion
Topic: Set Number of Pulses from MCPWM?
Replies: 2
Views: 26

Re: Set Number of Pulses from MCPWM?

What you may be able to do is connect the pulse counter peripheral to the output pin of the MCPWM pin and generate an interrupt after n cycles that way. However, note that depending on your pulse frequency and what the ESP32 is doing, you may run the risk of getting to the ISR too late and accidenta...
by ESP_Sprite
Mon Nov 20, 2017 10:59 am
Forum: General Discussion
Topic: new release 2.1.1 ?
Replies: 4
Views: 51

Re: new release 2.1.1 ?

2.1.1 is meant as a bugfix release of 2.1; the WiFi bug has been fixed and iirc there have been some fixes in BT as well. It has nothing to do with the v3.0 release, which we're still actively working on. v3.0 has slipped schedule a bit (mostly because we'd rather ship a complete and stable version ...
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: 506

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: [Answered]: Calling functions in C++ class constructors that have static instances
Replies: 4
Views: 99

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: 669

Re: Mass Production with ESP32

Also, wrt how to stop others from reading your flash: read up on flash encryption.

Go to advanced search