Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

Reply To: How to use FatFs library in MPLAB XC8 without MPLAB Code Configurater?

Home Forums MPLAB XC8 Tutorial Discussions How to use FatFs library in MPLAB XC8 without MPLAB Code Configurater? Reply To: How to use FatFs library in MPLAB XC8 without MPLAB Code Configurater?

#2542

Bitahwa Bindu
Keymaster

In your code we don’t see where you are defining the SPI functions like OpenSPI(), there are parameters you need to specify like frequency, slave or master etc. You must sonfigure the pins used as well for SPI communication: SDI, SDO, CS etc.

All these were defined in  spi1.h, OpenSPI.h and pin_manager.h when using MCC. You must do this using PIC18F Peripheral Libraries as we explained in this article: SPI Functions with PIC18F Peripheral Libraries