Search found 15 matches

by detlier
Fri Jul 05, 2019 12:07 am
Forum: Hardware
Topic: Reading ADC using I2S
Replies: 6
Views: 5790

Re: Reading ADC using I2S

So I've been having a similar problem, see this forum post and issue #3686 . Maybe we can compare notes. I have an example project here that might help for debugging and sharing information. Regarding the sample rate calculation, note that using the APLL is explicitly (but not super clearly) warned ...
by detlier
Thu Jul 04, 2019 1:52 am
Forum: Hardware
Topic: Why are my ADC channels doubled up when reading them via I2S?
Replies: 0
Views: 787

Why are my ADC channels doubled up when reading them via I2S?

This question relates to issue #3686 . I am trying to use the I2S direct-from-ADC functionality, operating in stereo. I'm using the Wemos Lolin D32, which uses the ESP32-WROOM-32, developing on Ubuntu 18.04. My IDF version is v3.3-beta2, but it requires hacking on the IDF a bit to expose the necessa...
by detlier
Tue Jun 25, 2019 11:17 pm
Forum: Report Bugs
Topic: Cannot read back I2S registers (possible documentation bug)
Replies: 1
Views: 943

Re: Cannot read back I2S registers (possible documentation bug)

Sorry, not sure why BBCode isn't working there, it was not disabled.
by detlier
Tue Jun 25, 2019 11:15 pm
Forum: Report Bugs
Topic: Cannot read back I2S registers (possible documentation bug)
Replies: 1
Views: 943

Cannot read back I2S registers (possible documentation bug)

I'm trying to debug a I2S/ADC application. I'd like to inspect the I2S registers to make sure they don't change, in particular the I2S_RX_SHORT_SYNC, I2S_TX_SHORT_SYNC, I2S_RX_MSB_SHIFT and I2S_TX_MSB_SHIFT registers. The following code just sets them and reads them straight back: [Codebox] void app...
by detlier
Wed Dec 05, 2018 9:46 pm
Forum: ESP-IDF
Topic: How do I enable LWIP's DNS_LOCAL_HOSTLIST_IS_DYNAMIC?
Replies: 3
Views: 1571

Re: How do I enable LWIP's DNS_LOCAL_HOSTLIST_IS_DYNAMIC?

I realised later this was a pointless exercise since this enables DNS client calling code, not server. Still, now I know.
by detlier
Wed Dec 05, 2018 5:36 am
Forum: ESP-IDF
Topic: How do I enable LWIP's DNS_LOCAL_HOSTLIST_IS_DYNAMIC?
Replies: 3
Views: 1571

Re: How do I enable LWIP's DNS_LOCAL_HOSTLIST_IS_DYNAMIC?

Arg, I needed to define DNS_LOCAL_HOSTLIST as well! Putting this in the component or main CMakeLists.txt does the trick:

Code: Select all

component_get_target(LWIP_NAME lwip)

target_compile_definitions(
    ${LWIP_NAME}
    INTERFACE
        DNS_LOCAL_HOSTLIST
        DNS_LOCAL_HOSTLIST_IS_DYNAMIC
    )
by detlier
Wed Dec 05, 2018 5:14 am
Forum: ESP-IDF
Topic: How do I enable LWIP's DNS_LOCAL_HOSTLIST_IS_DYNAMIC?
Replies: 3
Views: 1571

Re: How do I enable LWIP's DNS_LOCAL_HOSTLIST_IS_DYNAMIC?

Not even this seems to work (in the top level CMakeLists.txt, same one that has the project() def): component_get_target(LWIP_NAME lwip) message(STATUS "LWIP target name: ${LWIP_NAME}") target_compile_definitions( ${LWIP_NAME} PUBLIC DNS_LOCAL_HOSTLIST_IS_DYNAMIC ) It sets the macro for my source fi...
by detlier
Wed Dec 05, 2018 4:37 am
Forum: ESP-IDF
Topic: How do I enable LWIP's DNS_LOCAL_HOSTLIST_IS_DYNAMIC?
Replies: 3
Views: 1571

How do I enable LWIP's DNS_LOCAL_HOSTLIST_IS_DYNAMIC?

I would like to add the ESP device itself to LWIP's local list of DNS entries. To do this I need to enable "dns_local_addhost()" by defining the "DNS_LOCAL_HOSTLIST_IS_DYNAMIC" macro (see lwip/dns.h). But I can't figure out how to do this via CMake. It can't be done via sdkconfig.defaults because ES...
by detlier
Tue Nov 27, 2018 9:03 pm
Forum: ESP-IDF
Topic: How do I change the timeout on the softAP example?
Replies: 18
Views: 6928

Re: How do I change the timeout on the softAP example?

...we haven't seen any 5 minutes inactivity state after getting disconnection event. But you can do wifi connect API again on disconnect event. Let me clear if i am wrong or misunderstood anything. I think this is what you are misunderstanding. It is not after the disconnect event. It takes 5 minut...
by detlier
Fri Nov 23, 2018 1:12 am
Forum: ESP-IDF
Topic: clarification about unit testing
Replies: 8
Views: 5854

Re: clarification about unit testing

Just want to add: I also found this very confusing. The documentation starts off by showing how to add your own unit tests in a component, but it turns out it's only meant for ESP-IDF's internal components, so who exactly is the documentation targeting?

That aside, how could I achieve this via CMake?

Go to advanced search