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

C51: The file order in the project causes errors.

I have problems with startup file, in this article http://www.keil.com/support/docs/2263.htm keil suggest that STARTUP.A51 should be last file in the project (should be linked as last)
But in my project, when STARTUP.A51 is on any other position than first, it cause problems which make my uC reset few times per hour.

Does anybody had such a problem?

I'm using:
IDE-Version: µVision V4.60.6.10
Toolchain: PK51 Prof. Developers Kit for SiLabs Version: 9.51

Best regards,
Marcin

Parents
  • I know that the STARTUP.A51 file must be last or next-to-last. That was configuration I start with.
    I wouldn't write this question if my project behaved according to the instructions.

    Maybe I will describe my problem in other words:
    In reference to article http://www.keil.com/support/docs/2263.htm, project should behave different when STARTUP.A51 is on last position (like it should be) and when it's anywhere else (where it shouldn't be).
    But in my project, it behave different only when it is on first position. The worst is that, it work correct only when STARTUP.A51 is on first position.

    We had strange problems beetween two revisions of software, to find out what is the cause, we compared 2 revision of project line by line, change by change.
    Position of startup file cause this problems and the project works correctly only if the position of this file is incompatible with the instructions.

Reply
  • I know that the STARTUP.A51 file must be last or next-to-last. That was configuration I start with.
    I wouldn't write this question if my project behaved according to the instructions.

    Maybe I will describe my problem in other words:
    In reference to article http://www.keil.com/support/docs/2263.htm, project should behave different when STARTUP.A51 is on last position (like it should be) and when it's anywhere else (where it shouldn't be).
    But in my project, it behave different only when it is on first position. The worst is that, it work correct only when STARTUP.A51 is on first position.

    We had strange problems beetween two revisions of software, to find out what is the cause, we compared 2 revision of project line by line, change by change.
    Position of startup file cause this problems and the project works correctly only if the position of this file is incompatible with the instructions.

Children