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

ERROR 65

Hi there,

Iam getting error 65 message --- cantest.c(30): error: #65: expected a ";"

when I add the following line of code


unsigned  int StandardFilter[2] _at_ 0xE0038000;

Kindly give me your suggestions.

Parents Reply Children
  • Also the correct syntax should be :

    unsigned int StandardFilter[2] __at (0xE0038000);

  • Thank you , that debugged the error.
    but Iam gettting one more error which Iam unable to
    locate :


    Build target 'MCB2300'
    compiling irq.c...
    compiling target.c...
    compiling can.c...
    compiling cantest.c...
    assembling Startup.s...
    linking...
    Program Size: Code=3224 RO-data=32 RW-data=36 ZI-data=-1610383364
    FromELF: creating hex file...
    ".\Obj\can_release.axf" - 1 Error(s), 0 Warning(s).

    I suspect it may be something to do with ZI data.
    Do i need to do some settings related to it ?

    Here is a part of the source code which i added after which i got these errors:

    DWORD StandardFilter[2] __at (0xE0038000);
    DWORD GroupStdFilter[2] __at (0xE0038008);
    DWORD IndividualExtFilter[2] __at (0xE0038010);
    DWORD GroupExtFilter[2] __at (0xE0038018);

  • Hi there, (This is a continuation from the previous posted thread).
    I have tried by increasing the Stack size in the startup.s file( to Stack_Size EQU 0x00003fff )
    which was initially set as follows:

    UND_Stack_Size  EQU     0x00000000
    SVC_Stack_Size  EQU     0x00000100
    ABT_Stack_Size  EQU     0x00000000
    FIQ_Stack_Size  EQU     0x00000000
    IRQ_Stack_Size  EQU     0x00000100
    USR_Stack_Size  EQU     0x00000200
    
    Stack_Size   EQU  (UND_Stack_Size + SVC_Stack_Size +  ABT_Stack_Size + /
    FIQ_Stack_Size + IRQ_Stack_Size + USR_Stack_Size)
    


    This time Iam seeing the following error :

    Build target 'MCB2300'
    compiling irq.c...
    compiling target.c...
    compiling can.c...
    compiling cantest.c...
    assembling Startup.s...
    linking...
    .\Obj\can_release.axf: error: L6047U: The code in this image is 3184 bytes - this version of the linker will not create images that large
    Target not created

    Iam using the latest evaluation version Keil uVision3
    s/w (MDK3.11) which allows compilation of coding upto 16k.
    Kindly give your suggestions.

  • Change -

    Stack_Size   EQU  (UND_Stack_Size + SVC_Stack_Size +  ABT_Stack_Size + /
    FIQ_Stack_Size + IRQ_Stack_Size + USR_Stack_Size)
    


    to

    Stack_Size   EQU  (UND_Stack_Size + SVC_Stack_Size +  ABT_Stack_Size + \ 
    FIQ_Stack_Size + IRQ_Stack_Size + USR_Stack_Size)
    

    or make Stack_Size EQU 0x00000400

    If you still have problems you may not be able to locate variables at specific locations in the evaluation version (this should be easy enough to get around in the eval version. The real version certianly does support this with no limitation)

  • Hi there, I have tried it but problem mentioned still remains.

  • You removed the __at (xxxxxxx) and it is still causing problems? All of the problems you have mentioned still exist? or it is just the last one with the image size too big?

  • I meant the following error
    ".\Obj\can_release.axf: error: L6047U: The code in this image is 3184 bytes - this version of the linker will not create images that large
    Target not created"

    Actually as per Keil release notes the evaluation version supports code size upto 16kB so, i have no clue to why this is error is occuring.
    Kindly suggest a way to debug this error.

  • You must define the memory region in the Project - Options - Target dialog so that you can use the __at attribute.

  • Yes, the memory region is set. Despite this Iam getting
    the error (as mentioned in my previous post.)

    The Memory region settings for my project are as follows:

    Under TARGET
    IROM1:0x0 IRAM1:0x80000
    Both are checked as Default.

    Under LINKER
    R/O Base :0x00000000
    R/W Base :0x40000000

  • Note:
    If using evaluation ver.
    The 16 Kb size includes code + RO data + data + ZI data.

    Suvidh