• LPC2148 timer0 not working as expected

    I am new to ARM and I am trying to produce 1 second delay using timer 0 in LPC2148. But in debug session in Keil, it is giving delay of 4 seconds with 15MHz and 5 seconds with 12 MHz. What is the issue ?

    Here is my code.

    #include <lpc214x.h>
    int main…

  • Debugging memory issues ARM7, Keil µVision 4

    I am having some issues trying to debug what appear to be some very strange behaviors. For example, we have:

    static const char* LOG_FORMAT = "0x%02x,%.5f,";

    and the pointer changes for no obvious reason. Sometimes to garbage, sometimes to other…