| selgus
|
Problem uploading command sets and custom user fontsPosted at:2016-06-02 18:02:18
|
|
I am seeing some issues when using custom fonts and command sets that I upload to a 160x128 OLED panel. I have a program that I wrote to upload individual fonts into slots 201, 202 and 203, along with the capability to upload command sets after these fonts. I set up my memory map for the MCU as such: OLED_FLASH_START = 0, So I upload my fonts first and then based on the size of the fonts, I add that size to start address of the font and that's where I start uploading my command sets. The problem I am seeing is uploading command sets seem to somehow mess up the previously uploaded fonts. They don't have any overlapping address so they shouldn't be affecting each other, but they are. My questions are: 1) When uploading fonts with the firmware command 'SUF'n, does it actually start the font on the memory boundries I've define above? 2) When uploading fonts, does it just act as a 'FLMWR' flash write command and just write the data into flash, or does it do any additional processing? 3) Do writes have to happen on some sort of block boundaries/sizes? If so, what are they? 4) I do wait 40ms between each 64 bytes of data being sent over the SPI. Is there a certain amount of time I need to wait after finishing each flash write before issuing the next write for the next command set? (i.e. to handle that the firmware is outputting the 'Done!' text back to the display) 5) Are there other reasons why writing after the font would clobber other information already uploaded into the flash? Thanks. B |
