I download new software using a listening TCP socket. Each TCP packet is 1000 bytes so I use the same cell of same ad handle, How can I increment the pointer of the cell each time new packet has camed. Because if I use only adl_adWrite function:
adl_adWrite(handle,size,data) … every newer packet is overwritten in handle. I must use same handle because
adl_adInstall(handle) function gets only one handle
what should I do?
I tried to first download all the *.dwl then write into flash but when file is larger then 64K I can’t malloc place in RAM!
I presume you want to download customer application (DOTA I).
First you have to know how large is your new application (max. length of wpb.dwl file). Assuming you have written quite a big appli:
#define DWL_CELL_ID 10 // cell ID
#define DWL_CELL_SIZE 256000 // size of dwl cell
Of course, cell size can be adjusted dinamically, but you allways have to assure that there is enough space in AD storage. If not, use adDelete and adFormat (you will loose some data, but who cares, your primary goal is to run new features!). Subscribe your dwl cell in AD storage: