Search found 18 matches

by FrancisL
Thu Jul 02, 2020 11:46 am
Forum: ESP-IDF
Topic: AP mode with a netmask == (255,255,0,0)
Replies: 1
Views: 241

Re: AP mode with a netmask == (255,255,0,0)

Found out the source of the problem: there is a conditional statement
#ifdef USE_CLASS_B_NET
....
in add_offer_options (dhcpserver.c) that forces the subnet mask what ever the value defined in ip_info.

Modifying this par allows to use the specified subnet mask.
by FrancisL
Wed Jul 01, 2020 6:06 pm
Forum: ESP-IDF
Topic: AP mode with a netmask == (255,255,0,0)
Replies: 1
Views: 241

AP mode with a netmask == (255,255,0,0)

Hello,
I need to set a netmask == (255,255,0,0) in AP mode. The initialization is ok, and if I read back the current netmask, it is correct (255,255,0,0). But when I connect a WiFi client, it gets (255,255,255,0) as netmask. Any idea to workaround this problem?
Thanks,
Francis
by FrancisL
Sun Apr 12, 2020 5:36 pm
Forum: Hardware
Topic: SPI slave by register configuration
Replies: 8
Views: 3771

Re: SPI slave by register configuration

Sorry for the very long delay. Yes, the code is working fine. What you need to do: 1. Assign for the length a multiple of 64 bit. For example, if you are supposed to receive 80 clocks, write 128 into the registers. 2. After get the N clocks from your 'master', complement virtuatually up to 128 (see ...
by FrancisL
Wed Dec 18, 2019 3:59 pm
Forum: Hardware
Topic: Random I2C issue
Replies: 2
Views: 780

Re: Random I2C issue

Thanks for your answer. It seems that the problem was not at the ESP32 side (master) but within the slave device...
Everything works fine with the ESP32! Issue is closed.
Francis
by FrancisL
Tue Dec 17, 2019 6:31 pm
Forum: Hardware
Topic: Random I2C issue
Replies: 2
Views: 780

Random I2C issue

We made some boards with ESP32 + I2C device. We tested our firmware on 20 prototypes without encountering any problem. We launched this week a first production, and tested the final boards...and we are now encountering some strange problems with I2C communication (master with a close single slave): ...
by FrancisL
Wed Sep 11, 2019 9:17 am
Forum: Hardware
Topic: Need guidelines: wiring and configuring an external 32Khz oscillator input in EDP-IDF
Replies: 4
Views: 2368

Re: Need guidelines: wiring and configuring an external 32Khz oscillator input in EDP-IDF

Hello, The situation looks quite confusing: do we have to connect an external 32,768 oscillator onto 32K_XN or 32K_XP? The 'menuconfig' options still looks in conflict with the hardware guidelines document.. In this case (external oscillator connected to the right pin), is the other pin available as...
by FrancisL
Fri Aug 16, 2019 6:36 am
Forum: Hardware
Topic: SPI slave by register configuration
Replies: 8
Views: 3771

Re: SPI slave by register configuration

I found a workaround for the 'last byte issue: I generate internally dummy clock pulses to push the last 32 bit word to the DMA: ret = spi_slave_simple_transmit_dma ( host, trans_desc); for ( i = 0; i < ticks_to_wait; i++) { vTaskDelay(1); if ( spihost[host]->hw->slave.trans_done ) break; //Manage E...
by FrancisL
Wed Aug 14, 2019 1:58 pm
Forum: Hardware
Topic: SPI slave by register configuration
Replies: 8
Views: 3771

Re: SPI slave by register configuration

For my last lost byte, I just found the explanation in the driver manual https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/spi_slave.html : Warning: Due to a design peculiarity in the ESP32, if the amount of bytes sent by the master or the length of the transmission que...
by FrancisL
Wed Aug 14, 2019 12:52 pm
Forum: Hardware
Topic: SPI slave by register configuration
Replies: 8
Views: 3771

Re: SPI slave by register configuration

I was too optimistic and I still have some problems: [*] I expect to receive 6 bytes. The 5 first bytes are correct, but the 6th is always 0x00. [*] I initialized the reception buffer (bigger than the expected amount of bytes) to x5A. and I find that the first 8 bytes have been overwritten (instead ...
by FrancisL
Wed Aug 14, 2019 11:46 am
Forum: Hardware
Topic: Issues with HSPI (slave, half duplex)
Replies: 3
Views: 1174

Re: Issues with HSPI (slave, half duplex)

Good news: I just got my very first exchange: [*] I gave up the 'data_buf'... I tried will possible combinations with flags, but it never works. I never saw any of the data_buf register modified by reception. I guess the issue could be with the timing configuration, but without a decent documentatio...

Go to advanced search