• I get stuck in HardFault_Handler when calling os_mbx_send
    I am trying to pass a message from one task to another and when I call os_mbx_send I am getting a HardFault_Handler error. The call stack has a lot of HAL_CM3 calls. Any ideas? Seems pretty straight...
  • unexpected code
    There is simple code usRDelay(17); Comm_LineOut_Port=SendData.B.Bit02; usRDelay(17); Comm_LineOut_Port=SendData.B.Bit01; usRDelay(17); Comm_LineOut_Port=SendData.B.Bit00; usRDelay(17); Comm_LineOut_Port...
  • unexpected code
    There is simple code usRDelay(17); Comm_LineOut_Port=SendData.B.Bit02; usRDelay(17); Comm_LineOut_Port=SendData.B.Bit01; usRDelay(17); Comm_LineOut_Port=SendData.B.Bit00; usRDelay(17); Comm_LineOut_Port...
  • Unexpected output from "sizeof"
    Could someone please explain the following: I tried using sizeof command to find out the size of the an int variable by printf("%d\n", sizeof(int)); I was expecting an output of 2 . But interestingly...
  • I'm stuck with unexpected code behavior
    I'm using quite old version of Keil, 3.20. With following simple code, I get unexpected results. I believe there is some kind of code problem: xdata char msg1[]="abc"; xdata char msg2[]="def"; void...