Hello IvanRuiz,
I try the same thing and already achieved that I can Read/Write to emulation card but also I can send from emulation card. I achieved that by creating three variables (in host card emulation reader):
uint8_t filedata[10]; //For saving received message from other reader.
uint8_t ResponseMess[16] = {0x00, 0x10, 0xD1, 0x01, 0x05, 0x54, 0x00, 0x00, 0x00, 0x00, 0x00}; // For setting NDEF message header
uint8_t lop[8]; // Message which I want to send from host card emulation reader
And I use them in AppProcessCmdCallback();
(void)memcpy(&filedata[0], pRxData, wRxDataLen); // Copy reveived message to filedata variable
(void)memcpy(&ResponseMess[6], lop, sizeof(lop)); // Make message which I want to send (Header + Message)
(void)memcpy(&pSelectedFile[dwFileOffset], ResponseMess, sizeof(ResponseMess)); // Sending Message to other reader
But I don't really understand why I get hardfault if I am trying to print some results from callback function to the console? Otherwise I wont need to use these variables and I could print immediately from callback function.