Start a new topic

PROBLEMS WITH TFT FILE

 1.  Getting "File Version Is Too Low" error when powering on the NEXTION 3.2" display.


I downloaded the .ttf file to a FAT32 8GB MicroSD disk.  Reformatted the SD to FAT32 just to be sure.  File is there but get the Version too low error.


2.  Reversed TX & RX pins, but still cannot get connection with Arduino 2560.  I have changed the baud rate to 9600 via the Device Manager and still no luck.  The SW just cycles through all baud rates from 2400 to 115K.  The TX light on the Arduino 2569 board flickers when going through the baud rates but no RX light.


3.  I am using the 0.41 Nextion editor which still needs quite a bit of refinement.  This is my first attemp to use any Aruduino project.  But in this case I am using the demo for the 3.5" diplay downloaded from the Nextion site.




1)  Use a recent Editor, load HMI, build with new version, open Build folder -> use this TFT.

      - only upload to your Nextion device TFT files that you have compiled, until later on.


2)  Ensure Nextion GND and Arduino GND are tied together.  Serial to Nextion is N81.

     - check power supply, check cables (not all created equal), the normal electronic troubleshooting


3) Nextion Editor is for many 100s of MCUs, hardly an Arduino exclusive.  When trying to use the

    demo for the 3.5", refer to #1.  A good graphics program is useful, the Nextion Editor does not

    and will not attempt to be a graphics editor, rather an HMI editor.


Thanks for the quick reply.   My rs232 protocol was N81.  Could not find a place to set the protocol in Nextion editor so N81 must be the protocol.  I will check out the cables and see how good they are. Will post a status report tomorrow.  thanks, chuck

 

You can also determine the baud rate of the Nextion device


create a new HMI file

place number component n0 on the page page0

add one font

In page postinitialization event place the following

n0.val=bauds


build this HMI, open the build folder, and copy the TFT to a microSD card

install on the Nextion using the microSD method

- when the Nextion completes and is then run, the display should show the Nextion baud rate


1.  Resolved the .tft file once I learned the compiler was generating the file automatically.  The real one was in the build folder buried deep in c:\users\chuck\appdata\roaming\Nextion Editor\chuck.tft  I thought a nice addition to the compiler would be a line indicating the tft file built correctly followed by the path.  That would be helpful for the new guys.

2.  My last problem with getting the upload to work was 1) knowing the faud rate for the nextion editor was set to 9600 baud with N,8,1 .  I assumed there was no hardware or software handshaking involved.  I think my final issue is the use of the single comport where the Nextion card was connected to interfered with the arduino Uno R3 COM  port for uploads.  I am now switching to an Arduino 2560 which has two COM ports which should eliminate the conflict.  Thanks to all who responded to my call for assistance.

 

The output window lets you know if you have a successful build or not.

The Open Build Folder file menu is more convenient than a file path.


There is no handshake involved by certainly the timing needs to be definded (baud)

and the bits (8,1) - the None (N) is defining no handshake.


The Uno can be defined to use the sole com port, but you lose your debug serial port.

This requires you Edit your NexConfig.h file to Disable Debug Serial

and then rename the alias for the Nextion from serial2 to serial.

This is defined in the library readme.md file

Hello,

I have same problem. I must use 3.5 editor because recent editor insert bug in my code.
It-is possible tu make my tft display compatible with 3.5 editor version ?

 

@Christophe

> I have same problem.


His problem was he didn't know where to find the TFT file to upload. 

Is your problem really the same?  You don't know where the TFT file is located?


> recent editor insert bug in my code


How do you mean? Please describe in better details.


A TFT file is a table of components and attributes with

a few text instructions to change an attribute or page when pressed/released


As the TFT does not create machine code, I am less certain a "bug in code"

 

If I download the program in display via the 0.35 editor or a SD card, the screen displays during download, after a few seconds :

 "File Version Is Too Low"


No problem with 4.1 editor version, but my code is corrupted by this version.

 

Describe code is corrupted by v0.41

- perhaps there is an understanding you must make.


ver 0.29 and below lacked iso-8859-x support for international characters

ver 0.29 to v0.32 - supported iso-8859 but not enhanced displays.

ver 0.33 to v0.37 - might be considered as working out bugs


