thank you for valuable info.
I want to make it for CY8CKIT-043 kit, Waht are the options I need to set ?
I am getting errors for Tx,Rx, and RST pins while hardware configuration.
I have attached the project file and screenshot, please suggest where I went wrong?
I haven't get any info from doc you have shared.
I want to configure any one of UART tx and rx lines of CY8CKIT-043 to esp8266 module to communicate for wifi.
1. This is an old project you want to upgrade components ( press"!" At the bottom right)
2. You have removed several components but no reference to it in the program (LCD, pin Test)
uart-000.cywrk_.zip 582.8 K
Thank you for info.
You have some LCD i think to see the data, but how can see the debug messages?
I have connected the FTD1232 on 3.0 and 3.1 rx and tx pins, but unable to get data on the serial port.
Can you please provide comments in english, if possible
esp8266 often freezes.
So I used the SysTick, WDT and uint16 recon
isr_Reconn - reset WDT counter (otherwise restart)
if recon ++> 300 - preventive restart ESP
you can disable it until.
For debugging I used this program: ESP8266 Config.exe (https://github.com/AppStackCC/ESP8266-Config)
Perhaps you are interested in TCP2UART or MODBUS RS-485 bridge for ESP8266
ullflash_tcp2uart.bin - TCP2UART
fullflash_modbusrs485.bin - MODBUS RS-485
I am writing AT commands to ESP module, but I am not getting how to get the response from ESP module.
I am using UART_PutString for writing data, and tried the UART_ReadRxData, UART_GetChar for reading data and sending this received data to other debug port, I am getting always 0 value while receiving.
Can you please check the code and I need debug statements instead of LCD for CY8CKIT-043 kit.
Actually my idea is I want to create 1 website and push data to the website from cypress using ESP module.
uart-000.cywrk__0.zip 2.9 MB
You do not give the device time to answer!
Rxbyte = UART_ReadRxData(); // Here will not be a char ready.
The answer to your AT command is afaik an ASCII string terminated by /n, /r or both. I would suggest you to
Check with UART_GetRxBufferSize() for any characters ready, put them into your string buffer until you get a terminating char, pad with a null char. Then print the string.
Change UART_1 to byte mode and buffers to 16 or more.
Thank you for your suggessions, I have made the code as per your instructions still the esp module is able to receive AT commands means blue LED is glowing, but I am not getting any rx data.
and WaitText fun always failing.
Please find attached code.
Suggest me where I am failing.
What the wait function will do.
There is no fun definition for #define Wait(x)
May I know what is the use of it?