• how to determine the cause of HardFault
    os_evt_wait_or(CHECK_EVENT_FLAGS, INFINITE_TIME); //Wait for an Event to occur rx_event = os_evt_get(); switch(rx_event) { case EVENT_INTERRUPT: if(chkflg) { dif = difftime(_gettime(), setalrm); if...
  • sprintf causing a hardfault exception
    Had to add some data logging in a hurry to diagnose an issue. A function is passed a pointer to data that is then used to assemble a readable string that's then stored on a SD card the RTOS task...
  • alloc ram causes hardfault
    Hello, I'm using a lpc1766 and made a very simple program to debug a hardfault exception. After initiallisation the main routine is called where a array is allocated using the library function...
  • Reading *.lst or *.ELF file
    Dear All, I'm trying to tracking the .lst file as the below. but I'm confused what is the current pc value? Fron here, 0x010002b4: 4902 .I LDR r1,[pc,#8] ; [0x10002c0] = 0x20000000 Does...
  • Understanding LST files
    Consider the following listing : C51 COMPILER V8.06 000A F500 R MOV someVariable ,A 0092 120000 E LCALL ?C?ULCMP 0028 1100 E ACALL _printf 1. What does the 'R' mean ? 2. What does the...