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

Problem with add c files to project with start.s file

Can anyone say me please . Why when i add C file to project created im MDK lite ARM micro vision .LPC2378 NXP Phillips board, code starting run from c file. Code ignore LPC2300.s bootloader file and start from not relevant place - c source file. If it is a bug or i need change something in setting??
Thanks

Parents
  • If I start run code as it wrote in original boot loader file LPC2300.s code start not from Vectors. So I wrote directive ENTRY just after
    AREA RESET, CODE, READONLY ARM ENTRY
    and before

    Vectors LDR PC, Reset_Addr LDR PC, Undef_Addr

    And code now start correctly.
    But after I Add some c file to project .compile result - No errors
    Start debug and code start from 0x0 of c file not boot loader.
    precisely from __main:
    0x00000000 EB000000 BL __scatterload(0x00000008)
    0x00000004 EB000024 BL __rt_entry(0x0000009C)
    Obviously map file is changed.
    My question what I need to change in setting for start from proper place - boot loader file ??
    Thanks

Reply
  • If I start run code as it wrote in original boot loader file LPC2300.s code start not from Vectors. So I wrote directive ENTRY just after
    AREA RESET, CODE, READONLY ARM ENTRY
    and before

    Vectors LDR PC, Reset_Addr LDR PC, Undef_Addr

    And code now start correctly.
    But after I Add some c file to project .compile result - No errors
    Start debug and code start from 0x0 of c file not boot loader.
    precisely from __main:
    0x00000000 EB000000 BL __scatterload(0x00000008)
    0x00000004 EB000024 BL __rt_entry(0x0000009C)
    Obviously map file is changed.
    My question what I need to change in setting for start from proper place - boot loader file ??
    Thanks

Children
No data