Topic: PIC32MZ HW Crypt
Microchip Harmony v3, wolfssl-4.1.0 and PIC32MZ1024EFK64, i have problem with TLS when using hardware crypt.
On some files from web server, google chrom says: "net::ERR_SSL_PROTOCOL_ERROR". Files with error differ any time i refresh web page.
I found, that sometimes in function Pic32Crypto (from pic32mz-crypt.c) i get timeout==0
/* check for errors */
if (CESTATbits.ERROP || timeout <= 0) {
#if 0
printf("PIC32 Crypto: ERROP %x, ERRPHASE %x, TIMEOUT %s\n",
CESTATbits.ERROP, CESTATbits.ERRPHASE, timeout <= 0 ? "yes" : "no");
#endif
Nop(); //here got brackpoint, with timeout ==0 and CESTAT == 0x001F804E
ret = ASYNC_OP_E;
}
When using software crypt - all works fine