ARMweb firmware being overwritten

Questions about the BASICtools and MakeItC
Post Reply
YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

ARMweb firmware being overwritten

Post by YahooArchive »

Hi,
I've downloaded a control program that seems to have hung the ARMbasic. Now when
I hit stop in BASICtools I get the same response:-

Security is off.
mb_security is Off.
getMacAddr
MACInit
No Change
mb_security_on = 0
my mac 8:0:4d:be:41:b5

Welcome to ARMbasic [7.49e]
for the ARMweb




Then if I try to enter a simple program (i = i + 1), and then run it a Com
problem window comes up saying:-

Unable to communicate
Check connection
Check power on Board
Check com port selection.

All of which are ok
when I check communication it synch's with the LPC2138

Where do I go from here. Do I have to reload firmware?



YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: ARMweb firmware being overwritten

Post by YahooArchive »

It seems to be communicating, as the Welcome message comes from the LPC2138.
The connection test under options is most likely working, it should show an
LPC2138 connected.

Were you writing into the Flash? You may have corrupted the firmware, which you
can restore using the load21xx.exe program and web0749e.hex file in the files
section on the forum. I just reloaded the load21xx.exe program, it probably got
removed as it was an older one, though the LPC21xx have never needed any updates
on that, the newer parts have changed the protocol just enough.

YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: ARMweb firmware being overwritten

Post by YahooArchive »

Success! I've been chasing it all day - reloading firmware after each run. It
seems Write($4000,A,512) was the problem - had to move it to
write($20000). By examining the hex download file, it seems two blocks of $10000
are written. But I'm not really sure if this won't write over my own code. The
Memory map for the ARMweb says to use between $3000 and $10000, but this can't
be right.

YahooArchive
Posts: 1462
Joined: Fri Oct 19, 2012 5:11 am

Re: ARMweb firmware being overwritten

Post by YahooArchive »

>By examining the hex download file, it seems two blocks of $10000 are written.
But I'm not really sure if this won't write over my own code. The Memory map for
the ARMweb says to use between $3000 and $10000, but this can't be right.

Actually both addresses are wrong, you should be looking at the map on this page
which shows blocks at &H79000 thru &H7D000 available for the ARMweb.

http://www.coridium.us/ARMhelp/scr/MemMap.html

Post Reply