Page 1 of 1

SBL2e & Software Update on Post

Posted: Thu Jul 29, 2010 5:23 pm
by cmo
After successfully getting NTP time to work on an SBL2e with the help of this forum, I am hoping for one more success.

I'm looking to demonstrate the capability to update the software on an SBL2e using the form post method. I've got this to work on a mod 5270 (from the example 'postupdate'), however when I try to port that script over, I get a host of errors.

Is it possible and are there any examples out there? I realize there may be a problem with the available memory.

As a side question, is there a way to tell how much flash or ram memory is in use? I'm not sure what happens if I exceed the quota.

Thanks in advance.

Re: SBL2e & Software Update on Post

Posted: Fri Jul 30, 2010 10:43 am
by pbreed
Update from a post is not possible with the SBL2E it does not have enough RAM.

Re: SBL2e & Software Update on Post

Posted: Fri Jul 30, 2010 4:39 pm
by cmo
Thanks for the response. I guess I assume that if autoupdate can be done, so why not by another method to get the s19 file to the device?

I'm still unclear how I can tell how much ram/flash I have available. Can I tell from within my program? Any help would be appreciated.

Re: SBL2e & Software Update on Post

Posted: Tue Aug 03, 2010 2:23 pm
by rnixon
The post requires that you store the entire image in ram before programming flash, so you don't have enough space in 32k. There is a lot of detail behind that fact, but this is just the way a web post works. The autoupdate is free to do it in small blocks without having the whole file available in ram.

Re: SBL2e & Software Update on Post

Posted: Tue Aug 03, 2010 3:23 pm
by pbreed
The report at the end of the build should have the Flash and RAM stats.


******************************Build summary ******************************
Used 64404 bytes of 229376 availible flash (28.08%)
Used 21312 bytes of 31488 availible ram (67.68%)
NNDK release tag version:Rel24_rc2

Re: SBL2e & Software Update on Post

Posted: Tue Aug 03, 2010 4:43 pm
by cmo
Thanks for the info gents.