Closed MaxR8684 closed 8 months ago
Sorry, i messed up the logfiles, i will try again later.
Today i tried again to flash the TFT by using the online config.
same result.
[14:36:26][D][button:010]: 'nspnlone Update TFT display' Pressed. [14:36:26][D][main:709]: Button pressed: Update TFT display [14:36:26][D][script.upload_tft:091]: Try #1 [14:36:26][D][script.upload_tft:092]: Setting Nextion protocol reparse mode to passive [14:36:26][D][main:2485]: Exit reparse [14:36:28][D][nextion_upload:145]: Nextion TFT upload requested [14:36:28][D][nextion_upload:146]: url: http://192.168.0.23:8123/local/nspanel_eu.tft
[14:36:28][D][nextion_upload:191]: Requesting URL: http://192.168.0.23:8123/local/nspanel_eu.tft [14:36:28][D][nextion_upload:225]: Updating Nextion NX4832F035_011C... [14:36:28][D][nextion_upload:251]: Waiting for upgrade response [14:36:30][D][nextion_upload:257]: Upgrade response is [] - 0 bytes [14:36:30][D][nextion_upload:266]: preparation for tft update failed 0 "" [14:36:30][D][nextion_upload:329]: Restarting Nextion [14:36:30][D][script.upload_tft:097]: Turn off Nextion [14:36:30][D][switch:016]: 'nspnlone Screen Power' Turning OFF. [14:36:30][D][switch:055]: 'nspnlone Screen Power': Sending state OFF [14:36:33][D][script.upload_tft:100]: Turn on Nextion [14:36:33][D][switch:012]: 'nspnlone Screen Power' Turning ON. [14:36:33][D][switch:055]: 'nspnlone Screen Power': Sending state ON [14:36:35][D][script.upload_tft:091]: Try #2 [14:36:35][D][script.upload_tft:092]: Setting Nextion protocol reparse mode to passive [14:36:35][D][main:2485]: Exit reparse [14:36:37][D][nextion_upload:145]: Nextion TFT upload requested [14:36:37][D][nextion_upload:146]: url: http://192.168.0.23:8123/local/nspanel_eu.tft
[14:36:37][D][nextion_upload:191]: Requesting URL: http://192.168.0.23:8123/local/nspanel_eu.tft [14:36:37][D][nextion_upload:225]: Updating Nextion NX4832F035_011C... [14:36:38][D][nextion_upload:251]: Waiting for upgrade response [14:36:40][D][nextion_upload:257]: Upgrade response is [55.BB.13.00.65.76.65.6E.74.2C.73.74.61.72.74.75.70.2C.35.33.2C.65.75.57.88 (25)] - 25 bytes [14:36:40][D][nextion_upload:260]: Available 0 : 0x55 [14:36:40][D][nextion_upload:260]: Available 1 : 0xBB [14:36:40][D][nextion_upload:260]: Available 2 : 0x13 [14:36:40][D][nextion_upload:260]: Available 3 : 0x00 [14:36:40][D][nextion_upload:260]: Available 4 : 0x65 [14:36:40][D][nextion_upload:260]: Available 5 : 0x76 [14:36:40][D][nextion_upload:260]: Available 6 : 0x65 [14:36:40][D][nextion_upload:260]: Available 7 : 0x6E [14:36:40][D][nextion_upload:260]: Available 8 : 0x74 [14:36:40][D][nextion_upload:260]: Available 9 : 0x2C [14:36:40][D][nextion_upload:260]: Available 10 : 0x73 [14:36:40][D][nextion_upload:260]: Available 11 : 0x74 [14:36:40][D][nextion_upload:260]: Available 12 : 0x61 [14:36:40][D][nextion_upload:260]: Available 13 : 0x72 [14:36:40][D][nextion_upload:260]: Available 14 : 0x74 [14:36:40][D][nextion_upload:260]: Available 15 : 0x75 [14:36:40][D][nextion_upload:260]: Available 16 : 0x70 [14:36:40][D][nextion_upload:260]: Available 17 : 0x2C [14:36:40][D][nextion_upload:260]: Available 18 : 0x35 [14:36:40][D][nextion_upload:260]: Available 19 : 0x33 [14:36:40][D][nextion_upload:260]: Available 20 : 0x2C [14:36:40][D][nextion_upload:260]: Available 21 : 0x65 [14:36:40][D][nextion_upload:260]: Available 22 : 0x75 [14:36:40][D][nextion_upload:260]: Available 23 : 0x57 [14:36:40][D][nextion_upload:260]: Available 24 : 0x88 [14:36:40][D][nextion_upload:266]: preparation for tft update failed 85 "U\xbb" [14:36:40][D][nextion_upload:329]: Restarting Nextion [14:36:40][D][script.upload_tft:097]: Turn off Nextion [14:36:40][D][switch:016]: 'nspnlone Screen Power' Turning OFF. [14:36:40][D][switch:055]: 'nspnlone Screen Power': Sending state OFF [14:36:43][D][script.upload_tft:100]: Turn on Nextion [14:36:43][D][switch:012]: 'nspnlone Screen Power' Turning ON. [14:36:43][D][switch:055]: 'nspnlone Screen Power': Sending state ON [14:36:45][D][script.upload_tft:091]: Try #3 [14:36:45][D][script.upload_tft:092]: Setting Nextion protocol reparse mode to passive [14:36:45][D][main:2485]: Exit reparse [14:36:47][D][nextion_upload:145]: Nextion TFT upload requested [14:36:47][D][nextion_upload:146]: url: http://192.168.0.23:8123/local/nspanel_eu.tft
[14:36:47][D][nextion_upload:191]: Requesting URL: http://192.168.0.23:8123/local/nspanel_eu.tft [14:36:47][D][nextion_upload:225]: Updating Nextion NX4832F035_011C... [14:36:47][D][nextion_upload:251]: Waiting for upgrade response [14:36:49][D][nextion_upload:257]: Upgrade response is [55.BB.13.00.65.76.65.6E.74.2C.73.74.61.72.74.75.70.2C.35.33.2C.65.75.57.88 (25)] - 25 bytes [14:36:49][D][nextion_upload:260]: Available 0 : 0x55 [14:36:49][D][nextion_upload:260]: Available 1 : 0xBB [14:36:49][D][nextion_upload:260]: Available 2 : 0x13 [14:36:49][D][nextion_upload:260]: Available 3 : 0x00 [14:36:49][D][nextion_upload:260]: Available 4 : 0x65 [14:36:49][D][nextion_upload:260]: Available 5 : 0x76 [14:36:49][D][nextion_upload:260]: Available 6 : 0x65 [14:36:49][D][nextion_upload:260]: Available 7 : 0x6E [14:36:49][D][nextion_upload:260]: Available 8 : 0x74 [14:36:49][D][nextion_upload:260]: Available 9 : 0x2C [14:36:49][D][nextion_upload:260]: Available 10 : 0x73 [14:36:49][D][nextion_upload:260]: Available 11 : 0x74 [14:36:49][D][nextion_upload:260]: Available 12 : 0x61 [14:36:49][D][nextion_upload:260]: Available 13 : 0x72 [14:36:49][D][nextion_upload:260]: Available 14 : 0x74 [14:36:49][D][nextion_upload:260]: Available 15 : 0x75 [14:36:49][D][nextion_upload:260]: Available 16 : 0x70 [14:36:49][D][nextion_upload:260]: Available 17 : 0x2C [14:36:49][D][nextion_upload:260]: Available 18 : 0x35 [14:36:49][D][nextion_upload:260]: Available 19 : 0x33 [14:36:49][D][nextion_upload:260]: Available 20 : 0x2C [14:36:49][D][nextion_upload:260]: Available 21 : 0x65 [14:36:49][D][nextion_upload:260]: Available 22 : 0x75 [14:36:49][D][nextion_upload:260]: Available 23 : 0x57 [14:36:49][D][nextion_upload:260]: Available 24 : 0x88 [14:36:49][D][nextion_upload:266]: preparation for tft update failed 85 "U\xbb" [14:36:49][D][nextion_upload:329]: Restarting Nextion [14:36:49][D][script.upload_tft:097]: Turn off Nextion [14:36:49][D][switch:016]: 'nspnlone Screen Power' Turning OFF. [14:36:49][D][switch:055]: 'nspnlone Screen Power': Sending state OFF [14:36:52][D][script.upload_tft:100]: Turn on Nextion [14:36:52][D][switch:012]: 'nspnlone Screen Power' Turning ON. [14:36:52][D][switch:055]: 'nspnlone Screen Power': Sending state ON [14:36:54][E][script.upload_tft:104]: TFT upload failed. [14:36:54][D][script.upload_tft:105]: Turn off Nextion [14:36:54][D][switch:016]: 'nspnlone Screen Power' Turning OFF. [14:36:54][D][switch:055]: 'nspnlone Screen Power': Sending state OFF [14:36:56][D][script.upload_tft:108]: Turn on Nextion [14:36:56][D][switch:012]: 'nspnlone Screen Power' Turning ON. [14:36:56][D][switch:055]: 'nspnlone Screen Power': Sending state ON [14:36:56][D][script.upload_tft:110]: Restarting esphome [14:36:57][D][button:010]: 'nspnlone Restart' Pressed. [14:36:57][I][restart.button:012]: Restarting device... [14:36:58][I][app:134]: Rebooting safely... [14:36:58][D][esp32.preferences:114]: Saving 1 preferences to flash... [14:36:58][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
O i see it didnt use the github source.
Now it took the online source.
[15:18:53][D][button:010]: 'nspnlone Update TFT display' Pressed. [15:18:53][D][main:732]: Button pressed: Update TFT display [15:18:53][D][script.upload_tft:086]: Try #1 [15:18:53][D][script.nextion_status:2653]: Nextion status: [15:18:53][D][script.nextion_status:2654]: Is detected: False [15:18:53][D][script.nextion_status:2655]: Is setup: False [15:18:53][D][script.upload_tft:088]: Setting Nextion protocol reparse mode to passive [15:18:53][D][main:2562]: Exit reparse [15:18:53][D][script.upload_tft:070]: Wait 2 seconds
[15:18:55][D][nextion_upload:176]: Requesting URL: https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/nspanel_eu.tft [15:18:56][D][nextion_upload:210]: Updating Nextion ... [15:18:56][D][nextion_upload:236]: Waiting for upgrade response [15:18:58][D][nextion_upload:240]: Upgrade response is 0 [15:18:58][D][nextion_upload:249]: preparation for tft update failed 0 "" [15:18:58][D][nextion_upload:312]: Restarting Nextion [15:18:58][D][script.upload_tft:093]: Turn off Nextion [15:18:58][D][switch:016]: 'nspnlone Nextion display - Power' Turning OFF. [15:18:58][D][switch:055]: 'nspnlone Nextion display - Power': Sending state OFF [15:18:58][D][script.upload_tft:070]: Wait 3 seconds [15:19:01][D][script.upload_tft:096]: Turn on Nextion [15:19:01][D][switch:012]: 'nspnlone Nextion display - Power' Turning ON. [15:19:01][D][switch:055]: 'nspnlone Nextion display - Power': Sending state ON [15:19:01][D][script.upload_tft:070]: Wait 10 seconds [15:19:11][D][script.upload_tft:086]: Try #2 [15:19:11][D][script.nextion_status:2653]: Nextion status: [15:19:11][D][script.nextion_status:2654]: Is detected: False [15:19:11][D][script.nextion_status:2655]: Is setup: False [15:19:11][D][script.upload_tft:088]: Setting Nextion protocol reparse mode to passive [15:19:11][D][main:2562]: Exit reparse [15:19:11][D][script.upload_tft:070]: Wait 2 seconds
[15:19:13][D][nextion_upload:176]: Requesting URL: https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/nspanel_eu.tft [15:19:14][D][nextion_upload:210]: Updating Nextion ... [15:19:14][D][nextion_upload:236]: Waiting for upgrade response [15:19:16][D][nextion_upload:240]: Upgrade response is 0 [15:19:16][D][nextion_upload:249]: preparation for tft update failed 0 "" [15:19:16][D][nextion_upload:312]: Restarting Nextion [15:19:16][D][script.upload_tft:093]: Turn off Nextion [15:19:16][D][switch:016]: 'nspnlone Nextion display - Power' Turning OFF. [15:19:16][D][switch:055]: 'nspnlone Nextion display - Power': Sending state OFF [15:19:16][D][script.upload_tft:070]: Wait 3 seconds [15:19:19][D][script.upload_tft:096]: Turn on Nextion [15:19:19][D][switch:012]: 'nspnlone Nextion display - Power' Turning ON. [15:19:19][D][switch:055]: 'nspnlone Nextion display - Power': Sending state ON [15:19:19][D][script.upload_tft:070]: Wait 10 seconds [15:19:29][D][script.upload_tft:086]: Try #3 [15:19:29][D][script.nextion_status:2653]: Nextion status: [15:19:29][D][script.nextion_status:2654]: Is detected: False [15:19:29][D][script.nextion_status:2655]: Is setup: False [15:19:29][D][script.upload_tft:088]: Setting Nextion protocol reparse mode to passive [15:19:29][D][main:2562]: Exit reparse [15:19:29][D][script.upload_tft:070]: Wait 2 seconds
[15:19:31][D][nextion_upload:176]: Requesting URL: https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/nspanel_eu.tft [15:19:32][D][nextion_upload:210]: Updating Nextion ... [15:19:32][D][nextion_upload:236]: Waiting for upgrade response [15:19:34][D][nextion_upload:240]: Upgrade response is 0 [15:19:34][D][nextion_upload:249]: preparation for tft update failed 0 "" [15:19:34][D][nextion_upload:312]: Restarting Nextion [15:19:34][D][script.upload_tft:093]: Turn off Nextion [15:19:34][D][switch:016]: 'nspnlone Nextion display - Power' Turning OFF. [15:19:34][D][switch:055]: 'nspnlone Nextion display - Power': Sending state OFF [15:19:34][D][script.upload_tft:070]: Wait 3 seconds [15:19:37][D][script.upload_tft:096]: Turn on Nextion [15:19:37][D][switch:012]: 'nspnlone Nextion display - Power' Turning ON. [15:19:37][D][switch:055]: 'nspnlone Nextion display - Power': Sending state ON [15:19:37][D][script.upload_tft:070]: Wait 10 seconds [15:19:47][E][script.upload_tft:100]: TFT upload failed. [15:19:47][D][script.upload_tft:101]: Turn off Nextion [15:19:47][D][switch:016]: 'nspnlone Nextion display - Power' Turning OFF. [15:19:47][D][switch:055]: 'nspnlone Nextion display - Power': Sending state OFF [15:19:47][D][script.upload_tft:070]: Wait 2 seconds [15:19:49][D][script.upload_tft:104]: Turn on Nextion [15:19:49][D][switch:012]: 'nspnlone Nextion display - Power' Turning ON. [15:19:49][D][switch:055]: 'nspnlone Nextion display - Power': Sending state ON [15:19:49][D][script.upload_tft:106]: Restarting esphome [15:19:49][D][script.upload_tft:070]: Wait 1 seconds [15:19:50][D][button:010]: 'nspnlone Restart' Pressed. [15:19:50][I][restart.button:012]: Restarting device... [15:19:50][I][app:134]: Rebooting safely... [15:19:50][D][esp32.preferences:114]: Saving 1 preferences to flash... [15:19:51][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
In this one i tried to input the path to the "blank"
[15:30:53][D][button:010]: 'nspnlone Update TFT display' Pressed. [15:30:53][D][main:732]: Button pressed: Update TFT display [15:30:53][D][script.upload_tft:086]: Try #1 [15:30:53][D][script.nextion_status:2653]: Nextion status: [15:30:53][D][script.nextion_status:2654]: Is detected: False [15:30:53][D][script.nextion_status:2655]: Is setup: False [15:30:53][D][script.upload_tft:088]: Setting Nextion protocol reparse mode to passive [15:30:53][D][main:2562]: Exit reparse [15:30:53][D][script.upload_tft:070]: Wait 2 seconds
[15:30:55][D][nextion_upload:176]: Requesting URL: https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/custom_configuration/nspanel_blank.tft [15:30:56][D][nextion_upload:210]: Updating Nextion ... [15:30:56][D][nextion_upload:236]: Waiting for upgrade response [15:30:58][D][nextion_upload:240]: Upgrade response is 0 [15:30:58][D][nextion_upload:249]: preparation for tft update failed 0 "" [15:30:58][D][nextion_upload:312]: Restarting Nextion [15:30:58][D][script.upload_tft:093]: Turn off Nextion [15:30:58][D][switch:016]: 'nspnlone Nextion display - Power' Turning OFF. [15:30:58][D][switch:055]: 'nspnlone Nextion display - Power': Sending state OFF [15:30:58][D][script.upload_tft:070]: Wait 3 seconds [15:31:01][D][script.upload_tft:096]: Turn on Nextion [15:31:01][D][switch:012]: 'nspnlone Nextion display - Power' Turning ON. [15:31:01][D][switch:055]: 'nspnlone Nextion display - Power': Sending state ON [15:31:01][D][script.upload_tft:070]: Wait 10 seconds [15:31:11][D][script.upload_tft:086]: Try #2 [15:31:11][D][script.nextion_status:2653]: Nextion status: [15:31:11][D][script.nextion_status:2654]: Is detected: False [15:31:11][D][script.nextion_status:2655]: Is setup: False [15:31:11][D][script.upload_tft:088]: Setting Nextion protocol reparse mode to passive [15:31:11][D][main:2562]: Exit reparse [15:31:11][D][script.upload_tft:070]: Wait 2 seconds
[15:31:13][D][nextion_upload:176]: Requesting URL: https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/custom_configuration/nspanel_blank.tft [15:31:14][D][nextion_upload:210]: Updating Nextion ... [15:31:14][D][nextion_upload:236]: Waiting for upgrade response [15:31:16][D][nextion_upload:240]: Upgrade response is 0 [15:31:16][D][nextion_upload:249]: preparation for tft update failed 0 "" [15:31:16][D][nextion_upload:312]: Restarting Nextion [15:31:16][D][script.upload_tft:093]: Turn off Nextion [15:31:16][D][switch:016]: 'nspnlone Nextion display - Power' Turning OFF. [15:31:16][D][switch:055]: 'nspnlone Nextion display - Power': Sending state OFF [15:31:16][D][script.upload_tft:070]: Wait 3 seconds [15:31:19][D][script.upload_tft:096]: Turn on Nextion [15:31:19][D][switch:012]: 'nspnlone Nextion display - Power' Turning ON. [15:31:19][D][switch:055]: 'nspnlone Nextion display - Power': Sending state ON [15:31:19][D][script.upload_tft:070]: Wait 10 seconds [15:31:29][D][script.upload_tft:086]: Try #3 [15:31:29][D][script.nextion_status:2653]: Nextion status: [15:31:29][D][script.nextion_status:2654]: Is detected: False [15:31:29][D][script.nextion_status:2655]: Is setup: False [15:31:29][D][script.upload_tft:088]: Setting Nextion protocol reparse mode to passive [15:31:29][D][main:2562]: Exit reparse [15:31:29][D][script.upload_tft:070]: Wait 2 seconds
[15:31:31][D][nextion_upload:176]: Requesting URL: https://raw.githubusercontent.com/Blackymas/NSPanel_HA_Blueprint/main/custom_configuration/nspanel_blank.tft [15:31:32][D][nextion_upload:210]: Updating Nextion ... [15:31:32][D][nextion_upload:236]: Waiting for upgrade response [15:31:34][D][nextion_upload:240]: Upgrade response is 0 [15:31:34][D][nextion_upload:249]: preparation for tft update failed 0 "" [15:31:34][D][nextion_upload:312]: Restarting Nextion [15:31:34][D][script.upload_tft:093]: Turn off Nextion [15:31:34][D][switch:016]: 'nspnlone Nextion display - Power' Turning OFF. [15:31:34][D][switch:055]: 'nspnlone Nextion display - Power': Sending state OFF [15:31:34][D][script.upload_tft:070]: Wait 3 seconds [15:31:37][D][script.upload_tft:096]: Turn on Nextion [15:31:37][D][switch:012]: 'nspnlone Nextion display - Power' Turning ON. [15:31:37][D][switch:055]: 'nspnlone Nextion display - Power': Sending state ON [15:31:37][D][script.upload_tft:070]: Wait 10 seconds [15:31:47][E][script.upload_tft:100]: TFT upload failed. [15:31:47][D][script.upload_tft:101]: Turn off Nextion [15:31:47][D][switch:016]: 'nspnlone Nextion display - Power' Turning OFF. [15:31:47][D][switch:055]: 'nspnlone Nextion display - Power': Sending state OFF [15:31:47][D][script.upload_tft:070]: Wait 2 seconds [15:31:49][D][script.upload_tft:104]: Turn on Nextion [15:31:49][D][switch:012]: 'nspnlone Nextion display - Power' Turning ON. [15:31:49][D][switch:055]: 'nspnlone Nextion display - Power': Sending state ON [15:31:49][D][script.upload_tft:106]: Restarting esphome [15:31:49][D][script.upload_tft:070]: Wait 1 seconds [15:31:50][D][button:010]: 'nspnlone Restart' Pressed. [15:31:50][I][restart.button:012]: Restarting device... [15:31:50][I][app:134]: Rebooting safely... [15:31:50][D][esp32.preferences:114]: Saving 1 preferences to flash... [15:31:50][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
The chances to have this working with an https url and a file hosted at github are just too low. Copy the file locally and try with your local http server.
i had the same problem with a new NSpanel set it to beta also in the TFT line and it works after that
i had the same problem with a new NSpanel set it to beta also in the TFT line and it works after that
Hi @spikerm, can you share more about setting to beta? what exactly is that?
i had the same problem with a new NSpanel set it to beta also in the TFT line and it works after that
Hi @spikerm, can you share more about setting to beta? what exactly is that?
In your yaml file in the url for the display change main to beta also in the line below ref:main to ref :beta
clean build files and install after it loads click on install tft and it will upload fine you should end up with version 4.1.3
There's no difference between beta
and main
at this moment, as v4.1.3 was release yesterday.
@GraceO77, if you are facing some trouble with your panel, please create another issue and share as much info as possible. I will be happy to help.
There are some small changes coming on v4.1.4 that might help this. And as always, please make sure you have looked at this: https://github.com/Blackymas/NSPanel_HA_Blueprint/wiki/(EN)-Common-Issues-TFT-Upload (just updated).
v4.1.4 was just released. Please update your system and try it again. If the issue persists, please reopen it.
ยดยดยด [16:34:37][D][button:010]: 'nspnlone Update TFT display' Pressed. [16:34:37][D][main:733]: Button pressed: Update TFT display
[16:34:37][D][script.stop_all:2735]: Stopping scripts...
[16:34:37][D][script.upload_tft:799]: Try #1 at 921600 bps [16:34:37][D][script.upload_tft.upload_tft_arduino:401]: Nextion TFT upload requested [16:34:37][D][script.upload_tft.upload_tft_arduino:402]: url: http://192.168.0.23:8123/local/nspanel_blank.tft [16:34:37][D][script.upload_tft.upload_tft_arduino:403]: baud_rate: 921600 [16:34:37][D][script.upload_tft.upload_tft_arduino:416]: Setting Nextion protocol reparse mode to passive [16:34:37][D][main:2591]: Exit reparse [16:34:37][D][script.upload_tft:144]: Wait 5 seconds
[16:34:42][D][script.upload_tft.upload_tft_arduino:440]: Requesting URL: http://192.168.0.23:8123/local/nspanel_blank.tft [16:34:42][D][script.upload_tft.upload_tft_arduino:472]: Updating Nextion [16:34:42][D][script.upload_tft.upload_tft_arduino:481]: Clear serial receive buffer: 4 [16:34:42][D][script.upload_tft.send_nextion_command:206]: Sending: whmi-wris 275288,921600,1 [16:34:42][C][uart.arduino_esp32:077]: Setting up UART... [16:34:42][D][script.upload_tft.upload_tft_arduino:497]: Waiting for upgrade response [16:34:47][D][script.upload_tft.upload_tft_arduino:502]: Upgrade response is [00.00.00.80.80.80 (6)] [16:34:47][D][script.upload_tft.upload_tft_arduino:507]: Preparation for tft update failed 0 "" [16:34:47][D][script.upload_tft.uploadend:274]: Completed: 0 [16:34:48][D][script.upload_tft.uploadend:284]: Nextion TFT upload will try again [16:34:48][W][script.upload_tft:805]: Try #1 failed [16:34:48][D][script.upload_tft:144]: Wait 5 seconds [16:34:53][D][script.upload_tft:808]: Try #2 at 921600 bps [16:34:53][D][script.upload_tft.upload_tft_arduino:401]: Nextion TFT upload requested [16:34:53][D][script.upload_tft.upload_tft_arduino:402]: url: http://192.168.0.23:8123/local/nspanel_blank.tft [16:34:53][D][script.upload_tft.upload_tft_arduino:403]: baud_rate: 921600 [16:34:53][D][script.upload_tft.upload_tft_arduino:416]: Setting Nextion protocol reparse mode to passive [16:34:54][D][main:2591]: Exit reparse [16:34:54][D][script.upload_tft:144]: Wait 5 seconds
[16:34:59][D][script.upload_tft.upload_tft_arduino:440]: Requesting URL: http://192.168.0.23:8123/local/nspanel_blank.tft [16:34:59][D][script.upload_tft.upload_tft_arduino:472]: Updating Nextion [16:34:59][D][script.upload_tft.upload_tft_arduino:481]: Clear serial receive buffer: 86 [16:34:59][D][script.upload_tft.send_nextion_command:206]: Sending: whmi-wris 275288,921600,1 [16:34:59][D][script.upload_tft.upload_tft_arduino:497]: Waiting for upgrade response [16:35:04][D][script.upload_tft.upload_tft_arduino:502]: Upgrade response is [00.00.00.80.80.80 (6)] [16:35:04][D][script.upload_tft.upload_tft_arduino:507]: Preparation for tft update failed 0 "" [16:35:04][D][script.upload_tft.uploadend:274]: Completed: 0 [16:35:05][D][script.upload_tft.uploadend:284]: Nextion TFT upload will try again [16:35:05][W][script.upload_tft:810]: Try #2 failed [16:35:05][D][script.upload_tft:144]: Wait 5 seconds [16:35:10][D][script.upload_tft:813]: Try #3 at 115200 bps [16:35:10][D][script.upload_tft.upload_tft_arduino:401]: Nextion TFT upload requested [16:35:10][D][script.upload_tft.upload_tft_arduino:402]: url: http://192.168.0.23:8123/local/nspanel_blank.tft [16:35:10][D][script.upload_tft.upload_tft_arduino:403]: baud_rate: 115200 [16:35:10][D][script.upload_tft.upload_tft_arduino:416]: Setting Nextion protocol reparse mode to passive [16:35:10][D][main:2591]: Exit reparse [16:35:10][D][script.upload_tft:144]: Wait 5 seconds
[16:35:15][D][script.upload_tft.upload_tft_arduino:440]: Requesting URL: http://192.168.0.23:8123/local/nspanel_blank.tft [16:35:15][D][script.upload_tft.upload_tft_arduino:472]: Updating Nextion [16:35:15][D][script.upload_tft.upload_tft_arduino:481]: Clear serial receive buffer: 6 [16:35:15][D][script.upload_tft.send_nextion_command:206]: Sending: whmi-wris 275288,115200,1 [16:35:15][C][uart.arduino_esp32:077]: Setting up UART... [16:35:15][D][script.upload_tft.upload_tft_arduino:497]: Waiting for upgrade response [16:35:15][D][script.upload_tft.upload_tft_arduino:502]: Upgrade response is [24] [16:35:15][D][script.upload_tft.upload_tft_arduino:507]: Preparation for tft update failed 36 "$" [16:35:15][D][script.upload_tft.uploadend:274]: Completed: 0 [16:35:17][D][script.upload_tft.uploadend:284]: Nextion TFT upload will try again [16:35:17][W][script.upload_tft:815]: Try #3 failed [16:35:17][D][script.upload_tft:820]: Turn off Nextion [16:35:17][D][switch:016]: 'nspnlone Nextion display - Power' Turning OFF. [16:35:17][D][switch:055]: 'nspnlone Nextion display - Power': Sending state OFF [16:35:17][D][script.upload_tft:144]: Wait 2 seconds [16:35:19][D][script.upload_tft:823]: Turn on Nextion [16:35:19][D][switch:012]: 'nspnlone Nextion display - Power' Turning ON. [16:35:19][D][switch:055]: 'nspnlone Nextion display - Power': Sending state ON [16:35:19][D][script.upload_tft:144]: Wait 10 seconds [16:35:29][D][script.upload_tft:826]: Try #4 at 115200 bps [16:35:29][D][script.upload_tft.upload_tft_arduino:401]: Nextion TFT upload requested [16:35:29][D][script.upload_tft.upload_tft_arduino:402]: url: http://192.168.0.23:8123/local/nspanel_blank.tft [16:35:29][D][script.upload_tft.upload_tft_arduino:403]: baud_rate: 115200 [16:35:29][D][script.upload_tft.upload_tft_arduino:416]: Setting Nextion protocol reparse mode to passive [16:35:29][D][main:2591]: Exit reparse [16:35:29][D][script.upload_tft:144]: Wait 5 seconds
[16:35:34][D][script.upload_tft.upload_tft_arduino:440]: Requesting URL: http://192.168.0.23:8123/local/nspanel_blank.tft [16:35:34][D][script.upload_tft.upload_tft_arduino:472]: Updating Nextion [16:35:34][D][script.upload_tft.upload_tft_arduino:481]: Clear serial receive buffer: 85 [16:35:34][D][script.upload_tft.send_nextion_command:206]: Sending: whmi-wris 275288,115200,1 [16:35:34][D][script.upload_tft.upload_tft_arduino:497]: Waiting for upgrade response [16:35:39][D][script.upload_tft.upload_tft_arduino:502]: Upgrade response is [55.BB.13.00.65.76.65.6E.74.2C.73.74.61.72.74.75.70.2C.35.33.2C.65.75.57.88 (25)] [16:35:39][D][script.upload_tft.upload_tft_arduino:507]: Preparation for tft update failed 85 "U\xbb" [16:35:39][D][script.upload_tft.uploadend:274]: Completed: 0 [16:35:41][D][script.upload_tft.uploadend:284]: Nextion TFT upload will try again [16:35:41][E][script.upload_tft:828]: TFT upload failed [16:35:41][D][script.upload_tft:829]: Turn off Nextion [16:35:41][D][switch:016]: 'nspnlone Nextion display - Power' Turning OFF. [16:35:41][D][switch:055]: 'nspnlone Nextion display - Power': Sending state OFF [16:35:41][D][script.upload_tft:144]: Wait 2 seconds [16:35:43][D][script.upload_tft:832]: Turn on Nextion [16:35:43][D][switch:012]: 'nspnlone Nextion display - Power' Turning ON. [16:35:43][D][switch:055]: 'nspnlone Nextion display - Power': Sending state ON [16:35:43][D][script.upload_tft:834]: Restarting ESPHome [16:35:43][D][script.upload_tft:144]: Wait 2 seconds [16:35:45][D][button:010]: 'nspnlone Restart' Pressed. [16:35:45][I][restart.button:012]: Restarting device... [16:35:45][I][app:134]: Rebooting safely...
Updatet to the new version and changed tu "arduino" but still can't update the tft.
๐ฉ
Have you tried framework esp-idf
also? Could you please share the logs from that one?
esp32:
framework:
type: esp-idf
unfortunateli not able to instal with the change from arduino to esp-idf
INFO ESPHome 2023.11.6
INFO Reading configuration /config/esphome/ns-panel.yaml...
INFO Updating https://github.com/Blackymas/NSPanel_HA_Blueprint@beta
INFO Detected timezone 'Europe/Berlin'
INFO Generating C++ source...
INFO Compiling app...
Processing nspnlone (board: esp32dev; framework: espidf; platform: platformio/espressif32@5.4.0)
--------------------------------------------------------------------------------
Removing unused dependencies...
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
- framework-espidf @ 3.40405.230623 (4.4.5)
- tool-cmake @ 3.16.9
- tool-ninja @ 1.10.2
- toolchain-esp32ulp @ 2.35.0-20220830
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Creating a new virtual environment for IDF Python dependencies
Installing ESP-IDF's Python dependencies
Collecting urllib3<2
Downloading urllib3-1.26.18-py2.py3-none-any.whl (143 kB)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 143.8/143.8 kB 3.1 MB/s eta 0:00:00
Collecting cryptography<35.0.0,>=2.1.4
Downloading cryptography-3.4.8.tar.gz (546 kB)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 546.9/546.9 kB 10.5 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting future>=0.18.3
Downloading future-0.18.3.tar.gz (840 kB)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 840.9/840.9 kB 11.8 MB/s eta 0:00:00
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Collecting pyparsing<2.4.0,>=2.0.3
Downloading pyparsing-2.3.1-py2.py3-none-any.whl (61 kB)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 61.8/61.8 kB 19.8 MB/s eta 0:00:00
Collecting kconfiglib~=13.7.1
Downloading kconfiglib-13.7.1-py2.py3-none-any.whl (145 kB)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 145.7/145.7 kB 22.5 MB/s eta 0:00:00
Collecting idf-component-manager~=1.0
Downloading idf_component_manager-1.4.1-py2.py3-none-any.whl (140 kB)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 140.7/140.7 kB 20.2 MB/s eta 0:00:00
Collecting cffi>=1.12
Downloading cffi-1.16.0.tar.gz (512 kB)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 512.9/512.9 kB 14.2 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting packaging
Downloading packaging-23.2-py3-none-any.whl (53 kB)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 53.0/53.0 kB 28.5 MB/s eta 0:00:00
Collecting requests<3
Downloading requests-2.31.0-py3-none-any.whl (62 kB)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 62.6/62.6 kB 27.2 MB/s eta 0:00:00
Collecting requests-file
Downloading requests_file-1.5.1-py2.py3-none-any.whl (3.7 kB)
Collecting requests-toolbelt
Downloading requests_toolbelt-1.0.0-py2.py3-none-any.whl (54 kB)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 54.5/54.5 kB 28.9 MB/s eta 0:00:00
Collecting schema
Downloading schema-0.7.5-py2.py3-none-any.whl (17 kB)
Collecting six
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting tqdm<5
Downloading tqdm-4.66.1-py3-none-any.whl (78 kB)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 78.3/78.3 kB 26.1 MB/s eta 0:00:00
Collecting colorama
Downloading colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting pyyaml>5.2
Downloading PyYAML-6.0.1.tar.gz (125 kB)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 125.2/125.2 kB 17.3 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting cachecontrol[filecache]>0.12.6
Downloading cachecontrol-0.13.1-py3-none-any.whl (22 kB)
Collecting contextlib2>0.6.0
Downloading contextlib2-21.6.0-py2.py3-none-any.whl (13 kB)
Collecting click
Downloading click-8.1.7-py3-none-any.whl (97 kB)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 97.9/97.9 kB 19.3 MB/s eta 0:00:00
Collecting msgpack>=0.5.2
Downloading msgpack-1.0.7.tar.gz (166 kB)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 166.3/166.3 kB 16.4 MB/s eta 0:00:00
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting filelock>=3.8.0
Downloading filelock-3.13.1-py3-none-any.whl (11 kB)
Collecting pycparser
Downloading pycparser-2.21-py2.py3-none-any.whl (118 kB)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 118.7/118.7 kB 19.3 MB/s eta 0:00:00
Collecting charset-normalizer<4,>=2
Downloading charset_normalizer-3.3.2-py3-none-any.whl (48 kB)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 48.5/48.5 kB 27.4 MB/s eta 0:00:00
Collecting idna<4,>=2.5
Downloading idna-3.6-py3-none-any.whl (61 kB)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 61.6/61.6 kB 25.8 MB/s eta 0:00:00
Collecting certifi>=2017.4.17
Downloading certifi-2023.11.17-py3-none-any.whl (162 kB)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ 162.5/162.5 kB 23.4 MB/s eta 0:00:00
Building wheels for collected packages: cryptography, cffi, pyyaml, msgpack
Building wheel for cryptography (pyproject.toml): started
Building wheel for cryptography (pyproject.toml): still running...
Building wheel for cryptography (pyproject.toml): still running...
Building wheel for cryptography (pyproject.toml): still running...
Building wheel for cryptography (pyproject.toml): finished with status 'done'
Created wheel for cryptography: filename=cryptography-3.4.8-cp311-cp311-linux_armv7l.whl size=2078358 sha256=4af36cef7b8f2642b004c75a24185294d17a0fd19a071f43de9efc31dcf8b6b8
Stored in directory: /tmp/pip-ephem-wheel-cache-vjub6pak/wheels/9b/d0/e0/ea75c03a4eef3e2cdc8740e0a72a8d6476999f76be2250f96d
Building wheel for cffi (pyproject.toml): started
Building wheel for cffi (pyproject.toml): finished with status 'done'
Created wheel for cffi: filename=cffi-1.16.0-cp311-cp311-linux_armv7l.whl size=378570 sha256=35ac32ac94a601435bde48132803c3c8b481849955b2cb05e757653c296b4b44
Stored in directory: /tmp/pip-ephem-wheel-cache-vjub6pak/wheels/10/4f/3d/7fc6b66e12830389d13c5c67c7fda40d417e3d2662818e64b6
Building wheel for pyyaml (pyproject.toml): started
Building wheel for pyyaml (pyproject.toml): finished with status 'done'
Created wheel for pyyaml: filename=PyYAML-6.0.1-cp311-cp311-linux_armv7l.whl size=45363 sha256=b54804250e81909011fc22ffbbdb5f3a8e4037089f7a8fd7e07c86ee48d774d9
Stored in directory: /tmp/pip-ephem-wheel-cache-vjub6pak/wheels/20/40/04/9edd5f1052f28aff139c0b315b3d5ad7ba893c93ccde03f1b4
Building wheel for msgpack (pyproject.toml): started
Building wheel for msgpack (pyproject.toml): finished with status 'done'
Created wheel for msgpack: filename=msgpack-1.0.7-cp311-cp311-linux_armv7l.whl size=495310 sha256=d040cbd161ee35c581bf15914938ed102efed0207003c44dbec9b96568850cca
Stored in directory: /tmp/pip-ephem-wheel-cache-vjub6pak/wheels/50/3e/01/1b909b1529ece55ec94c07614a9d95421f2d62d7932a429e47
Successfully built cryptography cffi pyyaml msgpack
Installing collected packages: pyparsing, urllib3, tqdm, six, pyyaml, pycparser, packaging, msgpack, kconfiglib, idna, future, filelock, contextlib2, colorama, click, charset-normalizer, certifi, schema, requests, cffi, requests-toolbelt, requests-file, cryptography, cachecontrol, idf-component-manager
DEPRECATION: future is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Running setup.py install for future: started
Running setup.py install for future: finished with status 'done'
Successfully installed cachecontrol-0.13.1 certifi-2023.11.17 cffi-1.16.0 charset-normalizer-3.3.2 click-8.1.7 colorama-0.4.6 contextlib2-21.6.0 cryptography-3.4.8 filelock-3.13.1 future-0.18.3 idf-component-manager-1.4.1 idna-3.6 kconfiglib-13.7.1 msgpack-1.0.7 packaging-23.2 pycparser-2.21 pyparsing-2.3.1 pyyaml-6.0.1 requests-2.31.0 requests-file-1.5.1 requests-toolbelt-1.0.0 schema-0.7.5 six-1.16.0 tqdm-4.66.1 urllib3-1.26.18
Reading CMake configuration...
-- Found Git: /usr/bin/git (found version "2.39.2")
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc -- broken
-- Configuring incomplete, errors occurred!
See also "/data/build/nspnlone/.pioenvs/nspnlone/CMakeFiles/CMakeOutput.log".
See also "/data/build/nspnlone/.pioenvs/nspnlone/CMakeFiles/CMakeError.log".
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
CMake Error at /data/cache/platformio/packages/tool-cmake/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /data/build/nspnlone/.pioenvs/nspnlone/CMakeFiles/CMakeTmp
Run Build Command(s):/data/cache/platformio/packages/tool-ninja/ninja cmTC_0015a && [1/2] Building C object CMakeFiles/cmTC_0015a.dir/testCCompiler.c.obj
[2/2] Linking C executable cmTC_0015a
FAILED: cmTC_0015a
: && /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc -mlongcalls -Wno-frame-address CMakeFiles/cmTC_0015a.dir/testCCompiler.c.obj -o cmTC_0015a && :
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/liblto_plugin.so: error loading plugin: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/liblto_plugin.so: cannot open shared object file: No such file or directory
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
/data/cache/platformio/packages/framework-espidf/tools/cmake/project.cmake:298 (__project)
CMakeLists.txt:3 (project)
========================= [FAILED] Took 389.26 seconds =========================
Have you tried cleaning build files and restarted ESPHome host?
Nope i forgott, i tried that now, clean buil files, restart esp home, restart home assistant. stopped all addons. unfortunately the same result.
here s the end of the log were everything goes wrong.
Successfully built cryptography cffi pyyaml msgpack
Installing collected packages: pyparsing, urllib3, tqdm, six, pyyaml, pycparser, packaging, msgpack, kconfiglib, idna, future, filelock, contextlib2, colorama, click, charset-normalizer, certifi, schema, requests, cffi, requests-toolbelt, requests-file, cryptography, cachecontrol, idf-component-manager
DEPRECATION: future is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Running setup.py install for future: started
Running setup.py install for future: finished with status 'done'
Successfully installed cachecontrol-0.13.1 certifi-2023.11.17 cffi-1.16.0 charset-normalizer-3.3.2 click-8.1.7 colorama-0.4.6 contextlib2-21.6.0 cryptography-3.4.8 filelock-3.13.1 future-0.18.3 idf-component-manager-1.4.1 idna-3.6 kconfiglib-13.7.1 msgpack-1.0.7 packaging-23.2 pycparser-2.21 pyparsing-2.3.1 pyyaml-6.0.1 requests-2.31.0 requests-file-1.5.1 requests-toolbelt-1.0.0 schema-0.7.5 six-1.16.0 tqdm-4.66.1 urllib3-1.26.18
Reading CMake configuration...
-- Found Git: /usr/bin/git (found version "2.39.2")
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc -- broken
-- Configuring incomplete, errors occurred!
See also "/data/build/nspnlone/.pioenvs/nspnlone/CMakeFiles/CMakeOutput.log".
See also "/data/build/nspnlone/.pioenvs/nspnlone/CMakeFiles/CMakeError.log".
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
CMake Error at /data/cache/platformio/packages/tool-cmake/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /data/build/nspnlone/.pioenvs/nspnlone/CMakeFiles/CMakeTmp
Run Build Command(s):/data/cache/platformio/packages/tool-ninja/ninja cmTC_abb70 && [1/2] Building C object CMakeFiles/cmTC_abb70.dir/testCCompiler.c.obj
[2/2] Linking C executable cmTC_abb70
FAILED: cmTC_abb70
: && /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc -mlongcalls -Wno-frame-address CMakeFiles/cmTC_abb70.dir/testCCompiler.c.obj -o cmTC_abb70 && :
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/liblto_plugin.so: error loading plugin: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/liblto_plugin.so: cannot open shared object file: No such file or directory
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
/data/cache/platformio/packages/framework-espidf/tools/cmake/project.cmake:298 (__project)
CMakeLists.txt:3 (project)
========================= [FAILED] Took 385.67 seconds =========================
Please try this: https://github.com/Blackymas/NSPanel_HA_Blueprint/wiki/(EN)-Customization#compiling-esphome-on-lower-powered-machines
# Limit the amount of resources used for compiling
esphome:
compile_process_limit: 1
And again, clean build files, restart host server, stop other add-ons, etc.
By the way, could you please share here the yaml used for ESPHome settings? Please remove any sensitive information before sharing.
This is allready in the nspanel config.
"...the yaml used for ESPHome settings..."
I didnt do any chenges to esphome config as far as i can remember. Do you know where to find that config on homeassistant?
SOrry for not finding a yaml.
i can show you just this:
substitutions:
device_name: "nspnlone"
wifi_ssid: "UPC8972555"
wifi_password: "L%r%m#182408#Family!?"
nextion_update_url: "http://192.168.0.23:8123/local/nspanel_blank.tft"
packages:
remote_package:
url: https://github.com/Blackymas/NSPanel_HA_Blueprint
ref: beta
files:
- nspanel_esphome.yaml
refresh: 1s
esp32:
framework:
type: esp-idf
time:
- id: !extend time_provider
on_time:
- seconds: /3
then:
- lambda: |-
//ESP_LOGD("DEBUG", "disp1->is_detected(): %s", disp1->is_detected() ? "True" : "False");
ESP_LOGD("DEBUG", "disp1->is_setup(): %s", disp1->is_setup() ? "True" : "False");
esphome:
compile_process_limit: 1
You are still painting to beta...
Please try this:
substitutions:
device_name: "nspnlone"
wifi_ssid: !secret wifi_ssid
wifi_password: !secret wifi_password
nextion_update_url: "http://192.168.0.23:8123/local/nspanel_blank.tft"
packages:
remote_package:
url: https://github.com/Blackymas/NSPanel_HA_Blueprint
ref: main
files:
- nspanel_esphome.yaml
refresh: 300s
esp32:
framework:
type: esp-idf
esphome:
compile_process_limit: 1
Nope doesn't work:
substitutions:
device_name: "nspnlone"
wifi_ssid: !secret wifi_ssid
wifi_password: !secret wifi_password
nextion_update_url: "http://192.168.0.23:8123/local/nspanel_blank.tft"
packages:
remote_package:
url: https://github.com/Blackymas/NSPanel_HA_Blueprint
ref: main
files:
- nspanel_esphome.yaml
refresh: 300s
esp32:
framework:
type: esp-idf
esphome:
compile_process_limit: 1
here s theend of logs:
Building wheels for collected packages: cryptography, cffi, pyyaml, msgpack
Building wheel for cryptography (pyproject.toml): started
Building wheel for cryptography (pyproject.toml): still running...
Building wheel for cryptography (pyproject.toml): still running...
Building wheel for cryptography (pyproject.toml): still running...
Building wheel for cryptography (pyproject.toml): finished with status 'done'
Created wheel for cryptography: filename=cryptography-3.4.8-cp311-cp311-linux_armv7l.whl size=2078370 sha256=8617c64acc393b92a1cfdddd8da5a5cb8bf7d348e120cec5b62284f2e07a0495
Stored in directory: /tmp/pip-ephem-wheel-cache-_ht8i5b5/wheels/9b/d0/e0/ea75c03a4eef3e2cdc8740e0a72a8d6476999f76be2250f96d
Building wheel for cffi (pyproject.toml): started
Building wheel for cffi (pyproject.toml): finished with status 'done'
Created wheel for cffi: filename=cffi-1.16.0-cp311-cp311-linux_armv7l.whl size=378561 sha256=c28660e5224c008e516cc88ac3ef5fcc9e862a50f18e67ca7ff1b7be1cf0fb03
Stored in directory: /tmp/pip-ephem-wheel-cache-_ht8i5b5/wheels/10/4f/3d/7fc6b66e12830389d13c5c67c7fda40d417e3d2662818e64b6
Building wheel for pyyaml (pyproject.toml): started
Building wheel for pyyaml (pyproject.toml): finished with status 'done'
Created wheel for pyyaml: filename=PyYAML-6.0.1-cp311-cp311-linux_armv7l.whl size=45363 sha256=19a948e8e612153bb10cc92f328292afb126b3591d6c57f66d0a9600b69936e5
Stored in directory: /tmp/pip-ephem-wheel-cache-_ht8i5b5/wheels/20/40/04/9edd5f1052f28aff139c0b315b3d5ad7ba893c93ccde03f1b4
Building wheel for msgpack (pyproject.toml): started
Building wheel for msgpack (pyproject.toml): finished with status 'done'
Created wheel for msgpack: filename=msgpack-1.0.7-cp311-cp311-linux_armv7l.whl size=495323 sha256=31338ebcc76da5151a2144760d7ce171231ab962ff7e7423c2c910f55fa00850
Stored in directory: /tmp/pip-ephem-wheel-cache-_ht8i5b5/wheels/50/3e/01/1b909b1529ece55ec94c07614a9d95421f2d62d7932a429e47
Successfully built cryptography cffi pyyaml msgpack
Installing collected packages: pyparsing, urllib3, tqdm, six, pyyaml, pycparser, packaging, msgpack, kconfiglib, idna, future, filelock, contextlib2, colorama, click, charset-normalizer, certifi, schema, requests, cffi, requests-toolbelt, requests-file, cryptography, cachecontrol, idf-component-manager
DEPRECATION: future is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Running setup.py install for future: started
Running setup.py install for future: finished with status 'done'
Successfully installed cachecontrol-0.13.1 certifi-2023.11.17 cffi-1.16.0 charset-normalizer-3.3.2 click-8.1.7 colorama-0.4.6 contextlib2-21.6.0 cryptography-3.4.8 filelock-3.13.1 future-0.18.3 idf-component-manager-1.4.1 idna-3.6 kconfiglib-13.7.1 msgpack-1.0.7 packaging-23.2 pycparser-2.21 pyparsing-2.3.1 pyyaml-6.0.1 requests-2.31.0 requests-file-1.5.1 requests-toolbelt-1.0.0 schema-0.7.5 six-1.16.0 tqdm-4.66.1 urllib3-1.26.18
Reading CMake configuration...
-- Found Git: /usr/bin/git (found version "2.39.2")
-- The C compiler identification is GNU 8.4.0
-- The CXX compiler identification is GNU 8.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc
-- Check for working C compiler: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc -- broken
-- Configuring incomplete, errors occurred!
See also "/data/build/nspnlone/.pioenvs/nspnlone/CMakeFiles/CMakeOutput.log".
See also "/data/build/nspnlone/.pioenvs/nspnlone/CMakeFiles/CMakeError.log".
fatal: not a git repository (or any parent up to mount point /)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
CMake Error at /data/cache/platformio/packages/tool-cmake/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /data/build/nspnlone/.pioenvs/nspnlone/CMakeFiles/CMakeTmp
Run Build Command(s):/data/cache/platformio/packages/tool-ninja/ninja cmTC_3a902 && [1/2] Building C object CMakeFiles/cmTC_3a902.dir/testCCompiler.c.obj
[2/2] Linking C executable cmTC_3a902
FAILED: cmTC_3a902
: && /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/xtensa-esp32-elf-gcc -mlongcalls -Wno-frame-address CMakeFiles/cmTC_3a902.dir/testCCompiler.c.obj -o cmTC_3a902 && :
/data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/liblto_plugin.so: error loading plugin: /data/cache/platformio/packages/toolchain-xtensa-esp32/bin/../libexec/gcc/xtensa-esp32-elf/8.4.0/liblto_plugin.so: cannot open shared object file: No such file or directory
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
/data/cache/platformio/packages/framework-espidf/tools/cmake/project.cmake:298 (__project)
CMakeLists.txt:3 (project)
========================= [FAILED] Took 380.12 seconds =========================```
Ok, looks like your ESPHome compiler didn't liked esp-idf, so we have only arduino available...
Let's try that again...
substitutions:
device_name: "nspnlone"
wifi_ssid: !secret wifi_ssid
wifi_password: !secret wifi_password
nextion_update_url: "http://192.168.0.23:8123/local/nspanel_blank.tft"
packages:
remote_package:
url: https://github.com/Blackymas/NSPanel_HA_Blueprint
ref: main
files:
- nspanel_esphome.yaml
refresh: 300s
esphome:
compile_process_limit: 1
Then it runs throught. but still cannot instal the tft.
Just to be sure again. The Path where i putted the file is:
192.168.0.23\config\www
this is the same as:
http://192.168.0.23:8123/local/nspanel_blank.tft
right?
That's right. Your logs shows error on sending the upload command to the Nextion display. Getting the TFT file from your server looks to be working fine.
Could you please do the following:
Here are the logs. logs_ns-panel_logs-long.txt
Let's go...
The display wasn't detected after the boot:
[10:46:08][C][nextion:123]: Nextion:
[10:46:08][C][nextion:124]: Device Model:
[10:46:08][C][nextion:125]: Firmware Version:
[10:46:08][C][nextion:126]: Serial Number:
[10:46:08][C][nextion:127]: Flash Size:
[10:46:08][C][nextion:128]: Wake On Touch: True
[10:46:08][C][nextion:139]: Start Up Page : 8
...
[10:46:09][W][nextion:077]: Nextion is not connected!
Possible causes:
Then the boot sequence sent a command to exit reparse mode, but with the display still not connected:
[10:46:28][D][main:2591]: Exit reparse
[10:46:28][W][nextion:077]: Nextion is not connected!
[10:46:29][W][nextion:077]: Nextion is not connected!
[10:46:29][W][nextion:077]: Nextion is not connected!
[10:46:30][W][nextion:077]: Nextion is not connected!
[10:46:30][W][nextion:077]: Nextion is not connected!
[10:46:31][W][nextion:077]: Nextion is not connected!
[10:46:31][W][nextion:077]: Nextion is not connected!
The boot sequence then power cycled the display, but still didn't got any response:
[10:46:48][E][on_boot:059]: No response from Nextion display
[10:46:48][D][on_boot:060]: Turn off Nextion
[10:46:48][D][switch:016]: 'nspnlone Nextion display - Power' Turning OFF.
[10:46:48][D][switch:055]: 'nspnlone Nextion display - Power': Sending state OFF
[10:46:48][D][on_boot:046]: Wait 2 seconds
[10:46:50][D][on_boot:063]: Turn on Nextion
[10:46:50][D][switch:012]: 'nspnlone Nextion display - Power' Turning ON.
[10:46:50][D][switch:055]: 'nspnlone Nextion display - Power': Sending state ON
[10:46:50][D][on_boot:046]: Wait 5 seconds
[10:46:55][D][script.nextion_status:2682]: Nextion status:
[10:46:55][D][script.nextion_status:2684]: Is setup: False
[10:46:55][W][component:214]: Component esphome.coroutine took a long time for an operation (7.05 s).
[10:46:55][W][component:215]: Components should block for at most 20-30ms.
[10:46:55][W][nextion:077]: Nextion is not connected!
[10:46:56][E][uart:015]: Reading from UART timed out at byte 0!
This last message in the log above shows a timeout in the UART, which is also indication that either the display cable is disconnected or it is in another baud rate.
So, I think it's unlikely the problem is the reparse mode... one less thing to think about.
When you tried to upload, the system got some response on the UART bus:
[10:49:17][D][script.upload_tft:799]: Try #1 at 921600 bps
[10:49:17][D][script.upload_tft.upload_tft_arduino:401]: Nextion TFT upload requested
[10:49:17][D][script.upload_tft.upload_tft_arduino:402]: url: http://192.168.0.23:8123/local/nspanel_blank.tft
[10:49:17][D][script.upload_tft.upload_tft_arduino:403]: baud_rate: 921600
[10:49:17][D][script.upload_tft.upload_tft_arduino:416]: Setting Nextion protocol reparse mode to passive
[10:49:17][D][main:2591]: Exit reparse
[10:49:17][D][script.upload_tft:144]: Wait 5 seconds
[10:49:22][D][script.upload_tft.upload_tft_arduino:434]: Connected
[10:49:22][D][script.upload_tft.upload_tft_arduino:440]: Requesting URL: http://192.168.0.23:8123/local/nspanel_blank.tft
[10:49:22][D][script.upload_tft.upload_tft_arduino:472]: Updating Nextion
[10:49:22][D][script.upload_tft.upload_tft_arduino:481]: Clear serial receive buffer: 8
[10:49:22][D][script.upload_tft.send_nextion_command:206]: Sending: whmi-wris 275288,921600,1
[10:49:22][C][uart.arduino_esp32:077]: Setting up UART...
[10:49:22][D][script.upload_tft.upload_tft_arduino:497]: Waiting for upgrade response
[10:49:27][D][script.upload_tft.upload_tft_arduino:502]: Upgrade response is [00.00.00.80.80.80.80.80.80.80.80.80.80.80.80.00.00.00.80.80.00.80.00.80.80.80.80.00.80.00.80.80.00.80.80.00.80.00.80.00.80.00.80.80.80.00.80.00.00.80.00.80.80.80.80.80.80.00.80.00.80.00.80.80.80.00.80.00.00.00.80.00.80.80.00.80.80.80.80.80.80.80.80.80.00.00 (86)]
That is not useful response, but makes me think that cable is ok, but baud rate is not.
Then at try 4, ESPHome got something different at 115200 bps:
[10:50:14][D][script.upload_tft.send_nextion_command:206]: Sending: whmi-wris 275288,115200,1
[10:50:14][D][script.upload_tft.upload_tft_arduino:497]: Waiting for upgrade response
[10:50:19][D][script.upload_tft.upload_tft_arduino:502]: Upgrade response is [55.BB.13.00.65.76.65.6E.74.2C.73.74.61.72.74.75.70.2C.35.33.2C.65.75.57.88 (25)]
[10:50:19][D][script.upload_tft.upload_tft_arduino:507]: Preparation for tft update failed 85 "U\xbb"
Which contains some value: U ๏ฟฝ ๏ฟฝ e v e n t , s t a r t u p , 5 3 , e u W ๏ฟฝ
.
I'm not sure if I have asked this before, but have you had something else installed in this panel before?
Could you please send a picture of your panel's screen?
Yes i have had installed this on my panel before:
https://docs.nspanel.pky.eu/stable/
But after doing the mistace and not reading your instruction propperly and missing this: https://github.com/Blackymas/NSPanel_HA_Blueprint/wiki/(EN)-Common-Issues-TFT-Upload-When-nspanel-lovelace-ui-has-been-installed.
I got back to installing tasmota and doing a propper reinstal of that.
So maybe i have bricked my tft by fiddling around with that?
Ok. Click on the center of this blue ring 9 times. It will show another page with lots of buttons. On that page, click the buttons related to baud rate 115200 and the recmod. I'm not sure the names exactly, but those are both at the right bottom corner. After that, click the Upload TFT button again. And send the logs. ๐
So maybe i have bricked my tft
I don't think so.
We will get there... ๐
do i have to restart after pressing those buttons?
No, don't restart after pressing the buttons.
By the way, every time you restart you have to go back to that page and press the buttons again before trying to upload TFT.
Well, pressing that recmod button did some magic . Now the blank.tft could be installed and i saw the qr code. I then went on to change from blank.tft to the eu.tft but exidentialy took the wrong file and now am back to the blue loading spinner of death. unfortunately now it doesnt work again to press these two buttons. am i missing anything?
Send the new logs, please.
This is different now, as after some time after the boot (probably when you pressed the recmod
button), the display was detected:
[14:48:09][I][nextion:083]: Nextion is connected
[14:48:09][C][nextion:123]: Nextion:
[14:48:09][C][nextion:124]: Device Model: NX4832F035_011C
[14:48:09][C][nextion:125]: Firmware Version: 72
[14:48:09][C][nextion:126]: Serial Number: 116634012FE4A132
[14:48:09][C][nextion:127]: Flash Size: 16777216
[14:48:09][C][nextion:128]: Wake On Touch: True
[14:48:09][C][nextion:139]: Start Up Page : 8
But then it couldn't get a response from the screen when the Upload was requested.
Try pressing those two buttons (recmode and bauds=115200) alternated every couple of seconds even after pressing the Upload TFT button and please let me know if it makes any difference.
unfortunately after pressing the recmod button and the display gets detected it switches to a different screen and i cannot touch the buttons again.
Ok, I believe this happens due to our code sending you to page 8 (boot screen) after connecting to Nextion, but page 8 on the TFT you have currently loaded is this media player page.
Please try adding this to your yaml and then flash your device again:
display:
- id: !extend disp1
start_up_page: 1
That will force that same page when it gets connected, so maybe the page will be reloaded, but will stay there.
And please remember to remove those lines when you successfully upload the TFT.
Ah, and please send logs. ๐
Ok, that worked. Now i see the qr code on the display. Can i now go on with flashing ne eu.tft?
Unfortunately i didnt safe the log file. Do you need it? With your enormous amound of help i am willing to recreate the issue if you need these logs for other purposes.
Ok, that worked. Now i see the qr code on the display. Can i now go on with flashing ne eu.tft?
Nice!
You can now remove that code changing the initial page and upload nspanel_eu.tft
.
Unfortunately i didnt safe the log file. Do you need it? With your enormous amound of help i am willing to recreate the issue if you need these logs for other purposes.
No worries... Please capture the next one (when uploading nspanel_eu.tft
) just in case.
I will use all this info to improve this upload process.
Job done. thank you so much. you sir have earned yourself a whole pizza or a pile of beer or something else. PayPal donation is done. after succesful tft flashs.txt
Nice to hear that!
Enjoy your new panel. ๐
???