SBL2e & Software Update on Post

Discussion to talk about software related topics only.
Post Reply
cmo
Posts: 20
Joined: Sat Jul 24, 2010 4:20 pm

SBL2e & Software Update on Post

Post 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.
User avatar
pbreed
Posts: 1088
Joined: Thu Apr 24, 2008 3:58 pm

Re: SBL2e & Software Update on Post

Post by pbreed »

Update from a post is not possible with the SBL2E it does not have enough RAM.
cmo
Posts: 20
Joined: Sat Jul 24, 2010 4:20 pm

Re: SBL2e & Software Update on Post

Post 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.
rnixon
Posts: 833
Joined: Thu Apr 24, 2008 3:59 pm

Re: SBL2e & Software Update on Post

Post 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.
User avatar
pbreed
Posts: 1088
Joined: Thu Apr 24, 2008 3:58 pm

Re: SBL2e & Software Update on Post

Post 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
cmo
Posts: 20
Joined: Sat Jul 24, 2010 4:20 pm

Re: SBL2e & Software Update on Post

Post by cmo »

Thanks for the info gents.
Post Reply