Search found 54 matches

by KanyeKanye
Thu Dec 05, 2019 2:30 pm
Forum: ESP32 IDF
Topic: SPI HALFDUPLEX looses last bytes
Replies: 0
Views: 51

SPI HALFDUPLEX looses last bytes

I struggle with a SPI driver: my devices need some setup time between CS and CLK setup. Using command phase (command_bits>0), cs_ena_pretrans is avaliable only in HALFDUPLEX. HALFDUPLEX seems to loose some last received bytes if transaction before tx anything: // initialize spi_bus_config_t buscfg =...
by KanyeKanye
Tue Dec 03, 2019 2:05 pm
Forum: ESP32 IDF
Topic: SPI driver huge malfunction
Replies: 2
Views: 141

Re: SPI driver huge malfunction [mode "inverted", random bytes transmitted]

Thanks @ESP_Sprite for your reply I have changed mode to HALF-DUPLEX and I've added CS delay (.cs_ena_pretrans), as you suggested. Basic communication started working but sending anything messes up in communication: static void ds1390_spi_init() { spi_bus_config_t buscfg = { .miso_io_num=PIN_NUM_SPI...
by KanyeKanye
Tue Dec 03, 2019 12:21 am
Forum: ESP32 IDF
Topic: SPI driver huge malfunction
Replies: 2
Views: 141

SPI driver huge malfunction

I struggle with a huge SPI driver malfunction: Lets take DS1390 RTC (but some problems occurs with all devices I've tested). Chip supports SPI in mode 1 or 3, up to 4MHz. After receiving address it replies with corresponding bytes of datetime. static void ds1390_spi_init() { spi_bus_config_t buscfg ...
by KanyeKanye
Mon Nov 25, 2019 1:21 am
Forum: General Discussion
Topic: External Flash(s25fl127s) SPI Interface with wroom ESP32
Replies: 5
Views: 354

Re: External Flash(s25fl127s) SPI Interface with wroom ESP32

Its not so easy and no one will provide you code you need I think.
Why dont you just buy ESP32-WROOM-32D 128Mbit version?
by KanyeKanye
Mon Nov 04, 2019 11:58 am
Forum: General Discussion
Topic: Good looking display
Replies: 2
Views: 290

Good looking display

I am looking for any good looking display solution. Popular lcd tft displays, that i could connect via FT80x, have terrible contrast and looking angles. Monochrome oled displays (like WEO012864K) looks good but are relatively small and mostly described as end of production. Displays from cellphones ...
by KanyeKanye
Sun Sep 29, 2019 11:07 pm
Forum: ESP32 IDF
Topic: SDMMC Thread safety
Replies: 2
Views: 270

Re: SDMMC Thread safety

As suggested, adding mutex semaphore helped and fixed problems
by KanyeKanye
Thu Sep 26, 2019 9:20 pm
Forum: General Discussion
Topic: ESP_LOG giving a panic error
Replies: 7
Views: 336

Re: ESP_LOG giving a panic error

Pins GPI36, GPI39, GPI34, GPI35 have no internal pull resistors (and if even they would, you disabled them).
When floating, lots of interrupts is triggered what cause karnel panic.

For logging use:

Code: Select all

ets_printf("ISR");
by KanyeKanye
Thu Sep 26, 2019 5:31 pm
Forum: General Discussion
Topic: [JavaScript] JSON parsing faster alternative
Replies: 6
Views: 461

Re: [JavaScript] JSON parsing faster alternative

I've decided to send raw data. Bytes are now read and send to the browser without any parsing. That way I could use larger buffers and read more from memory to send. Whats more I know exactly how much data will be send.
On browser, javascript side I parse data using DataView, getUint32, getInt8
by KanyeKanye
Thu Sep 26, 2019 5:06 pm
Forum: ESP32 IDF
Topic: How to detect short circuit?
Replies: 1
Views: 178

Re: How to detect short circuit?

void initialise() { gpio_pad_select_gpio(PIN_NUM); gpio_set_direction(PIN_NUM, GPIO_MODE_INPUT); gpio_set_pull_mode(PIN_NUM, GPIO_PULLUP_ONLY); xTaskCreatePinnedToCore(&task, "task", 2048, NULL, TASK_PRIORITY, NULL, TASK_CORE_ID); } void task(void *pvParameters) { TickType_t xLastWakeTime = xTaskGe...
by KanyeKanye
Thu Sep 26, 2019 4:25 pm
Forum: ESP32 IDF
Topic: SDMMC Thread safety
Replies: 2
Views: 270

SDMMC Thread safety

I use sd card for recording and storing some important process data. On core 1, every 200ms, I read one sector (using sdmmc_read_sectors), append 32bytes of new data and save (using sdmmc_write_sectors) the whole sector back. On core 0 I take care of wifi communication: When user asks for data I rea...

Go to advanced search