new "file version too low" was implemented to prevent buggy versions from corrupting the larger chunk of firmware now being uploaded with the TFT.

v0.38 considered stable but with "file version too low implemented"


v0.39 newer, faster, auto-refresh and much larger code abilities has bad reset bug

   - (I think v0.39 was available for download for only  2 days)

v0.40 newer, faster, auto-refresh and much larger code abilities without reset bug

v0.41 newer, faster, auto-refresh and many v0.39 bugs addressed


So what code in your v0.35 version is not working in v0.41.

 - a button press is a button press - insert in event code section

Perhaps address and fix this and your 0.41 is faster, better and more capable.


I think I found why my code not work with newer version.

Now integer are signed... befor number was plus only

3, Supported numeric data type is long integer, from -2,147,483,648 to 2,147,483,647 [v035 supports 0 to 2,147,483,647 only]
 

 

same for variable :(

ok ... there are so very few real HMI applications that use a true 32 bit

Signed/Unsigned integers are only only going to effect the bit 31

or numbers in the range of 2,147,483,647 to 4,294,967,296.

- so what we need to do is look at what you are using the 32 bits for


can you give me an example of one such that is causing this issue

- when we find the work around, you can adjust for the others.


 My application use 32bits word.


I use a page to convert integer in Hexa and binary txt


hexa_conv.HexaStr.txt=""
// MSD
temp.val=hexa_conv.Integer.val/268435456
if(temp.val==15)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"F"
data_bin.txt="1"
}
if(temp.val==14)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"E"
data_bin.txt="0"
}
if(temp.val==13)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"D"
data_bin.txt="1"
}
if(temp.val==12)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"C"
data_bin.txt="0"
}
if(temp.val==11)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"B"
data_bin.txt="1"
}
if(temp.val==10)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"A"
data_bin.txt="0"
}
if(temp.val==9)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"9"
data_bin.txt="1"
}
if(temp.val==8)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"8"
data_bin.txt="0"
}
if(temp.val==7)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"7"
data_bin.txt="1"
}
if(temp.val==6)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"6"
data_bin.txt="0"
}
if(temp.val==5)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"5"
data_bin.txt="1"
}
if(temp.val==4)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"4"
data_bin.txt="0"
}
if(temp.val==3)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"3"
data_bin.txt="1"
}
if(temp.val==2)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"2"
data_bin.txt="0"
}
if(temp.val==1)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"1"
data_bin.txt="1"
}
if(temp.val==0)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"0"
data_bin.txt="0"
}
// rang6
temp.val=hexa_conv.Integer.val*16
temp.val=temp.val/268435456
if(temp.val==15)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"F"
data_bin.txt=data_bin.txt+"1111"
}
if(temp.val==14)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"E"
data_bin.txt=data_bin.txt+"1110"
}
if(temp.val==13)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"D"
data_bin.txt=data_bin.txt+"1101"
}
if(temp.val==12)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"C"
data_bin.txt=data_bin.txt+"1100"
}
if(temp.val==11)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"B"
data_bin.txt=data_bin.txt+"1011"
}
if(temp.val==10)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"A"
data_bin.txt=data_bin.txt+"1010"
}
if(temp.val==9)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"9"
data_bin.txt=data_bin.txt+"1001"
}
if(temp.val==8)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"8"
data_bin.txt=data_bin.txt+"1000"
}
if(temp.val==7)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"7"
data_bin.txt=data_bin.txt+"0111"
}
if(temp.val==6)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"6"
data_bin.txt=data_bin.txt+"0110"
}
if(temp.val==5)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"5"
data_bin.txt=data_bin.txt+"0101"
}
if(temp.val==4)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"4"
data_bin.txt=data_bin.txt+"0100"
}
if(temp.val==3)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"3"
data_bin.txt=data_bin.txt+"0011"
}
if(temp.val==2)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"2"
data_bin.txt=data_bin.txt+"0010"
}
if(temp.val==1)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"1"
data_bin.txt=data_bin.txt+"0001"
}
if(temp.val==0)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"0"
data_bin.txt=data_bin.txt+"0000"
}
// rang5
temp.val=hexa_conv.Integer.val*256
temp.val=temp.val/268435456
if(temp.val==15)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"F"
data_bin.txt=data_bin.txt+"1111"
}
if(temp.val==14)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"E"
data_bin.txt=data_bin.txt+"1110"
}
if(temp.val==13)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"D"
data_bin.txt=data_bin.txt+"1101"
}
if(temp.val==12)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"C"
data_bin.txt=data_bin.txt+"1100"
}
if(temp.val==11)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"B"
data_bin.txt=data_bin.txt+"1011"
}
if(temp.val==10)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"A"
data_bin.txt=data_bin.txt+"1010"
}
if(temp.val==9)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"9"
data_bin.txt=data_bin.txt+"1001"
}
if(temp.val==8)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"8"
data_bin.txt=data_bin.txt+"1000"
}
if(temp.val==7)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"7"
data_bin.txt=data_bin.txt+"0111"
}
if(temp.val==6)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"6"
data_bin.txt=data_bin.txt+"0110"
}
if(temp.val==5)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"5"
data_bin.txt=data_bin.txt+"0101"
}
if(temp.val==4)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"4"
data_bin.txt=data_bin.txt+"0100"
}
if(temp.val==3)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"3"
data_bin.txt=data_bin.txt+"0011"
}
if(temp.val==2)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"2"
data_bin.txt=data_bin.txt+"0010"
}
if(temp.val==1)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"1"
data_bin.txt=data_bin.txt+"0001"
}
if(temp.val==0)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"0"
data_bin.txt=data_bin.txt+"0000"
}// rang4
temp.val=hexa_conv.Integer.val*4096
temp.val=temp.val/268435456
if(temp.val==15)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"F"
data_bin.txt=data_bin.txt+"1111"
}
if(temp.val==14)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"E"
data_bin.txt=data_bin.txt+"1110"
}
if(temp.val==13)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"D"
data_bin.txt=data_bin.txt+"1101"
}
if(temp.val==12)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"C"
data_bin.txt=data_bin.txt+"1100"
}
if(temp.val==11)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"B"
data_bin.txt=data_bin.txt+"1011"
}
if(temp.val==10)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"A"
data_bin.txt=data_bin.txt+"1010"
}
if(temp.val==9)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"9"
data_bin.txt=data_bin.txt+"1001"
}
if(temp.val==8)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"8"
data_bin.txt=data_bin.txt+"1000"
}
if(temp.val==7)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"7"
data_bin.txt=data_bin.txt+"0111"
}
if(temp.val==6)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"6"
data_bin.txt=data_bin.txt+"0110"
}
if(temp.val==5)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"5"
data_bin.txt=data_bin.txt+"0101"
}
if(temp.val==4)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"4"
data_bin.txt=data_bin.txt+"0100"
}
if(temp.val==3)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"3"
data_bin.txt=data_bin.txt+"0011"
}
if(temp.val==2)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"2"
data_bin.txt=data_bin.txt+"0010"
}
if(temp.val==1)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"1"
data_bin.txt=data_bin.txt+"0001"
}
if(temp.val==0)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"0"
data_bin.txt=data_bin.txt+"0000"
}// rang3
temp.val=hexa_conv.Integer.val*65536
temp.val=temp.val/268435456
if(temp.val==15)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"F"
data_bin.txt=data_bin.txt+"1111"
}
if(temp.val==14)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"E"
data_bin.txt=data_bin.txt+"1110"
}
if(temp.val==13)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"D"
data_bin.txt=data_bin.txt+"1101"
}
if(temp.val==12)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"C"
data_bin.txt=data_bin.txt+"1100"
}
if(temp.val==11)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"B"
data_bin.txt=data_bin.txt+"1011"
}
if(temp.val==10)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"A"
data_bin.txt=data_bin.txt+"1010"
}
if(temp.val==9)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"9"
data_bin.txt=data_bin.txt+"1001"
}
if(temp.val==8)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"8"
data_bin.txt=data_bin.txt+"1000"
}
if(temp.val==7)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"7"
data_bin.txt=data_bin.txt+"0111"
}
if(temp.val==6)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"6"
data_bin.txt=data_bin.txt+"0110"
}
if(temp.val==5)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"5"
data_bin.txt=data_bin.txt+"0101"
}
if(temp.val==4)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"4"
data_bin.txt=data_bin.txt+"0100"
}
if(temp.val==3)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"3"
data_bin.txt=data_bin.txt+"0011"
}
if(temp.val==2)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"2"
data_bin.txt=data_bin.txt+"0010"
}
if(temp.val==1)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"1"
data_bin.txt=data_bin.txt+"0001"
}
if(temp.val==0)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"0"
data_bin.txt=data_bin.txt+"0000"
}// rang2
temp.val=hexa_conv.Integer.val*1048576
temp.val=temp.val/268435456
if(temp.val==15)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"F"
data_bin.txt=data_bin.txt+"1111"
}
if(temp.val==14)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"E"
data_bin.txt=data_bin.txt+"1110"
}
if(temp.val==13)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"D"
data_bin.txt=data_bin.txt+"1101"
}
if(temp.val==12)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"C"
data_bin.txt=data_bin.txt+"1100"
}
if(temp.val==11)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"B"
data_bin.txt=data_bin.txt+"1011"
}
if(temp.val==10)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"A"
data_bin.txt=data_bin.txt+"1010"
}
if(temp.val==9)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"9"
data_bin.txt=data_bin.txt+"1001"
}
if(temp.val==8)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"8"
data_bin.txt=data_bin.txt+"1000"
}
if(temp.val==7)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"7"
data_bin.txt=data_bin.txt+"0111"
}
if(temp.val==6)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"6"
data_bin.txt=data_bin.txt+"0110"
}
if(temp.val==5)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"5"
data_bin.txt=data_bin.txt+"0101"
}
if(temp.val==4)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"4"
data_bin.txt=data_bin.txt+"0100"
}
if(temp.val==3)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"3"
data_bin.txt=data_bin.txt+"0011"
}
if(temp.val==2)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"2"
data_bin.txt=data_bin.txt+"0010"
}
if(temp.val==1)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"1"
data_bin.txt=data_bin.txt+"0001"
}
if(temp.val==0)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"0"
data_bin.txt=data_bin.txt+"0000"
}
//
 rang1
