Hi.

Am 20.02.2013 um 10:16 schrieb Enoch:

>> So, do I see this right?
>> WIPE restores a known state. This state needs to be calculated at
>> assembly time.

Yes.


>> It includes the initial state of eeprom, wordlist and
>> other pointers, user area, disabling tasks ... where do you stop?
>> Does wipe call COLD as well? Do you need to clear any interrupts,  
>> too?
>> Does it restore the default interrupt handlers? No, I did not look
>> at the code of WIPE.

WIPE is simple in 4e4th, since it it taylored for the MSP430G2553 on  
LaunchPad.
It just erases user flash and executes FACTORY then.
FACTORY moves a ROM tabel to RAM user area, clears variable area in  
RAM to zero, and does a SAVE on it so that 'factory settings' is the  
new app, and runs into ABORT.

There is no eeprom, and we do not have to take care of other MCUs.
Michael




>>
>>
>> Well, I'm using marker a lot. And I don't see, how wipe would get me
>> any further. The only time I need to reflash is when I screwed up
>> something in the dictionary before the first marker or som flash
>> based data structures.
>
> MARKER is great for development, and I use it as well, but it is not
> good enough in production situation:
>
> Let's say we are consultants and ship an Amforth based "blackbox" to a
> client whose firmware we loaded before shipping via JTAG. When this
> firmware needs a bug fix or an upgrade we must provide the client  
> with a
> serial port based method of new firmware install (compiling/uploading
> new Forth) without the client having to open the box.
>
> 4e4th is targetting educational applications. There too there's a need
> for rapid "factory reset" between one student application to the next
> one.

Exactly. This is what we had in mind.

And a recovery mechanism if a student gets locked in forth some how,  
has no terminal access any more, and reset does not help.
Press switch S2+reset to WIPE and start over.

But you have to chose 4e4thpro (pro for production) to strip S2  
booting capability and use that pin for apps too.

Michael


>
> Regards, Enoch.
>
>
>
>
>
>
>
>
>
>
>
>
>
>>
>> Cheers,
>> Erich
>>
>> --------------------------------------------------------------------- 
>> ---------
>> Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics
>> Download AppDynamics Lite for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb
>
>
> ---------------------------------------------------------------------- 
> --------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to