Hi @ronen
Thanks for your updated information.
Which board you are testing now? MIMXRT1160-EVK board or your own customer board?
Do you already test your TDA8035 with the SDK smartcard code for EMVSIM1, whether that works or not?
When you switch to the EVMSIM2 , you need to modify the pinmux.c for the EVMSIM2 at first, then the related interface in the main file to EVMSIM2 .
To vsel0Port , it is the structure define:
typedef struct _smartcard_interface_config
{
uint32_t smartCardClock; /*!< Smart card interface clock [Hz] */
uint32_t clockToResetDelay; /*!< Indicates clock to RST apply delay [smart card clock cycles] */
uint8_t clockModule; /*!< Smart card clock module number */
uint8_t clockModuleChannel; /*!< Smart card clock module channel number */
uint8_t clockModuleSourceClock; /*!< Smart card clock module source clock [e.g., BusClk] */
smartcard_card_voltage_class_t vcc; /*!< Smart card voltage class */
uint8_t controlPort; /*!< Smart card PHY control port instance */
uint8_t controlPin; /*!< Smart card PHY control pin instance */
uint8_t irqPort; /*!< Smart card PHY Interrupt port instance */
uint8_t irqPin; /*!< Smart card PHY Interrupt pin instance */
uint8_t resetPort; /*!< Smart card reset port instance */
uint8_t resetPin; /*!< Smart card reset pin instance */
uint8_t vsel0Port; /*!< Smart card PHY Vsel0 control port instance */
uint8_t vsel0Pin; /*!< Smart card PHY Vsel0 control pin instance */
uint8_t vsel1Port; /*!< Smart card PHY Vsel1 control port instance */
uint8_t vsel1Pin; /*!< Smart card PHY Vsel1 control pin instance */
uint8_t dataPort; /*!< Smart card PHY data port instance */
uint8_t dataPin; /*!< Smart card PHY data pin instance */
uint8_t dataPinMux; /*!< Smart card PHY data pin mux option */
uint8_t tsTimerId; /*!< Numerical identifier of the External HW timer for Initial character detection */
} smartcard_interface_config_t;
Seems the code still didn't fully support the TDA8035, although it contains the define, but I find when I open USING_PHY_TDA8035, a lot of code is lacked.
So the existing code for TDA8035 should not complete, as the defined data are not added, eg:
BOARD_SMARTCARD_VSEL0_PORT
I will help you to check it internally.
Any updated information, will let you know.
Best Regards,
Kerry