temp.val=hexa_conv.Integer.val*16777216
temp.val=temp.val/268435456
if(temp.val==15)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"F"
}
if(temp.val==14)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"E"
}
if(temp.val==13)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"D"
}
if(temp.val==12)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"C"
}
if(temp.val==11)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"B"
}
if(temp.val==10)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"A"
}
if(temp.val==9)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"9"
}
if(temp.val==8)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"8"
}
if(temp.val==7)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"7"
}
if(temp.val==6)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"6"
}
if(temp.val==5)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"5"
}
if(temp.val==4)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"4"
}
if(temp.val==3)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"3"
}
if(temp.val==2)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"2"
}
if(temp.val==1)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"1"
}
if(temp.val==0)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"0"
}
// LSD
temp.val=hexa_conv.Integer.val*268435456
temp.val=temp.val/268435456
if(temp.val==15)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"F"
}
if(temp.val==14)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"E"
}
if(temp.val==13)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"D"
}
if(temp.val==12)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"C"
}
if(temp.val==11)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"B"
}
if(temp.val==10)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"A"
}
if(temp.val==9)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"9"
}
if(temp.val==8)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"8"
}
if(temp.val==7)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"7"
}
if(temp.val==6)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"6"
}
if(temp.val==5)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"5"
}
if(temp.val==4)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"4"
}
if(temp.val==3)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"3"
}
if(temp.val==2)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"2"
}
if(temp.val==1)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"1"
}
if(temp.val==0)
{
hexa_conv.HexaStr.txt=hexa_conv.HexaStr.txt+"0"
}
//
gene_unique.trame_hexa.txt=hexa_conv.HexaStr.txt
if(MenuIB.page.val==17)
{
page ATC
}
gene_unique.data_bin.txt=data_bin.txt
page gene_unique

 

 

Okay ...


So one possible fix is to use sys0 to pass the value

hexa_conv.Integer.val is variable Integer on page hexa_conv


Instead of assigning your value to hexa_conv.Integer.val

hexa_conv.Integer.val=whatever

call your page to convert

you can use sys0

sys0=whatever

call your page to convert

- in conversion routine use a sys0 instead of your variables


But really, you need an entirely better hex conversion routine.

- what is your hex conversion routine used for?

  - if it just to print out over serial, use printh


Tell me what it is used for and I will give you a better routine



Login or Signup to post a comment