Search the web
Sign In
New User? Sign Up
lpc900_users
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
ISP boot code / user-manual discrepancy   Message List  
Reply | Forward Message #437 of 637 |
Re: ISP boot code / user-manual discrepancy

I did not include either of those header files.  In fact, the 'LPC2_ISP_8K_V04.a51' compiles without adding any other files to the project. I compiled 'LPC2_ISP_8K_V04.a51' with no other files so F0 can't be a definition unless it is in 'LPC2_ISP_8K_V04.a51', but it is not in that file.



--- In lpc900_users@yahoogroups.com, Nilesh <inileshce@...> wrote:
>
> Dear John,
>
> FO bit is PSW only. You can also look at header(.h) file or include(.inc) file
>
> In LPC9xx.h ---> sbit F0 = PSW^5;
>
> In LPC9xx.INC ---> F0 BIT 0D5H
>
>
> john j_funk1425@... wrote:
> I don't believe that F0 is the PSW flag bit since I can't find a
> definition (like: F0 EQU D0) in the file. This would mean the
> assembler would interpret it as an absolute number of 0xF0.
> The CRC is good when checking after programming the device. but if
> the IAP function is used for programming just a few bytes doing a CRC
> for the whole sector seems excessive.
>
> --- In lpc900_users@yahoogroups.com, "Dr. Vithal N. Kamat"
> vnk_ad1@ wrote:
> >
> > Dear John,
> > I had a look at the LPC2_ISP_8K_V04.a51, and it is the F0 flag in
> > PSW.
> > You are right that the IAP function returns error when the Carry
> > Flag is set, and this flag is not used in the above ISP code.
> > However, a different approach is used to detect program write
> > errors - such as by verifying the Block level CRC and global CRC.
> > Vithal Kamat
> >
> > --- In lpc900_users@yahoogroups.com, "john" <j_funk1425@> wrote:
> > >
> > > I noticed that the User manual (UM10116.pdf Rev. 02 — 9 June 2005)
> > > states that the IAP functions return an error when the Carry Flag
> > is
> > > set. But the ISP boot code from NXP, LPC2_ISP_8K_V04.a51, is
> > testing
> > > the bit F0:
> > > JB F0,ERROR ;check if an error occured
> > >
> > > At first I thought it was the F0 flag in PSW but there is no
> > definition
> > > for that so the assembler is reading it as the F0 bit which is
> bit
> > zero
> > > of the B register.
> > >
> > > Does anyone know if the user manual is correct or if the ISP boot
> > code
> > > is right? If the ISP boot code is wrong and if it's the same code
> > that
> > > comes from the factory the ISP code would never return program
> > write
> > > errors!
> > >
> >
>
>
>
>
>
>
> ---------------------------------
> The DELETE button on Yahoo! Mail is unhappy. Know why?
>


Wed Jun 27, 2007 6:59 am

j_funk1425
Offline Offline
Send Email Send Email

Forward
Message #437 of 637 |
Expand Messages Author Sort by Date

I noticed that the User manual (UM10116.pdf Rev. 02 — 9 June 2005) states that the IAP functions return an error when the Carry Flag is set. But the ISP boot...
john
j_funk1425
Offline Send Email
Jun 23, 2007
2:53 am

Dear John, I had a look at the LPC2_ISP_8K_V04.a51, and it is the F0 flag in PSW. You are right that the IAP function returns error when the Carry Flag is set,...
Dr. Vithal N. Kamat
vnk_ad1
Offline Send Email
Jun 26, 2007
3:09 pm

I don't believe that F0 is the PSW flag bit since I can't find a definition (like: F0 EQU D0) in the file. This would mean the assembler would interpret it as...
john
j_funk1425
Offline Send Email
Jun 26, 2007
4:37 pm

Dear John, FO bit is PSW only. You can also look at header(.h) file or include(.inc) file In LPC9xx.h ---> sbit F0 = PSW^5; In LPC9xx.INC ---> F0 BIT...
Nilesh
inileshce
Offline Send Email
Jun 27, 2007
4:54 am

I did not include either of those header files. In fact, the 'LPC2_ISP_8K_V04.a51' compiles without adding any other files to the project. I compiled...
john
j_funk1425
Offline Send Email
Jun 27, 2007
6:59 am

Ok let me know which crosss compiler are you using ? If you are using Keil then by default SFR definition is of 8051 standard SFR definition. Nilesh john...
Nilesh
inileshce
Offline Send Email
Jun 27, 2007
7:34 am

I'm using Keil. ... standard SFR definition. ... the 'LPC2_ISP_8K_V04.a51' compiles without adding any other files to the project. I compiled...
john
j_funk1425
Offline Send Email
Jun 27, 2007
4:49 pm

OK, I see what you guys mean. The uVision IDE try's to be too smart for it's own good and adds the definitions (somewhere?) for the standard 8051 by default....
john
j_funk1425
Offline Send Email
Jun 27, 2007
5:35 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help