GLK19264-7T-1U returns incorrect size on download command
Posted: Mon Mar 23, 2009 9:55 am
Hello,
I have encountered what appears to a bug with the download command on the GLK19264-7T-1U.
According to the documentation, the download command (0xFE, 0xB2), should return a 4 byte size followed by the bytes of the file, however whenever I use this command to first byte (MSB) of the size always comes back as 1 everytime.
For example the first built in font on the GLK has a size of 904 bytes. When I issue the download command I get the byte sequence of 1, 3, 0, 0 followed by the 904 bytes of the file. The second byte is correct, but the first byte should 0x88, not 1, as 0x388 = 904.
I've been working around it by using the file directory command (0xFE, 0xB3) which does return the correct file sizes.
Any ideas on what I might be doing wrong, or could this be a bug? I thought this might be a communications problem but I am getting all the bytes of the download correctly as the bitmaps from the data are all good, and other commands all work as expected.
I have encountered what appears to a bug with the download command on the GLK19264-7T-1U.
According to the documentation, the download command (0xFE, 0xB2), should return a 4 byte size followed by the bytes of the file, however whenever I use this command to first byte (MSB) of the size always comes back as 1 everytime.
For example the first built in font on the GLK has a size of 904 bytes. When I issue the download command I get the byte sequence of 1, 3, 0, 0 followed by the 904 bytes of the file. The second byte is correct, but the first byte should 0x88, not 1, as 0x388 = 904.
I've been working around it by using the file directory command (0xFE, 0xB3) which does return the correct file sizes.
Any ideas on what I might be doing wrong, or could this be a bug? I thought this might be a communications problem but I am getting all the bytes of the download correctly as the bitmaps from the data are all good, and other commands all work as expected.