Digole
Digital Solutions
iDigole Buyer ProtectioniDigole Buyer
Protection
My shopping cart
0 Items:
Secure Checkout
Top Rated Plus
Visit Our Live Auctions
99.9% Customer's Satisfaction
 
Forum : Digole Serial Display :

 Search Forum.. 
 Creat New Topic   Reply 

Flash memory

I recently purchased a touch screen tft with 16M flash memory. I would like to know what flash memory addresses to avoid writing to. I don't want to write over the fonts or other things that are needed.

 

RE:Flash memory

 The whole 16M flash can be used by yourself, the system fonts are stored in MCU flash, not in 16M flash memory.

RE:Flash memory

Now I can't seem to get flashWrite to work. Any program that I have flashWrite in locks up when flashWrite is called. I also tried using the manual FLMWR command and the same thing is happening. The Flash memory test example also locks up.  The MCU is also printing " Down Writing!" to the screen.

Erasing and reading from flash seem to be working.

My display is a 2.2 inch touchscreen with 16M flash and SD.

I'm using I2C on this device. Connected to Arduino Nano v3.

I have the SD working properly, so I can store data in it, but it would be nice to be able to store commands sets in the flash memory.

 

 

 

 

 

 

RE:Flash memory

1) Check "MEM_WP" jumper on the board, make sure it not shorted.

2) Run sample code: Touch_Flash_for_Checkbox_and_Radio_buttons

uncomment the following code:

   //If your flash memory is blank, you need use the following 4 line of code to write command sets to flash

  /*
    flashErase(saddr,4096);  //erase length of 4096 bytes for story command sets to drawing checkbox, and radio buttons
    flashWrite(saddr,sizeof(checked), checked);  
    flashWrite(saddr+256, sizeof(uncheck), uncheck); 
    flashWrite(saddr+512, sizeof(radioChecked), radioChecked);
    flashWrite(saddr+768, sizeof(radioUnchecked), radioUnchecked);
  //*/
to
    //If your flash memory is blank, you need use the following 4 line of code to write command sets to flash
 
 //*
    flashErase(saddr,4096);  //erase length of 4096 bytes for story command sets to drawing checkbox, and radio buttons
    flashWrite(saddr,sizeof(checked), checked);  
    flashWrite(saddr+256, sizeof(uncheck), uncheck); 
    flashWrite(saddr+512, sizeof(radioChecked), radioChecked);
    flashWrite(saddr+768, sizeof(radioUnchecked), radioUnchecked);
  //*/

and see if the code run like this:

https://www.youtube.com/watch?v=qKCvrKN4fbc

RE:Flash memory

I checked the MEM_WP pads, and they were open.

I did the uncommenting and ran the radio and checkbox example, and it worked properly.

The flash memory test example is still not working. I noticed the flashWrite function there is only writing 2 bytes for length. The flashWrite function in the checkbox example is writing 3 bytes for length.

Also, Is it necessary to erase a block of flash memory before writing anything to it? If so, then that would be the problem I'm having with my code.

RE:Flash memory

 We found the problem in sample code of "Digole_Flash_Mem_Test", this is old version when we developing the module, now, the erease commands are changed, please use the founction in sample of:Touch_Flash_for_Checkbox_and_Radio_buttons".

Yes, you only need earase 2 bytes before writing to it. use following commands:

    flashErase(startAddress,2);  
    flashWrite(startAddress,2, pointerTo2bytes);  
 The module will use screen memory to store useful data in the block of flash where you just want earase partial of it, so, you will see massive dots at the bottom of screen. So, you can earase what ever the length of flash you want.
 
We just update the sample code for Arduino, please re-download it

 

Copyright Digole Digital Solutions, 2008-2017. All rights reserved.
Powered by Victor Sun