Rushtp #2 - Nextion Editor Serial Upload Not Working - Fixes

by Rushtp in Circuits > Computers

169 Views, 2 Favorites, 0 Comments

Rushtp #2 - Nextion Editor Serial Upload Not Working - Fixes

0. IMG_0734.JPG
0. Upload failes.bmp
0. Upload Connection failed.bmp
0. TFT File Output.bmp

Background

So you have got your new fancy Nextion 7” Display and have started following the excellent on-line tutorials. I have the Nextion Editor running a windows 11 PC. The Nextion display is connected using a USB to TTL CP2102 UART Module 5Pin Serial Converter.

The TFT File Output option works fine but the Upload option does NOT! Hence this project…


Examples of on-line tutorials (in no particular order):

  1. Nextion Editor Quick Start Guide
  2. Getting started with Nextion Display
  3. Getting started with Nextion HMI
  4. How to use Nextion editor Human machine interface (HMI) Nextion touchscreen display for beginner
  5. Nextion Display Tutorial
  6. Nextion Editor: How A Project Done in 30 minutes With Newest TFT LCD Touch Screen Display
  7. Nextion touch TFT display | Nextion HMI | Getting Started with background image creation
  8. Nextion Editor Guide

Supplies

0. 51QEelwMRaL._AC_SX679_.jpg
0. 71snV7W18vL._SX522_.jpg
0. USB Extender Cable_.jpg
0. IMG_0723.JPG
  1. Nextion Intelligent 7" Touch Screen (e.g. NX8048P070-011C) - or any Nextion 7" Display
  2. USB to TTL CP2102 UART Module 5Pin Serial Converter
  3. USB extender cable (3m)
  4. Nextion 7” Display DIY Enclosure (Optional)
  5. 20mm clear heat Shrink tube (Optional)

Check the Wiring

1a. Wiring.bmp
1b. USB Connections.bmp
1c. 71snV7W18vL._SX522.jpg
1d nextion-pins.bmp
1e. Shrink wrapped.bmp

The Rx and Tx connections must be crossed over Rx to Tx and Tx to Rx to ensure the two devices can “Talk” to each other.

Ensure the USB to TTL Serial Converter is not shorting out on anything it is sitting on – I have the Shrink Wrapped version (you can wrap it with 20mm clear heat Shrink tube).

Check the CP2102 USB to TTL Serial Converter Driver

2d. download.png
2a. Open Device Manager.bmp
2b. Device Manager CP2102 USB to UART Bridge Controller Error.bmp
2c. Device Manager CP2102 USB to UART Bridge Controller Error (2).bmp

First connect up and plug into a USB port on your PC.


Then to check if the Windows 11 USB to TTL driver is working click on the start button and search for Device Manager. Expand the Ports (COM & LPT) line and look at the CP2102 Bridge Controller.

If it has a yellow triangled exclamation mark there is something wrong.

Try Updating the Driver

3a. CP2102 USB to UART Bridge Controller Driver not installed.bmp
3b. Serch for driver update.bmp
3c. Unable to install.bmp

Right click on “CP2102 USB to UART Bridge Controller” line and look in the Driver tab.

If the driver is Not Available click on Update Driver and select Search automatically for drivers.

If the return message is “Windows was unable to install your CP2102 USB to UART Bridge Controller” driver go on to Step 4.

Locate the Device Driver on the Internet and Download It

4a. CP2102 search.bmp
4b. Find CP2102 Driver download site.bmp
4d. Driver downloaded.bmp

Search the internet for “CP210x Universal Windows Driver” and then download it.

Extract the Files From the Zip Download

5a. IMG_0735.JPG
5b. Extract Files.bmp
5c. Files unzipped.bmp

Now open the file location and right click on the downloaded zip file.

Extract All into the download folder. Remember where these files are so they can be located again later.

Back to Windows Device Managed and Update the CP2102 USB to UART Bridge Controller

6a. Serch for driver update.bmp
6b.. Untitled-6.bmp
6c. Browse for drivers.bmp
6d. Untitled-8.bmp

Ensure the Nextion USB is connected.

Follow the same as in Steps 3 & 4 but in this case select “Browse my computer for drivers”.

Locate the Extracted download file folder and press Next.

If all goes well the “Silicon Labs CP2102x USB to UART Bridge driver” will update successfully.

In Windows Device Manager Change the Silicon Labs CP2102x USB to UART Bridge Properties

7a. Device Manager OK.bmp
7c. IMG_0724.bmp
7c. Untitled-1.bmp
7d. Untitled-1.bmp

In my case the driver name has “(COM4)” at the end. You may have a different Port number.

Right click on the driver name and select Properties. The General Tab should indicate that the device is working properly.

In the Port Settings tab set the Bits per second to 115200 (Baud Rate). Then press OK.

Back to the Nextion Editor and Open Your Project File

8a. Untitled-1.bmp
8b. Untitled-10.bmp

In the Programs tab change the “baud=9600” value to “baud=115200”.

Then return to the Display tab.

Try the Upload Again

9a. Untitled-11.bmp
9b. Untitled-17.bmp
9c. IMG_0727.JPG

Set the Baud Rate to 115200 and press Go. It should now upload.

SUCCESS!

The First upload takes a little while to complete. However, once uploaded subsequent uploads are much faster.

Postscript – “Target Device Does Not Match Selected Device”

10a. Untitled-13.bmp
10b. Untitled-14.bmp

This message occurs when the program file was set to a different Nextion display model.