Search found 9 matches

by fanhuanji
Sat Apr 22, 2023 8:18 am
Forum: ESP-IDF
Topic: Is there a way to trigger download boot mode by software?
Replies: 5
Views: 4311

Re: Is there a way to trigger download boot mode by software?

You can try: REG_WRITE(RTC_CNTL_OPTION1_REG, RTC_CNTL_FORCE_DOWNLOAD_BOOT); esp_restart(); (Note you probably need to include some headers to make that work, I'll leave that to you.) :D Thanks. It works linke a charm. #include "esp_system.h" #include "soc/rtc_cntl_reg.h" /** * @brief Software trigg...
by fanhuanji
Fri Apr 21, 2023 2:40 pm
Forum: ESP-IDF
Topic: Is there a way to trigger download boot mode by software?
Replies: 5
Views: 4311

Re: Is there a way to trigger download boot mode by software?

ESP_Sprite wrote:
Mon Apr 17, 2023 1:42 am
On which chip? The ESP32 doesn't have this, later chips (S2/S3, C series) sometimes do.
On ESP32 S3 and C3.
Thanks for reply. Could you give some example please?
Some code snippet will help a lot.
by fanhuanji
Sat Apr 15, 2023 2:03 pm
Forum: ESP-IDF
Topic: Is there a way to trigger download boot mode by software?
Replies: 5
Views: 4311

Is there a way to trigger download boot mode by software?

The only way to switch to download mode I've found was to pull some pin physically during power up.
Is there a method to trigger download mode by app?
by fanhuanji
Wed Jan 05, 2022 12:10 pm
Forum: ESP-IDF 中文讨论版
Topic: 求助 I2S Master bits_per_sample != bits_per_chan 情况下工作不正常
Replies: 0
Views: 3841

求助 I2S Master bits_per_sample != bits_per_chan 情况下工作不正常

问题描述: 连接Mic并设置I2S后工作不正常,想请教下是不是我参数设置有误。 已知信息: Mic输出的音频为24位大端数据,为标准Philips格式(数据延后一个clk),且要求channel为32位宽(datasheet要求SCK频率为WS的64倍)。 现象: 使用逻辑分析仪抓包发现每个channel的sck数量始终等于代码中定义的采样深度(bits_per_sample),与通道深度无关(bits_per_chan)。例如(bits_per_sample=24,bits_per_chan=32)时抓包发现左声道只有24个clk,bits_per_sample=16时左声道只有16个cl...
by fanhuanji
Fri Nov 15, 2019 12:54 pm
Forum: General Discussion
Topic: RMT based NeoPixels (WS2812B) flickers when WiFi is used
Replies: 24
Views: 41387

Re: RMT based NeoPixels (WS2812B) flickers when WiFi is used

I also had a similar problem while driving SK6812 leds with the RMT interface. Root cause for me was that the dynamic frequency scaling being set from 40MHz to 160MHz while RMT was attended to use 80MHz APB clock. When CPU clock dropped to 40MHz the automatic APB divider could not keep up and RMT r...
by fanhuanji
Mon Mar 05, 2018 2:37 pm
Forum: Showcase
Topic: ESP32 TFT display library
Replies: 74
Views: 554727

Re: ESP32 TFT display library

Dear all: How to display Chinese on the LCD? How to store the Chinese font into flash? Thank you! oh, for the storage, you can refer to "esp-idf\examples\wifi\wpa2_enterprise\main\" in component.mk wpa2_enterprise_main.c, there shows a way to include binary files into the program binary, in that pr...
by fanhuanji
Mon Mar 05, 2018 2:29 pm
Forum: Showcase
Topic: ESP32 TFT display library
Replies: 74
Views: 554727

Re: ESP32 TFT display library

Dear all: How to display Chinese on the LCD? How to store the Chinese font into flash? Thank you! you can treat that Chinese character as a bitmap(1bit/pixel), like this, search HZK16 or “LED 点阵字库” and you may find "https://blog.twofei.com/embedded/hzk.html", wish this may help U. :) 把中文生成点整字库,色深一位...
by fanhuanji
Mon Feb 19, 2018 9:32 am
Forum: Showcase
Topic: ESP32 TFT display library
Replies: 74
Views: 554727

Re: ESP32 TFT display library

I have some plans to update the library to be able to use 3-wire SPI displays, probably early next month. At the moment, it is not possible. thanks, but i really want to know how to do that? is in my former reply i mentioned a ips lcd, that needs me to transfer at least 1'229'760bytes pixel data pe...
by fanhuanji
Tue Feb 13, 2018 7:13 am
Forum: Showcase
Topic: ESP32 TFT display library
Replies: 74
Views: 554727

Re: ESP32 TFT display library

Very well, this library is easy to use, but i'm now tring to drive a 3-wire spi IPS LCD, and it has to use 9-bit spi(it doesn't have D/C line, and i don't want to use DBI Type B Parallel Interface due to that needs to much I/O ports). as there has to be a leading bit to indicate D/C(data or command)...