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

Code Compiled, linked, downloaded but not running

Hi,
Do you have faced with this problem ? The USB debug adapter runs but the IDE debugger not. I can put breakpoint on the first line of the main but no break, no timer it generated too, when i stop running no stop on the code line executing.
It seems there is a problem just before the main call.

thx

Parents
  • PS Mr. Sardine owes me an apology for his bile about init always being included, but that, I am sure would be too much to ask.

    Not at all - I apologise. I was sloppy.

    A precompiled version of the code contained in init.a51 is always linked into your project unless you avoid two fairly fundamental features of the 'C' language:

    1) Explicit initialisation of variables declared at file scope
    2) Explicit initialisation of local variables with static storage duration

    I understand you have a rule based on some ill-remembered premise preventing 1) - do you also have a rule preventing 2)?

Reply
  • PS Mr. Sardine owes me an apology for his bile about init always being included, but that, I am sure would be too much to ask.

    Not at all - I apologise. I was sloppy.

    A precompiled version of the code contained in init.a51 is always linked into your project unless you avoid two fairly fundamental features of the 'C' language:

    1) Explicit initialisation of variables declared at file scope
    2) Explicit initialisation of local variables with static storage duration

    I understand you have a rule based on some ill-remembered premise preventing 1) - do you also have a rule preventing 2)?

Children
No data