This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can't write to SFRs after adding the corresponding functions in ISD51.A51

in the article "SFR Access"
(http://www.keil.com/support/man/docs/isd51/isd51_sw_sfraccess.htm),it is mentioned that

ISD51 includes only a few functions to write to SFRs. These functions are listed in the ISD51.A51 file. If you write to SFRs from within the µVision IDE, corresponding functions must be available in ISD51.A51. By default, only a few functions are provided (ACC, B, DPH, DPL, P0, P3, PSW, and SP).

Use the following example as a template for your own SFR write routines. This template writes to the SFR at address 0xA5.

;--------------------------------------------------------------------------
; Command: Write SFR04:  SFR:0xA5
;  LOW (?ISD?WRITESFR04), HIGH (?ISD?WRITESFR04), dummy, SFR:0xA5
;
PUBLIC ?ISD?WRITESFR04
?ISD?WRITESFR04:
                MOV     0A5H,A
                AJMP    ?ISD?CMDLOOP

I add a function in the ISD51.A51 for writing to 0x90(P1)In System:
PUBLIC ?ISD?WRITESFR06
?ISD?WRITESFR06:
                MOV     090H,A
                AJMP    ?ISD?CMDLOOP
But the error appears:

This ISD51 configration does not support to write an SFR at address 0x90!
You can add another ?ISDWRITESFRxx function in the ISD51.A51 module to write this SFR

Who can tell me where my errors are?
ISD51 has examples for Generic_8052,Infineon_C868,Nordic_nRF,Philips LPC9xx,TI_MSC1200,TI_MSC121x.Did friends using them meet this problem?
Thanks!
addtion:I use aduc831,and there are no errors In-System Debugger with this chip.

0