Search found 30 matches
- Wed Jan 03, 2024 5:16 am
- Forum: ESP-IDF 中文讨论版
- Topic: 【部分解决】关于link script的疑问咨询,会有keep的object被剔除
- Replies: 1
- Views: 802
Re: 关于link script的疑问咨询,会有keep的object被剔除
解决了一部分: 链接脚本中定义的 .init_fn+ 只覆盖.init_fn段和.init_fn.*端,并不覆盖.init_fn*端,宏定义应增加一个 . #define INIT_FN_EXPORT(nm, priv, level, init_func, run_core, run_stack_size, thread_priority, thread_func) \ static __attribute__((section(".init_fn." #level),used)) \ init_desc_t init_fn_##nm = { \ .name = #nm, \ .priorit...
- Wed Jan 03, 2024 2:15 am
- Forum: ESP-IDF 中文讨论版
- Topic: 【部分解决】关于link script的疑问咨询,会有keep的object被剔除
- Replies: 1
- Views: 802
【部分解决】关于link script的疑问咨询,会有keep的object被剔除
使用的为ESP32-S3-WROOM-1-N8R2模组 idfv5.2版本 我参考 https://docs.espressif.com/projects/esp-idf/en/release-v5.2/esp32s3/api-guides/linker-script-generation.html 和 https://docs.espressif.com/projects/esp-idf/en/release-v5.2/esp32s3/api-guides/startup.html 中的esp_system_init_fn用法,自己添加了link文件: [sections:plugins_d...
- Tue Sep 26, 2023 11:13 am
- Forum: ESP-IDF 中文讨论版
- Topic: UART_RXFIFO_FULL_THRHD的描述是笔误还是确实是这样?
- Replies: 0
- Views: 3186
UART_RXFIFO_FULL_THRHD的描述是笔误还是确实是这样?
在《esp32_technical_reference_manual_cn.pdf》230707版本中关于UART_RXFIFO_FULL_THRHD的描述是:
还是确实是如文档描述的用rx_flow_thrhd_h3
请确认下rx_flow_thrhd_h3是笔误,应该是UART_RX_MEM_FULL_THRHDUART_RXFIFO_FULL_THRHD 当 接 收 器 接 收 到 比 阈 值 多 的 数 据 时, 接 收 器 产 生RX-FIFO_FULL_INT_RAW 中断。阈值为 (rx_flow_thrhd_h3, rxfifo_full_thrhd)。(读/写)
还是确实是如文档描述的用rx_flow_thrhd_h3
- Thu May 31, 2018 3:59 am
- Forum: ESP-IDF 中文讨论版
- Topic: esp-idf v2.1.2偶尔出现回应包相应延迟
- Replies: 3
- Views: 8020
Re: esp-idf v2.1.2偶尔出现回应包相应延迟
下边分别是esp32上的log时间截图和wireshark运行截图
会是什么原因呢?
另外如下图,是另外一次抓到的情况,也是PC的回应随着TCP ACK负载着数据,此时esp32也是响应时间1秒多
可以看到wireshark上3121是esp32发给PC的数据包,3122是PC回应的且随着TCP ACK负载着数据,耗时只有不到30ms,但设备上响应(select可读耗时1.8s)的时间挺长会是什么原因呢?
另外如下图,是另外一次抓到的情况,也是PC的回应随着TCP ACK负载着数据,此时esp32也是响应时间1秒多
- Thu May 31, 2018 3:34 am
- Forum: ESP-IDF 中文讨论版
- Topic: esp-idf v2.1.2偶尔出现回应包相应延迟
- Replies: 3
- Views: 8020
esp-idf v2.1.2偶尔出现回应包相应延迟
我们使用ESP32的一个设备,最近测试中发现一个问题,偶尔会出现PC端TCP已经回应了数据,但ESP32端不能立刻收到,需要延迟一段时间才能收到,有时会延迟2-3秒,对设备的反应时间有较大的影响。 详细的情况如下: 1,ESP32 -- WiFi AP -- switch -- PC 2,ESP32的sdk为esp-idf v2.1.2,作为客户端建立了一个TCP连接,连接着PC的一个服务器程序(使用的mbedtls); 3,ESP32的设备在外部触发时,会给PC发送一包数据并等待PC的回应。 4,现在的问题是,偶尔会出现ESP32得到的回应特别慢(正常情况延迟40-100ms,但异常时可能会...
- Thu Sep 21, 2017 7:59 am
- Forum: ESP-IDF
- Topic: How to use the on-chip temperature sensor?
- Replies: 1
- Views: 6081
How to use the on-chip temperature sensor?
In esp32_technical_reference_manual, It described the temperature sensor, but just mentioned SENS_SAR_TSENS_CTRL_REG and SENS_SAR_SLAVE_ADDR3_REG, not the using process. I searched the idf sdk, and did some test: 1, In test_tsens.c: SET_PERI_REG_BITS(SENS_SAR_MEAS_WAIT2_REG, SENS_FORCE_XPD_SAR, 3, S...
- Mon Sep 18, 2017 7:01 am
- Forum: ESP-IDF
- Topic: some questions about spi_flash_mmap
- Replies: 3
- Views: 5569
Re: some questions about spi_flash_mmap
Memory-mapped reads from flash are always decrypted if flash encryption is on, that is how the flash MMU is designed. Therefore you can't use memory mapping to read from unencrypted partitions in flash, if flash encryption is on. (Or rather, you can, but such reads will produce garbage) And questio...
- Mon Sep 18, 2017 3:11 am
- Forum: ESP-IDF
- Topic: some questions about spi_flash_mmap
- Replies: 3
- Views: 5569
some questions about spi_flash_mmap
1, Will spi_flash_mmap decrypt data unconditional if Flash Encryption is on?I mean no matter the area is in partitions or not. 2, As We know, Not all of the flash is encrypted. Is it possible to save data in area which is not support now using spi_flash_write_encrypted and read them using spi_flash_...
- Tue Sep 05, 2017 10:16 am
- Forum: General Discussion
- Topic: how to set CTS RTS no connect
- Replies: 1
- Views: 4285
Re: how to set CTS RTS no connect
Try to use UART_PIN_NO_CHANGE.
By the way, in uart_set_pin, the driver use gpio_matrix to connect pins.
By the way, in uart_set_pin, the driver use gpio_matrix to connect pins.
- Tue Sep 05, 2017 6:03 am
- Forum: ESP-IDF
- Topic: Memory gets smaller and smaller
- Replies: 5
- Views: 9706
Re: Memory gets smaller and smaller
However 40K is a large amount of memory, it would be better if there is a way to turn the "memory pools" to low size. I think Kolban made up 40K in this case to illustrate the point. How much RAM are you seeing being used? There are some configurating tuning options for both WiFi and LWIP (under th...