Main Menu
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 - Ingo

#1
Old Topics / rx2iap.lib
September 22, 2004, 05:30:29 AM
Hi
Can I use this lib on 89c664?

/Ingo
#2
Old Topics / Re: 669iaplib
July 14, 2004, 12:34:22 AM
The testprogram is from you, and it's include the function
"iap_erase_block" .

The testprogram have the stack point at 0x21 and it works.

After I changed the stack to point at 0x5b insteed of 0x49 in my program, it works.

So there must be some stack problems with 669.

/Ingo
#3
Old Topics / Re: 669iaplib
July 13, 2004, 02:31:03 AM
I found this on philps forum
"Posted: Wed Dec 17, 2003 10:45 pm    Post subject:    

--------------------------------------------------------------------------------
 
I've had a similar problem with IAP when going to the new version of P89C51RC chips. I could not write new code unless the stack pointer was not set to be between 4Ah and 51h. Philips has not been able to verify this as a problem or tell me what i'm doing wrong.
"
I changed my program so that the stack start at 0x5B, and now it works.
#4
Old Topics / Re: 669iaplib
July 13, 2004, 12:45:28 AM
Sorry
The testprogram "k669IAPLIBExample" runs in ROM HUGE and LARGE.
But in my application the function "iap_erase_block(x) allways make the
processor to reset/start over from PC 0000.

Is there any change to get a copy of the soft that's behind the IAP?

Couldt it be a STACK problem? intern/extern RAM?
#5
Old Topics / Re: 669iaplib
July 12, 2004, 12:24:38 AM
Yes
And it also run as Large 64K program with my changes
#6
Old Topics / Re: 669iaplib
July 09, 2004, 01:46:35 AM

I do have some problem with the function "erase_block".
"
   put_message("669 IAP Test\r\n");   
  sprintf(Modemstring,"Manufacturer ID = %2.2bX\r\n", iap_read_manufacturer_id());
   put_message(Modemstring);   
  sprintf(Modemstring,"Device ID 1 = %2.2bX\r\n", iap_read_device_id(1));
   put_message(Modemstring);   
  sprintf(Modemstring,"Device ID 2 = %2.2bX\r\n", iap_read_device_id(2));
   put_message(Modemstring);   
  sprintf(Modemstring,"Security bits = %2.2bX\r\n", iap_read_security_bits());
   put_message(Modemstring);   

  sprintf(Modemstring,"0x00d000 contains %2.2bX\r\n", iap_read_data_byte(0xd000, 0x00));
   put_message(Modemstring);   
 
  if (!iap_program_data_byte(0x55, 0xd000, 0x00))
    sprintf(Modemstring,"0x00d000 programmed to 0x55 ok\r\n");
  else
    sprintf(Modemstring,"Error programming 0x00d000 to 0x55\r\n");
   put_message(Modemstring);   

  sprintf(Modemstring,"0x00d000 contains %2.2bX\r\n", iap_read_data_byte(0xd000, 0x00));
   put_message(Modemstring);   

  if (!iap_erase_block(BLOCK_6))
    sprintf(Modemstring,"Block 6 erased\r\n");
  else
    sprintf(Modemstring,"Error erasing block 6\r\n");
   put_message(Modemstring);   

"
The code runs to   "if (!iap_erase_block(BLOCK_6))" and then the processor reset.
And I have no watchdog running. so what is wrong any idea?

I have all the security bits to 0.
By the way, where can I get information about the purpose for each security bit?
#7
Old Topics / Re: 669iaplib
July 09, 2004, 01:03:29 AM
Ok

Change
?PR?iap_read_manufacturer_id?P669IAPLIB      SEGMENT ECODE INSEG
.
.
To
?PR?iap_read_manufacturer_id?P669IAPLIB      SEGMENT CODE INSEG
.
.

Is that all ?
#8
Old Topics / 669iaplib
July 08, 2004, 08:35:57 AM
Hi
I want to use the 669iaplib, but not as HUGE ROM model.
Is there anything else to change, or just ERET to RET?
#9
PXA-Gx9 / Re: XA-G49 erase failure
September 19, 2003, 02:22:34 AM
If you need to see what FlashMagic do on our RS232 port,
Use this tool.

http://www.sysinternals.com/ntw2k/freeware/portmon.shtml

/Ingo
#10
Old Topics / Re: Execute Command
September 19, 2003, 02:18:03 AM
Hi Andrew
Looking in the application note AN461_9.

:02000005800178

0001 = read signature byte
#11
Old Topics / Re: Intel hex format
September 02, 2003, 01:12:51 AM
#12
Old Topics / Re: See what happens on RS232
July 07, 2003, 01:29:46 AM
Hi

If you skip "/Ingo" and only type
http://www.sysinternals.com/ntw2k/freeware/portmon.shtml
then it's still there.


/Ingo
#13
Old Topics / See what happens on RS232
June 26, 2003, 04:13:18 AM
If you need to see what FlashMagic do on our RS232 port,
Use this tool.

http://www.sysinternals.com/ntw2k/freeware/portmon.shtml

/Ingo
#14
Old Topics / 89c664
June 11, 2003, 07:33:25 AM
Hi

My problem is that i only have a 4 wire RS232 connection.
Rxd, Txd, GND and RTS.

I try'ed to use DTR and RTS to control RST and PSEN
In my case RTS to control PSEN.
FlashMagic send a 'U' to set up the Baudrate.
My software detect that 'U' echo back 'U.* and then let the "HARDWARE WATCHDOG TIMER (ONE-TIME ENABLED WITH RESET-OUT FOR P89C660/662/664)" make a  reset for me.
This works not so good, about 1 of 5.

At what point will FlashMagic send 'U'. Before RTS or under RTS or after RTS?

So i tried "STARTBOOTROM" insteed, and it works.
But FlashMagic activates RTS when it programming my device, so when it try to restart my software "PSEN" is low and the device will go into "ISP mode" again.

Is this a BUG or is there a way to keep RTS inactive when running STARTBOOTROM?

I want to have both option aviable
#15
Old Topics / Re: reprogram 89c664 with Flash Magic
June 03, 2003, 05:14:14 AM
Hi Valent