thank you for the suggestion, andy.
the only difference my code had with the iap library was that i was using mov #20H to auxr1 instead of using orl in my iap_prog_data_byte routine. i got my code straight from the device data sheet. i made the change to orl and got the same results.
i still don't understand why i can successfully write to code 30h, 31h once, but when i add code to try and write to those same locations any more times, the initial write fails.
maybe i'll try the 8052.com forum.
thanks again,
-chris
the only difference my code had with the iap library was that i was using mov #20H to auxr1 instead of using orl in my iap_prog_data_byte routine. i got my code straight from the device data sheet. i made the change to orl and got the same results.
i still don't understand why i can successfully write to code 30h, 31h once, but when i add code to try and write to those same locations any more times, the initial write fails.
maybe i'll try the 8052.com forum.
thanks again,
-chris