Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years, 3 months ago.
FATFileSYSTEM disturbs with SPI write function of mbed os
Hello. I have a project using the SDCard library (SDFileSystem) and a personal library that interacts with a sensor through spi. The examples using each library work well apart, but when imported into the same project on mbed online compiler, there's a problem with the spi write function! the compiler detects the spi write function as a function of FATFILEHADLER and not of SPI in my homemade library
! I do not know how to fix this?
1 Answer
5 years, 3 months ago.
Where and how are you defining m_SPI? Have you tried using a class label to force the compiler to only look at your class? Something along the lines of MySpecialLib::m_SPI.write(...etc..
Where MySpecialLib is the name of your class with the m_SPI method.