Search found 32 matches
- Tue Jul 24, 2018 1:04 am
- Forum: ESP8266 SDK
- Topic: UART0: Can't get FIFO length
- Replies: 1
- Views: 1123
UART0: Can't get FIFO length
Hi folks, I'm trying to receive a string on UART0, and at the most basic step to get the number of bytes available in the RX FIFO buffer. I try to use the magic formulae fifo_len = (READ_PERI_REG(UART_STATUS(UART0)) >> UART_RXFIFO_CNT_S) & UART_RXFIFO_CNT; in a callback function, and from my PC ...
- Mon Jul 23, 2018 8:34 pm
- Forum: ESP8266 SDK
- Topic: Disable echo on UART0
- Replies: 2
- Views: 1528
Re: Disable echo on UART0
Okay, most of these issues were because the code in uart.c - which I believed to be a simple classic UART driver - actually implemented some processing of the bytes like reprinting them. I simply removed most of the code in this file to write my own driver. (https://bbs.espressif.com/viewtopic.php?f...
- Tue Jul 10, 2018 3:25 pm
- Forum: ESP8266 SDK
- Topic: PWM glitches and bad frequency
- Replies: 7
- Views: 2777
Re: PWM glitches and bad frequency
It's a custom firmware written in C (I also test with the few lines of code above) built with NON-OS SDK (esp-open-sdk). I just hacked the SDKto enable the modf() functions (https://bbs.espressif.com/viewtopic.php?f=7&t=9432)... Maybe PWM is somehow linked to modudulus functions ant that breaks ...
- Mon Jul 09, 2018 5:10 pm
- Forum: ESP8266 SDK
- Topic: PWM glitches and bad frequency
- Replies: 7
- Views: 2777
Re: PWM glitches and bad frequency
So I erased the flash with "esptool.py erase_flash", and then as he ESP was bricked with error "rf_cal[0] !=0x05,is 0xFF", I re-flashed all the blank.bin, eagle.irom0.bin and so to init the ROM and re-flashed my software. I got the same glitches and frequency offset on my PWM. I ...
- Thu Jun 28, 2018 3:30 pm
- Forum: ESP8266 SDK
- Topic: PWM glitches and bad frequency
- Replies: 7
- Views: 2777
Re: PWM glitches and bad frequency
I'm using NONOS-SDK-2.2.0, built with esp-open-sdk toolchain.
I'll try the previous SDK in few days if I have a little free time...
I'll try the previous SDK in few days if I have a little free time...
- Tue Jun 26, 2018 6:35 pm
- Forum: ESP8266 SDK
- Topic: PWM glitches and bad frequency
- Replies: 7
- Views: 2777
PWM glitches and bad frequency
Hey folks, Now I'm playing with the PWM API on a ESP-WROOM-02. I can get a PWM output on the pin, but the signal is quite dirty: - Each cycle is preceeded by a glitch - The period is longer than the one set in the code, probably because of this glitch - It occures with different duty cycles and peri...
- Tue Jun 26, 2018 3:39 pm
- Forum: General Q&A
- Topic: What determines the properties of the SPI flash: hardware or software ?
- Replies: 2
- Views: 2740
Re: What determines the properties of the SPI flash: hardware or software ?
Okay, thanks to have made it clear !
- Tue Jun 26, 2018 3:37 pm
- Forum: ESP8266 SDK
- Topic: OTA upgrade never finishes
- Replies: 9
- Views: 3285
Re: OTA upgrade never finishes
Hey, In this raw brute ugly test code, indeed I receive a HTTP header before the data but I don't bother parsing it. I just store the bytes as they arrive in buffer_g_u8[] until I have 512 bytes. Then I assume that in this 512 bytes there is the full header and the start of the data payload (my .bin...
- Fri Jun 22, 2018 6:08 pm
- Forum: ESP8266 SDK
- Topic: SoftUART
- Replies: 2
- Views: 960
Re: SoftUART
(Just a though, but could it be because you are flirting with the time resolution of system_get_time() which is 1 mirosec ? Also maybe the roundings to compute bit_time lead to the loss of synchronization between the ESP and the receiver at the other end...)
- Fri Jun 22, 2018 6:04 pm
- Forum: General Q&A
- Topic: What determines the properties of the SPI flash: hardware or software ?
- Replies: 2
- Views: 2740
What determines the properties of the SPI flash: hardware or software ?
Hey folks, It's still unclear for me. When generating an image for the ESP or when flashing it, we are asked to indicate what flash map, which SPI mode and which SPI frequency we want to use. This info is then included in the header of the image. My question is: Do we have to select the values that ...