• Type struct pointer issue
    Hello, I'm stuck with hardfault handler. When I try to execute read value from pointer address: struct S2E_Packet { uint8_t module_type[3]; uint8_t fw_ver[3]; } __attribute__((packed)) S2E_Packet;...
  • Type struct pointer issue
    Hello, I'm stuck with hardfault handler. When I try to execute read value from pointer address: struct S2E_Packet { uint8_t module_type[3]; uint8_t fw_ver[3]; } __attribute__((packed)) S2E_Packet;...
  • Can pointer types be cast?
    Here is my problem, i have several simmilar structue definitions (containers for messages) struct FIRST{ unsigned char Word_Pos[8] unsigned char Data[8] unsigned char Msg_Len }; struct FIRST...
  • C51: Pointer to array type
    I have defined a type for objects we use. The details of the type should not be relevant for the users of the type, so I am "hiding" it behind a typedef. As it happens, this type is currently implemented...
  • Generic Pointer: Memory Type Identification
    Hi, how can I identify a memory type of any generic pointer in C51 code? Thanks.