Search found 53 matches

by apuder
Thu May 23, 2019 4:49 pm
Forum: ESP-IDF
Topic: Use CXX to compile .c files
Replies: 1
Views: 2480

Use CXX to compile .c files

Hi,
is it possible to make CXX the default compiler for .c files for a specific component? I'm looking/hoping for some component.mk magic that would allow me to do that.
TIA,
AP
by apuder
Mon Apr 01, 2019 5:50 pm
Forum: General Discussion
Topic: VFS over UART
Replies: 2
Views: 4120

VFS over UART

Hi, as I understand, it is possible to use VFS over UART on the ESP. This is not strictly an ESP question, but there must be a matching "server" component that runs on the other end of the serial connection (on the host) and that performs the file I/O on that side. Can anyone point me to such a serv...
by apuder
Tue Feb 19, 2019 5:46 am
Forum: ESP-IDF
Topic: Force linking of application-specific components
Replies: 1
Views: 2850

Re: Force linking of application-specific components

answering my own question: in component.mk, add:

Code: Select all

COMPONENT_ADD_LDFLAGS=-Wl,--whole-archive build/$(COMPONENT_NAME)/lib$(COMPONENT_NAME).a -Wl,--no-whole-archive
by apuder
Mon Feb 18, 2019 4:45 am
Forum: ESP-IDF
Topic: Force linking of application-specific components
Replies: 1
Views: 2850

Force linking of application-specific components

Hi, I have an application-specific component that is not referenced from anywhere else. Because of that the linker is not including the module. While this behavior is OK for the vast library of ESP-specific components, it causes issues for my app. Of course I can add an artificial dependency to that...
by apuder
Mon Jan 21, 2019 8:53 pm
Forum: General Discussion
Topic: Problems accessing ESP from Windows 10 WSL
Replies: 0
Views: 2264

Problems accessing ESP from Windows 10 WSL

In the past I was able to access the ESP from WSL. I haven't done it in a while but now I'm having issues flashing. I'm using Window 10 pro, version 1809, OS build 17763.253. I have Silicon Labs CP210x USB to UART Bridge installed (driver version 10.1.4.2290). Windows reports the device to be workin...
by apuder
Wed Apr 04, 2018 4:57 am
Forum: General Discussion
Topic: Q on gpio_set_direction()
Replies: 7
Views: 12802

Re: Q on gpio_set_direction()

thanks a bunch. That all makes sense and confirms what I expected. I am trying to connect an ESP32 to the 8-bit I/O bus of a vintage Z80-based machine. The ESP needs to read and write to the same I/O bus. The Z80 indicates if it wants to read or write. Since the data bus is 8-bits wide, I need 8 GPI...
by apuder
Wed Apr 04, 2018 4:21 am
Forum: General Discussion
Topic: Q on gpio_set_direction()
Replies: 7
Views: 12802

Re: Q on gpio_set_direction()

thanks for your response. OK, so if I get this right, an INPUT/OUTPUT pin is really just an output pin where you can use a read operation on the same pin that will simply return the value you have written. It doesn't mean that you can read from an external device connected to that pin. Is this corre...
by apuder
Wed Apr 04, 2018 3:43 am
Forum: General Discussion
Topic: Q on gpio_set_direction()
Replies: 7
Views: 12802

Re: Q on gpio_set_direction()

as a followup to my own question, it seems that the combined input/output for a GPIO pin is indeed supported: https://github.com/espressif/esp-idf/blob/master/components/driver/include/driver/gpio.h#L194 Can someone explain how this is supposed to work? How do you do read/write operations to such a ...
by apuder
Tue Apr 03, 2018 10:36 pm
Forum: General Discussion
Topic: Q on gpio_set_direction()
Replies: 7
Views: 12802

Q on gpio_set_direction()

looking at the implementation of gpio_set_direction(): https://github.com/espressif/esp-idf/blob/master/components/driver/gpio.c#L245 It seems to be possible to configure a GPIO pin as both input and output at the same time. Is this permissible? What are the electrical characteristics of a GPIO pin ...
by apuder
Tue Apr 03, 2018 5:15 am
Forum: General Discussion
Topic: Memory mapped IO for GPIO access
Replies: 6
Views: 9659

Re: Memory mapped IO for GPIO access

yes, I want to read and write to an 8-bit wide bus. If you can point me to some code sniplets for the I2S solution you mentioned, I would most appreciate it.

AP