where can we add this part of the code?
typedef enum {
SL_AUTO = 0, /* AUTO */
SL_I2C0 = 1, /* I2C0 */
SL_SPI0 = 4, /*!< SPI0 */
SL_UART0 = 6, /*!< UART0 */
SL_USBFS = 8, /*!< USB FS */
SL_USBHS = 9, /*!< USB HS */
SL_CAN0 = 10, /*!< CAN0 */
} SL_IFSEL_T;
uint32_t error_code;
uint8_t xor_value = 0, isp_mode[8];
memset( isp_mode, 0, sizeof(isp_mode) );
isp_mode[0] = 0xAA; /* 0xAA as DFU, otherwise, it's a MSC */
isp_mode[1] = SL_USBHS;
for ( i = 0; i < 8; i++ ) {
xor_value ^= isp_mode[i];
}
isp_mode[7] = xor_value;
error_code = Chip_IAP_ReinvokeISP((uint32_t *)isp_mode);
err_check(error_code);
Also I get an error 'IAP_REINVOKE_ISP_CMD' undeclared (first use in this function) fsl_iap.c".