• 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...
  • The length of struct
    Hi, I define a struct like below: typedef struct { unsigned type :6; unsigned delete :1; unsigned mask :1; }UnitType; I think the length of this struct is 1 byte, but to my surprise,...
  • How to determine a pointer type?
    If I have declare a generic pointer [char *test] in C; How do I determine the pointer type in runtime? By checking the first byte of the pointer or is there any other functions doing this? Thanks...
  • How determine library sizes?
    Hello, In LST files you can find totals about module memory usage, in M51 you can do the same for complete application but, how can I determine the memory usage (code and data)when I build a library...
  • Placing program length in code
    I have a bootloader that I am trying to write and I'm not sure how to go about having program size, in bytes, coded somewhere in the images it tries to load. Basically, I want to read the app code...