; ================================================; Function : JTAG_Read_Bkru ; ================================================; input parameters; r0 : address of the register to read ; ================================================; output parameters; r1 : address to store the result ; ================================================; r4 : used by TDO, TDI, TCK, TMS ; r5 : used by TDO, TDI, TCK, TMS; r6 : address bitmask ; r7 : output bitmask ; r8 : output value; r9 : scratch register; r10 : used to clear TDIJTAG_Read_Bkru INIT_JTAG MOV r6, #1 ; init address bitMask MOV r7, #1 ; init output bitMask MOV r8, #0 MOV r10, #0...
...extern void JTAG_Read_Bkru(unsigned char address, unsigned int *data);...
...unsigned int JTAG_Read_Debug_Status(){ unsigned int value; //* Select ICEBreaker Scan Chain JTAG_Select_Scan_Chain(ICE_BREAKER); //* Read the Debug Status register JTAG_Read_Bkru(ICE_DBG_STS, &value); return (value & ICE_DBG_STS_MASK);}...
Hello
OK I took a look at the project you have attached.
Apparently you are targeting an ARM core. Am I right?
Build tools delivered with CodeWarrior for ARM are not supported and maintained by
Freescale.
You will have to request some help from ARM. They will be able to assist you in programming with their build tools.
Sorry for the confusion, I did not check first which CPU you were targeting.
CrasyCat
Hello
I am missing a little bit of context information here.
However, did you tell the label JTAG_Read_Bkru should be visible outside of the .s file?
Just add a
xref JTAG_Read_Bkru
in your assembly source file.
CrasyCat
Hello
Please send a whole project reproducing the trouble.
We will not be able to move forward without a real project
CrasyCat
Hello,
here is CW project reproducing error...
Thanks,
iam
Hello
Oups I had a typo in my last message. In fact you HAVE to use XDEF not XREF in your assembly source file.
Sorry about the confusion.
I am not sure EXTERN is supported.
CrasyCat