Firmware does not execute

I'm using the Silicon Laboratories C8051F345 with the Keil IDE.

I now have two different projects of which the firmware won't execute. If I comment random pieces of code the firmware will execute. I am still within the memory limits of the device.

From my point of view, the compiler is not configured correctly for the device or I assign my variables incorrectly. I ran out of ideas, tired of searching and pulled almost all my hair out of my head.

I program alone and don't have anyone to look at my source.

I want to ask if someone experienced will please have a look at my project to point any possible mistakes or problems.

Parents
  • I would agree to start with the stack. Count the number of nested calls (where one function calls another) Do the same for the interrupts (And again for each priority level used) Then add them up. That Plus the memory uses should be greater than 256.

    Note is you are using a chip with less than 256 RAM use that.
    Insure you are using the correct memory model.
    Are you using Banking?

Reply
  • I would agree to start with the stack. Count the number of nested calls (where one function calls another) Do the same for the interrupts (And again for each priority level used) Then add them up. That Plus the memory uses should be greater than 256.

    Note is you are using a chip with less than 256 RAM use that.
    Insure you are using the correct memory model.
    Are you using Banking?

Children
More questions in this forum