I can make the files from a DOS terminal in Windows 7 but I keep getting the following error when making the initial file in NetBeans. It appears to be fine for the first two libraries:-
Building core-common-lib
make[1]: Nothing to be done for `all’.
Building core-communication-lib
make[1]: Nothing to be done for `all’.
Thanks, as you are aware I have been content using the cloud compiler but had problems with the Flashee library. I’ll persevere and try the additional PATH variable suggested by Suda. If necessary I’ll post more of the error message.
Please look at the comments:
There were issues with the suggested path names (dashes included) and also check the Version you actually down loaded match your path.
Hope this helps.
I just remember that something like this caught me out too.
Where are you saving the files? is it in program files or did you do the directories in the setup video?
did you use git to download the repo’s or did you create the folders? Check the typing of folder names for core-fimware… core-common-lib… core-communication-lib etc
You should be running make from core-firmware\build folder. Could you cd into this directory and try to run make and other commands from previous post?
Thanks everyone for your advice. This has spurred me on and I now have a working system for local compilation. I am not using NetBeans at the moment but will sort it out later.
Regarding the Flashee library, I have found that the .cpp files need editing to allow them to point to Flashee headers in the src\inc\flashee-eeprom\ folder rather than the standard src.inc\ for headers. Once these library files are edited all works fine.
The data logging is now working using the external eeprom storage - congratulation to mdma on this very useful functionality.
Glad you got it working. If you copy the flashee headers to a new inc\flashee-eeprom directory then it will work unmodified. This is described in the README.md. This is in general how you can make libraries work locally - create a new directory for the library headers under inc.
I followed the readme file as instructed but still had a problem when make could not build due to the path in the library .cpp files. I had to manually change each of the the library headers from “#include.h" to "#include flashee-eeprom/.h”. I used Github to download the files so perhaps that is where the directory path was lost?
Can you post the command line you are using for dfu? DFU programming shouldn’t be knocking out your wifi credentials. Although be sure you only hold the mode button long enough to get to the flashing yellow (dfu-mode) - not flashing white (factory reset), since then you’ll lose the wifi credentials.
I used the command line for dfu as per the githbub readme
dfu-util -d 1d50:607f -a 0 -s 0x08005000:leave -D core-firmware.bin
I am still working on the JTAG but so far the GDB server with the J-LINK has detected the Spark core so all I need now is to configure Netbeans to do the debugging and I am in business.