Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Jan Waclawek

#166
P89V51Rx2/P89LV51Rx2 / Re: 89V51RD2
June 21, 2005, 12:09:39 AM
Hmmmm.... The P89V51RD2 itself? :-)
Try looking for SoftICE.

Jan Waclawek
#167
LPC9xx/LPC9xxx / Re: P89LPC938 Programming
June 18, 2005, 02:28:52 AM
It can be done also the other way round - while using NoTouch with Backdoor (C)Erik the mcu starts in the application and "goes" to the bootloader upon "request"; it could also start in the bootloader which would jump to application when needed.

E.g. the standard bootloader can be modified to the style of P89V51RD2, i.e. if no successful autobaud occus within a certain time period, it would start the application.

Caveat: upgrading the bootloader  using ISP is nontrivial.

Jan Waclawek



Post Edited (06-18-05 02:32)
#168
LPC9xx/LPC9xxx / Re: P89LPC938 Programming
June 16, 2005, 06:56:28 AM
> OK, but that would require a separate PB
> and that one WILL be "accidentially" pushed

That's why 3 buttons have to be installed on 3 sides of the box, at least 30cm (12") apart from each other, labelled "Ctrl", "Alt" and "Del", wired in series...

> No, not the Rx - you may burn your transciever, configure Tx
> as Quasi and use that one as held down at power up/reset to activate.

True, sorry.

>> "(alternatively you can enable the bootloader activation by break as
>> Andrew said earlier). "
> That requires all the funky hardware
Not at all, LPC932A1 user manual says:
The break detect can be used to reset the device and force the device into ISP mode by setting the EBRR bit (AUXR1.6)
Well, it is NOT mentioned in the ISP section, only in the UART section... (but probably all of us wrote various pieces of documentation...)

Jan Waclawek
#169
Off-Topic (Read Only) / Re: eeprom AT89C51ED2
June 16, 2005, 06:25:32 AM
This forum is on ISP programming of Philips parts... Better come to 8052.com forum with your question.

Btw. the datasheet contains remarkably clear description of both read and write procedures, both in writing and diagrams; it is really easy to write down those 10 lines needed...

Jan Waclawek
#170
P89V51Rx2/P89LV51Rx2 / Re: 89V51RD2
June 16, 2005, 01:54:45 AM
> but when i float the pin PSEN, i cant get into ISP

PSEN should be left floating.

Have you tried everything from
http://www.esacademy.com/software/flashmagic/appnotes/ISPProblemsAppNote.pdf
?


Jan Waclawek
#171
LPC9xx/LPC9xxx / Re: P89LPC938 Programming
June 16, 2005, 01:14:25 AM
Jim,

First, let's make one thing clear - Erik just sketched the procedure for LPCs (based on his prior experience with RD2/66x), but it needs a bit more - so I hope you are referring to http://www.esacademy.com/software/flashmagic/resources/touchless935.pdf (by Lex Timmerman, based on Erik's work). Erik mentioned this, too.

1. Place the routine where it suits to you. Placing it in an ISR activated by pushbutton is a good idea if you have a spare input; Erik's remark (activate it by holding down the Rx pin = break) aims to spare this pin (alternatively you can enable the bootloader activation by break as Andrew said earlier). If you have some communication protocol established, maybe it's also a good idea to implement a command which results in call to this routine, so you can get into bootloader without opening the box (again (C) Erik).
If you insert it on 0000h, upon first running your application it gets activated and the subsequent reset will invoke

2. Not absolutely completely - it is maybe also a good idea to include restoration of the boot vector (its exact value depends on amount of FLASH on that particular LPC9xx), just for the case you accidentally change it during ISP.

3. You can also embed the whole bootloader or its part into your application. There is an appnote at Philips site, including the bootloader's source code in the accompanying zipfile. You can at least get inspired by it...

Jan
#172
LPC9xx/LPC9xxx / Re: P89LPC938 Programming
June 15, 2005, 05:41:03 AM
> Basically I recommend two methods for activation:
> 1) the normal: something that can be done without opening the box
> (pressing two keys simultaneously

Or, better, three.
Ctrl-Alt-Del
:-)

Jan Waclawek
#173
LPC9xx/LPC9xxx / Re: P89LPC938 Programming
June 15, 2005, 12:09:19 AM
Basically, Erik's idea is to implement the way to put the chip into virgin-like state in the _user_application_. Then, the choice of stimulus upon which this occurs is upon the user's choice. It can be actuation of some input, a long pulse on Rx line, or if there is some communication protocol implemented, this may be a part of the protocol, anything.

Jan Waclawek
#174
Reset != power-up

Jan Waclawek
#175
Erik, this is different from the P89C51Rx2's - there, if you program the status byte properly, after reset the user program starts to execute immediately, so you can rely on that RAM will remain unaltered from the pre-reset state (usable e.g. if you use the powerdown mode and battery-backup the RAM) (while, yes, if you use the IAP routines, or go to ISP in any way, it alters the RAM).
But in P89V51RD2, the bootloader starts involuntarily after reset, modifying the RAM, before it jumps into the user program start.

If the "next batch" is programmed by YOUR bootloader, it will be the same...
And Philips recommends using a particular bootloader downloadable from their site, so that will be consistent, too,  as long as they don't change or withdraw that bootloader.

Unfortunately, Philips did not publish the details of the FLASH programming. But one can consider the remarkable similarity of P89V51RD2 to a '51 clone of an another manufacturer, which did publish the necessary data...

Jan Waclawek



Post Edited (06-14-05 08:19)
#176
If you don't need the bootloader(e.g. if you are using a parallel device programmer), you can possibly replace it with a short code thet uses no RAM and switches to the user FLASH immediately. Even if you need the bootloader, it can be possibly modified so that it won't use any RAM until successful autobaud.

Jan Waclawek
#177
LPC9xx/LPC9xxx / Re: P89LPC938 Programming
June 08, 2005, 03:45:24 AM
My first personal experience was quite encouraging.
I wired up a LPC932 onto an old board with MAX232 and talked to it immediately - from factory the bootloader is there and runs immediately.

For added convenience you should implement something similar to NoTouch and you can forget the  "three-pulses" juggling.

Or, you can always write your own bootloader, e.g. in the P89V51RD2-style, waiting for the "U"s for some limited time, then jumping to the application.

Oh, and I even don't use FlashMagic, just a plain stupid terminal emulator...

:-)

Jan Waclawek
#178
This might be as well an incompetent setting of bootvector while programming.
And note, the kit uses winisp. Slightly out of date, isn't it?
I would contact the kit's vendor.

Jan Waclawek
#179
Oh, Erik, Google is exactly as my son, he knows the right answer just you need to figure out how to ask... :-)
http://www.google.com/search?q=MTS-51+trainer
gives you the manufacturer. However, there is almost no information, probably unless you register as a reseller - but, honestly, do you really need more info?
I think this might be the infamous "lost boot vector" case...
Muhammad: you will probably need to get somebody with a parallel programmer to reprogram the boot vector.

Jan Waclawek
#180
LPC9xx/LPC9xxx / Re: Boot loader Jump
May 23, 2005, 01:25:10 AM
See http://www.8052.com/forum/read.phtml?id=84899 and followup.

Jan Waclawek

PS. Erik: My - wrong - impression was based on http://www.8052.com/users/erikm/NoTouch932.phtml which is pointed to from the FM main page.
Sorry.