1

(3 replies, posted in wolfCrypt)

I see that this post is a couple months old so I hoped you have fixed it but for those who will find this problem I will provide my fix to this problem.

Microchip Harmony didn't generate the bit to enable the hardware crypto engine hence the time-out.

To enable the crypto engine find the file/function:

plib_clk.c: void CLC_Initialize(void)

In there are the peripheral module disable configuration, I had to clear PMD7<22> bit to enable the crypto engine. But
confirm this with the datasheet for you particular processor.

I used the PIC32MZ1024EFK064 and I had to change the following line

PMD7 = 0xffefffef

to (crypto, rng, dma are enabled)

PMD7 = 0xffafffef

I also reported this to the harmony github page: https://github.com/Microchip-MPLAB-Harm … -575639153