NVM write

This week I started on integrating the code and finalizing all the functions so that later on I can include them as libraries in my code. I also worked on writing the bit stream on the flash which will be done using a PUT command and also reading it from the Read more…

RNG & Hid_Key

This week I finished the HOTP function which uses MD5 hashing to generate a 6 digit code. The secret key used for the HOTP is generated in a separate function, using the MPLAB X built in TRNG (true random number generator) library. As for the configuration bitstream, it will be Read more…

PCB Fiducial Markings

This week I tried solving the problem I was facing with putting the FPGA in configuration mode, which I have also explained in my blog last week. The main issue is that after TCPIP_STACK from Harmony Configurator is initialised, pin D0 will not be configurable anymore. I have tried reading Read more…

FLASH & FPGA

This week I finished up the flash function to erase, write & read and also added the FPGA erase and write functions. The main body of the code is done, it can now receive a command through HTTPS connection and it will execute the corresponding functions based on the sequence Read more…

NVM Controller

This week Dr. Shawn pointed out that we do not need to use a boot loader since we just need to erase the flash and write the new data. I looked at NVM (Non-Volatile Memory) controller as an alternative. The NVM library in MPLAB X gives you the ability to Read more…

Boot-Loader

This week the second part of my task, that is to be able to erase the FPGA or PIC32 flash when needed and program them accordingly. Erasing the FPGA means putting it in configuration mode so that in can receive a configuration bitstream. This is achieved by pulling PROGRAM_B pin Read more…

HTTPS requests

This week I managed to finish the wolfssl_tcpip code. In the new code, the whole process is carried out in 1 function. In this function, 2 sockets are opened for the 2 possible type of connections; HTTP & HTTPS (with or without SSL). The program then just waits and checks Read more…

Schematics Completed

This week I spent most of my time finishing up the schematics. The updated board will have 2 complete SPI and 1 complete UART connection, between the PIC32 and the FPGA. The PIC32 pin availability for these connections can be checked from harmony configurator in MPLABX. You might need to Read more…

MPLAB-X Harmony Tempfile issue

We faced a problem when running MPLAB-X with Harmony framework in a multi-user environment. We didn’t have this problem before this as there was only one person working on the PIC32 code. But we’ve added a new member this week and an issue cropped up. It turned out that the Read more…