Digging Deeper into Bug

This week I dig deeper into identifying the TCPIP Stack bug. Ideal Case Based on the document UG380 and XAPP502, ‘init_b’ of FPGA should be HIGH (reading from PIC32), if it was LOW during configuration means there is an error,  ‘init_b’ can also be pulled LOW to delay configuration, in Read more…

TCPIP Stack Bug

This week I continue trying to figure out how to ‘download’ a huge file with TCP protocol. Set up a USB cdc com port to ease debugging. Fixing ‘init_b’ staying LOW. TCP Server looping READ socket To be able to ‘download’ or I should say read a file being uploaded Read more…

PIC32MZ TCPIP Server

This week I integrate my previous TLS TCP Server code onto ‘the board’ – PIC32MZ. DHCP enabled & Fixed IP adress test First I experiment with having DHCP enabled on MHC. Using ‘tcpip_discoverer’ from Harmony to fetch the assign IP address. java -jar tcpip_discoverer.jar The discoverer tool is very useful to Read more…

Init_B Forever Low

This week I try to configure the FPGA using PIC32 with slave serial method. C array bit file First I convert the binary file of FPGA into C array (Hex format) so that I could use SPI 8bit or 16bit to send the hex data bits by bits into FPGA. Read more…

OSI with PIC32 and LAN8720

This week I continue testing the board. Trying to fix the OSI layer of PIC32 with LAN8720. Studying different board behavior with same code I first started with programming the rest of the board with the same code and realize that the current board I am using have a different Read more…

The board has arrived!

This week I test the board that I design. The details of the board are explained in previous post, my first objective would be to be able to program the PIC32, confirm the osciallator is working, able to communicate with a LAN8720 to have internet connection. Programming PIC32 To program Read more…

SPI ADC with PIC32 Harmony

This week I continue doing emulating ADC based on the proper protocol of SPI ADC from Microchip – MCP3204/3208 From the document table 5-1: state that to initiate a ADC read for specific channel, Master SPI will first send 4bit of ‘Control Bit Selection’ to read the data of the particular Read more…

Emulating ADC

This week I did some programming on PIC32 ADC and SPI functions. The goal is to transfer ADC value from PIC through SPI to a FPGA chip. FPGA chip will act as a ‘Master’ while PIC32 will be the ‘Slave’. I will be coding for PIC32 only therefore the following Read more…