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

Linker error ut-Kernel in Keil IDE(Undefined symbol knl_finish_device (referred from sysstartup.o))

Hi all,

I am using Keil uVision 5.18a and I have Freescale FRDM K64F(MK64FN1M0VLL12) board.

I am tring to import microT-kernel 2.0 source code to Keil IDE. I've created Software Pack for this. I can import the pack. I can compile the code successfully and I import startup files from Runtime Env Manager for MK64F12 but it gives me error in link stage.

.\test-arm.axf: Error: L6218E: Undefined symbol knl_finish_device (referred from sysstartup.o).
.\test-arm.axf: Error: L6218E: Undefined symbol knl_init_device (referred from sysstartup.o).
.\test-arm.axf: Error: L6218E: Undefined symbol knl_restart_device (referred from sysstartup.o).
.\test-arm.axf: Error: L6218E: Undefined symbol knl_start_device (referred from sysstartup.o).
.\test-arm.axf: Error: L6218E: Undefined symbol disint (referred from device.o).
.\test-arm.axf: Error: L6218E: Undefined symbol enaint (referred from device.o).
.\test-arm.axf: Error: L6218E: Undefined symbol knl_dispatch (referred from eventflag.o).
.\test-arm.axf: Error: L6218E: Undefined symbol knl_getBASEPRI (referred from eventflag.o).
.\test-arm.axf: Error: L6218E: Undefined symbol knl_taskindp (referred from eventflag.o).
.\test-arm.axf: Error: L6218E: Undefined symbol knl_lowmem_limit (referred from memory.o).

My .pdsc file for creating pack.
http://pasted.co/69252700

What can I do to solve this issue?

Parents
  • I guess I fixed this. I configured pack file wrongly then it didnt assembly the .S files. I changed it. But now, I got asm error. Errors:

    cpu_support.S(36): error: A1137E: Unexpected characters at end of line
    cpu_support.S(69): error: A1167E: Invalid line start
    cpu_support.S(105): error: A1816E: Unknown opcode 'stmfd' in CODE16, but exists in THUMB
    

    623 errors like these.

    My asm configuration
    s12.postimg.org/.../Ads_z.png

Reply
  • I guess I fixed this. I configured pack file wrongly then it didnt assembly the .S files. I changed it. But now, I got asm error. Errors:

    cpu_support.S(36): error: A1137E: Unexpected characters at end of line
    cpu_support.S(69): error: A1167E: Invalid line start
    cpu_support.S(105): error: A1816E: Unknown opcode 'stmfd' in CODE16, but exists in THUMB
    

    623 errors like these.

    My asm configuration
    s12.postimg.org/.../Ads_z.png

Children
No data