Try compiling the libraries first with make in Runtime/stm32/libraries and then compile the application. -Jose ________________________________ De: ell-i-developers-bounce@xxxxxxxxxxxxx [ell-i-developers-bounce@xxxxxxxxxxxxx] en nombre de Asif Sardar [engr.asif.sardar@xxxxxxxxxxxxxx] Enviado: jueves, 03 de julio de 2014 08:09 p.m. Para: Pekka Nikander; ell-i-developers@xxxxxxxxxxxxx Asunto: [ell-i-developers] Re: FYI: ENCx24J600 driver ; SPI testing I was compiling the SPI from library by including the .o files inside the app.mk<http://app.mk> e.g. following lines added APP_OBJS ?= main.o $(APP).o $(VARIANT).o wiring_digital.o wiring_digital_pinMode.o ellduino_Serial.o ellduino_spi.o SPIClass.o spiStruct.o VPATH += $(TOP)cores/arduelli $(TOP)variants/$(VARIANT) $(TOP)libraries/SPI Also, I splitted the wiring_digital.h and wiring_digital_pinmode.h into there own source (.c) files to avoid multiple declaration, because the SPIClass.h is also including the wiring_digital.h using the digitalWrite and pinMode functions. The files are attached to the e-mail. Still I am getting following error: ellduino_spi.o: In function `SPIClass::begin(unsigned char) const': /home/asif/Ell-i-Working-Directory/Ell-i-Software-Development/Runtime/stm32/build/../libraries/SPI/./SPIClass.h:81: undefined reference to `digitalWrite' ellduino_spi.o: In function `SPIClass::activate_ss(unsigned char)': /home/asif/Ell-i-Working-Directory/Ell-i-Software-Development/Runtime/stm32/build/../libraries/SPI/./SPIClass.h:183: undefined reference to `digitalWrite' ellduino_spi.o: In function `SPIClass::deactivate_ss(unsigned char)': /home/asif/Ell-i-Working-Directory/Ell-i-Software-Development/Runtime/stm32/build/../libraries/SPI/./SPIClass.h:184: undefined reference to `digitalWrite' Any good ideas? On Thu, Jul 3, 2014 at 1:52 PM, Asif Sardar <engr.asif.sardar@xxxxxxxxxxxxxx<mailto:engr.asif.sardar@xxxxxxxxxxxxxx>> wrote: Ok. I will update you the status tomorrow evening. If there are issues I need to ask, I will inform you by then. On Thu, Jul 3, 2014 at 1:42 PM, Pekka Nikander <pekka.nikander@xxxxxx<mailto:pekka.nikander@xxxxxx>> wrote: Asif, Sounds very good. I would need it by Wednesday morning, if possible. Sooner would be better, of course, but realistically I won't have real time to test the ENCx24J600 code before that. Having SPI more-or-less working in the emulator would make things easier to test. Depending on your progress, we could have a telco on that on e.g. Tuesday morning, to see what's been done. And of course continue with email here. --Pekka On 2014–07–03, at 13:36 , Asif Sardar <engr.asif.sardar@xxxxxxxxxxxxxx<mailto:engr.asif.sardar@xxxxxxxxxxxxxx>> wrote: > Hello, > > Yes, it has been done for emulator. Atleast, I can see the .o object file for > SPI under Runtime/build folder. I have to make a C interface for the SPI in > library/SPI/ellduino_spi.h & .c files, just like I did modification for the > serial communication in attached files. Such modification is required because > the ctypes module cannot access the class member functions directly through > the shared library. > > I can try testing them with emulator! When does it needed? > > BR, > Asif. > > > On Thu, Jul 3, 2014 at 1:14 PM, Pekka Nikander > <pekka.nikander@xxxxxx<mailto:pekka.nikander@xxxxxx>> wrote: > The emulator has some SPI done, see SPIemu.h, SPI.cpp. I don't remember what > is the status. It is probably just on the physical layer, most probably the > library is not compiled in, but I just don't remember and don't have time to > check right now. > > --pekka > > On 2014–07–03, at 12:51 , Asif Sardar > <engr.asif.sardar@xxxxxxxxxxxxxx<mailto:engr.asif.sardar@xxxxxxxxxxxxxx>> > wrote: > > > Hello, > > > > Yes. The SPI test cases are ready. I have seen in runtime that SPI has > > interface already e.g. begin(), end(), setdatamode() etc.But, I didn't see > > it in emulator. > > > > BR, > > Asif. > > > > > > On Thu, Jul 3, 2014 at 12:43 PM, Pekka Nikander > > <pekka.nikander@xxxxxx<mailto:pekka.nikander@xxxxxx>> wrote: > > Otso, > > > > FYI: I've started writing the ENCx24J600 driver. Looks simple and > > straightforward, just work. I'll make it separate from the ENC28J60 > > driver, as it will most probably be smaller (smaller flash footprint) than > > the ENC28J60 driver, if done right. > > > > My current estimate is that I'll have first version ready by Monday or > > Tuesday. It may or may not be complete, but in any case should be good > > enough for testing on Wednesday. As usual, I will most probably run out of > > time before we'll get it fully tested, though.... > > > > Asif, > > > > What's the situation with SPI library test cases? Do we have any yet? > > > > --Pekka > > > > > > > > > > -- > > With Best Regards, > > Asif Sardar. > > +358 43 8265795<tel:%2B358%2043%208265795> > > > > > -- > With Best Regards, > Asif Sardar. > +358 43 8265795<tel:%2B358%2043%208265795> > <ellduino_Serial.c><ellduino_Serial.h> -- With Best Regards, Asif Sardar. +358 43 8265795<tel:%2B358%2043%208265795> -- With Best Regards, Asif Sardar. +358 43 8265795