PDA

View Full Version : Assembler on Pluga2129


ddlawrence
03-08-10, 08:31 PM
Hi. I am taking an ARM programming course and would like to use my Pluga2129 to do the exercises. Is it necessary to wipe out MPE Forth? If yes, how do I do it?

thanks..........don

RMDumse
03-09-10, 06:53 AM
Sorry my memory isn't better, Don, but if you check the documentation there's a reload word provided that starts the boot loader as I recall. Once starrted it will "replace itself." I don't remember the exact name off the top of my head.

ddlawrence
03-11-10, 06:47 PM
OK, thanks..........don

RMDumse
03-12-10, 11:40 AM
Okay I went to the MPE documentation on our webpage and found section 21

"21 Reflashing the system
21.1 Introduction
If you destroy the application in the internal Flash, you must use the Philips ISP loader to reload an Intel Hex file supplied on the ARM Stamp CD. A suitable baud rate is 38400 baud. To use this, ensure that port P0.14 is low. There is a link on the board that (when installed) enforces this. Then reset the board and use the Philips loader. Then close the Philips loader. Ensure that the P0.14 link is removed before resetting the board. Then connect using AIDE’s PowerTerm or HyperTerm. Once the Forth system is running again, you can use the word REFLASH ( -- ) to download a new binary image. Note that REFLASH only handles binary memory image files. The LPC210x can only be reflashed from an application by a program running from RAM. A separate application built by a control file REPROG\REPROG*.CTL is used to do this. A binary image REPROG*.IMG is inserted into the application. When required, the code is copied into the internal RAM and executed from RAM. Return is by rebooting the system. The contents of the internal RAM and Flash are destroyed, therefore any data that must be preserved should be saved externally to the chip. Alternatively, modify the reprogramming code to use sector 14 ($0001:C000..0001:DFFF) to hold data to be preserved."