I am using a CC1110F32 and IAR Embedded Workbench for 8051 V8.20.2. I am trying to copy one structure to another with the following:
memcpy(&txmsg, &packet_buf[tail_ptr], sizeof(packetBuffer_t));
It works if both txmsg and packet_buf are mapped to IDATA or XDATA but I have txmsg in IDATA and packet_buf in XDATA and it doesn't work. How can I copy between XDATA and IDATA?
I also have the same issue with this:
*(u32*)&txmsg.frame[0] = *(u32*)&myaddr;