Ok, this solution works , but i need 2 read operation instead 1, because i2c_reset_rx_fifo is useless. In the following code, always the loop end with 1 retry. The following code works with 2 I2C slaves, with a CRC16 check.
Write 1Kb from master to slave, and read 1Kb from slave to master. With ...
Search found 26 matches
- Thu Jun 26, 2025 3:35 pm
- Forum: ESP-IDF
- Topic: I2C master and slave
- Replies: 1
- Views: 158
- Wed Jun 25, 2025 1:17 pm
- Forum: ESP-IDF
- Topic: I2C master and slave
- Replies: 1
- Views: 158
I2C master and slave
I want to connect two ESP32S3 devices with an I2C bus. In the future I want to be able to add another ESP32S3 to the bus as a slave.
I am using the IDF 5.2.2 toolchain.
The only examples that are out there use the old API, and I made some code that when it connects a master and a slave it works. The ...
I am using the IDF 5.2.2 toolchain.
The only examples that are out there use the old API, and I made some code that when it connects a master and a slave it works. The ...
- Tue Jun 10, 2025 8:38 am
- Forum: ESP-IDF
- Topic: Fatfsgen.py fails to create bin partition
- Replies: 4
- Views: 184
Re: Fatfsgen.py fails to create bin partition
Ok, I generated a mountable image: as Sprite mentioned, fatfsgen is only for readonly images. If you want to generate a R/W mountable image you need to use wl_fatfsgen:
wl_fatfsgen.py --output_file figa.bin --partition_size 0x90000 --sector_size 4096 --use_default_datetime fatfs_temp
(Where ...
wl_fatfsgen.py --output_file figa.bin --partition_size 0x90000 --sector_size 4096 --use_default_datetime fatfs_temp
(Where ...
- Tue Jun 10, 2025 7:43 am
- Forum: ESP-IDF
- Topic: Fatfsgen.py fails to create bin partition
- Replies: 4
- Views: 184
Re: Fatfsgen.py fails to create bin partition
Hi, Sprite, thanks for the answer.
My sdkconfig configuration about wear levelling is that:
#
# Wear Levelling
#
# CONFIG_WL_SECTOR_SIZE_512 is not set
CONFIG_WL_SECTOR_SIZE_4096=y
CONFIG_WL_SECTOR_SIZE=4096
# end of Wear Levelling
Using the ESP-IDF Menuconfig, i found this:
WL_SECTOR_MODE ...
My sdkconfig configuration about wear levelling is that:
#
# Wear Levelling
#
# CONFIG_WL_SECTOR_SIZE_512 is not set
CONFIG_WL_SECTOR_SIZE_4096=y
CONFIG_WL_SECTOR_SIZE=4096
# end of Wear Levelling
Using the ESP-IDF Menuconfig, i found this:
WL_SECTOR_MODE ...
- Sat Jun 07, 2025 3:21 pm
- Forum: ESP-IDF
- Topic: Fatfsgen.py fails to create bin partition
- Replies: 4
- Views: 184
Fatfsgen.py fails to create bin partition
I have a fatfs partition in my controller. If the partition is initialized and written by the controller it works really well.
Now i want write this partition with esptool. Before, i need to create the binary fatfs partition, using fatfsgen: i create a folder with the file i need and launch this ...
Now i want write this partition with esptool. Before, i need to create the binary fatfs partition, using fatfsgen: i create a folder with the file i need and launch this ...
- Thu Apr 24, 2025 3:20 pm
- Forum: ESP-IDF
- Topic: MDNS and Ethernet DHCP Server
- Replies: 0
- Views: 88
MDNS and Ethernet DHCP Server
MDNS announces are made on GOT_IP event. If the device is DHCP server however the GOT_IP event happens before any other host connects. Therefore, is it possible to have an event or a callback from the DHCP server that tells me the assignment of a new address, to be able to force a new MDNS announce ...
- Tue Mar 11, 2025 7:10 pm
- Forum: ESP-IDF
- Topic: Toolchain 5.3 compilation error
- Replies: 2
- Views: 646
Re: Toolchain 5.3 compilation error
I completely uninstalled everything, and reinstalled VisualGDB, and updated to toolchain 5.4 (actually it works fine, I thought the reprogramming issue was due to the compatibility of the latest toolchain with VisualGDB).
The only TERRIBLE thing is that with the update to the latest version they ...
The only TERRIBLE thing is that with the update to the latest version they ...
- Tue Mar 11, 2025 2:57 pm
- Forum: ESP-IDF
- Topic: Toolchain 5.3 compilation error
- Replies: 2
- Views: 646
Toolchain 5.3 compilation error
Yesterday I made the mistake of updating the toolchain to version 5.4, which is not fully compatible with VisualGDB. After doing so, I tried to install version 5.3. When compiling the toolchain, an error is thrown on the usb_dwc_hal.c file. The error is in the included file usb_dwc_ll.h at line 224 ...
- Thu Feb 20, 2025 11:39 am
- Forum: ESP-IDF
- Topic: MDNS mdns_query_ptr don't give results
- Replies: 5
- Views: 1689
Re: MDNS mdns_query_ptr don't give results
>mdns_query_ptr("_ServiceA_60667", "_udp", 60667, 100, &results);
>mdns_query_ptr("_ServiceB_60668", "_udp", 60668, 100, &results);
The third argument is time in milliseconds to wait for answer, not the port number.
You can check the details of this function here.
https://docs.espressif.com ...
- Wed Feb 19, 2025 9:30 pm
- Forum: ESP-IDF
- Topic: MDNS mdns_query_ptr don't give results
- Replies: 5
- Views: 1689
Re: MDNS mdns_query_ptr don't give results
>mdns_query_ptr("ServiceB", "_tcp", 60668, 100, &results);
The first argument of mdns_query_ptr is the service type.
The service type will have a name like this.
_service_60668
_http_8080
The third argument is time in milliseconds to wait for answer.
Service name is service type + protocol ...