Search found 2067 matches
- Thu Apr 27, 2017 11:35 am
- Forum: General Discussion
- Topic: USB Serial on UART2
- Replies: 6
- Views: 14753
Re: USB Serial on UART2
Sorry if didn't make my previous message clear... Currently you can not use UART driver ('uart_driver_install') and standard IO, specifically input (fscanf, scanf) on the same UART peripheral. UART driver will try to read characters from UART peripheral. Standard IO library will also try to read cha...
- Thu Apr 27, 2017 10:33 am
- Forum: General Discussion
- Topic: USB Serial on UART2
- Replies: 6
- Views: 14753
Re: USB Serial on UART2
Currently the UART driver can not be used together with console IO on the same UART. Both will try to read from UART FIFO, and only one (either console input or UART driver) will get any given character.
- Wed Apr 26, 2017 3:41 pm
- Forum: General Discussion
- Topic: USB Serial on UART2
- Replies: 6
- Views: 14753
Re: USB Serial on UART2
standard input on UARTs currently behaves as O_NONBLOCK; i.e. fgetc will return immediately, even if there is no data in UART FIFO. Does that explain the behaviour you are seeing? If not, could you describe "inconsistent" in more detail?
- Wed Apr 26, 2017 4:27 am
- Forum: Hardware
- Topic: ESP-WROOM-32 Flash Size
- Replies: 15
- Views: 44244
Re: ESP-WROOM-32 Flash Size
We don't use Quad SPI mode for loading the 2nd stage bootloader image, it is limited to DIO. So this shouldn't be an issue.
- Wed Apr 26, 2017 3:42 am
- Forum: Hardware
- Topic: ESP-WROOM-32 Flash Size
- Replies: 15
- Views: 44244
Re: ESP-WROOM-32 Flash Size
You need to configure all the pads in EFUSE, even if you are changing just one of them. Also note that WP pin can not be configured via EFUSE (not sure why it was left out). Becasue of this, for now, we support QIO mode only for ESP32-D2WD, where we know which pin is used for WP: https://github.com/...
- Tue Apr 25, 2017 1:11 pm
- Forum: ESP-IDF
- Topic: ESP32 crash when transmitting value via SPI
- Replies: 5
- Views: 10414
Re: ESP32 crash when transmitting value via SPI
In c++ you can still do
spi_device_interface_config_t devcfg={0};
and then set the fields you actually need.
spi_device_interface_config_t devcfg={0};
and then set the fields you actually need.
- Tue Apr 25, 2017 11:38 am
- Forum: ESP-IDF
- Topic: ESP32 crash when transmitting value via SPI
- Replies: 5
- Views: 10414
Re: ESP32 crash when transmitting value via SPI
There are a bunch of members in spi_device_interface_config_t structure which you aren't initializing, they include pre_cb and post_cb callback pointers. Because these pointers are not initialized, they contain garbage values previously present on the stack. SPI driver calls these function pointers ...
- Tue Apr 25, 2017 11:28 am
- Forum: General Discussion
- Topic: How to Visually Tell New from Old Silicon?
- Replies: 19
- Views: 40431
Re: How to Visually Tell New from Old Silicon?
The getChipRevision function in Arduino has a bug, by the way, as it has "&& EFUSE_RD_CHIP_VER_RESERVE_V" instead of "& EFUSE_RD_CHIP_VER_RESERVE_V". Also, the 8-bit EFUSE_RD_CHIP_VER_RESERVE field is used to encode a bunch of different things. Lower 3 bits encode the package (0 = D0WDQ6, 1 = D0WDQ5...
- Tue Apr 25, 2017 11:15 am
- Forum: ESP-IDF
- Topic: ESP32 crash when transmitting value via SPI
- Replies: 5
- Views: 10414
Re: ESP32 crash when transmitting value via SPI
Which pins are you using as SPI_MISO, SPI_MOSI, SPI_CLK?
- Tue Apr 25, 2017 11:07 am
- Forum: ESP-IDF
- Topic: 100microsecond timer in esp32
- Replies: 10
- Views: 24559
Re: 100microsecond timer in esp32
You can use the following code for the TG0 timer: #include <stddef.h> #include "esp_intr_alloc.h" #include "esp_attr.h" #include "driver/timer.h" static intr_handle_t s_timer_handle; static void timer_isr(void* arg) { TIMERG0.int_clr_timers.t0 = 1; TIMERG0.hw_timer[0].config.alarm_en = 1; // your co...