Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Error #62

Closed
JuttDB opened this issue Sep 19, 2016 · 21 comments
Closed

Build Error #62

JuttDB opened this issue Sep 19, 2016 · 21 comments

Comments

@JuttDB
Copy link

JuttDB commented Sep 19, 2016

Hello,
i am very interested to run this project. but i am facing problem in the build.
i follow the guide line can you please confirm this issue.

1

some files you are calling the nrf.h file but i didn't found this file in the project. and also sdk_common.h

can you please guide me to fix this issue. please also check the image for more detail.

thank you

@JuttDB
Copy link
Author

JuttDB commented Sep 19, 2016

i search little bit then i found the soldtion...means i add the path.
after that i got very strange error.please check the image.

21

@mariusheil
Copy link
Contributor

Hi, I guess that this could come from one of the Problems in the SDK. Have you checked this step? https://github.com/mwaylabs/fruitymesh-devenv#fix-some-of-the-sdk-files. Do all sd_... functions fail for you? Do you have SDK11 or did you use the newer SDK12? I haven't transitioned the project to the new 12er SDK yet, so you should use version 11.

@JuttDB
Copy link
Author

JuttDB commented Sep 20, 2016

Hi, Yes you are Right. this error comes from SDK. i am using the version 11.
yes i also did these fix..
besically i did only two things.
1- changes (#define GCC_CAST_CPP (uint16_t) ) in nrf_svc.h
2- download the ble_radio_notification files from the link post and just replace.

upto now only sd_flash_page_erase function create the problem.
this problem is very strange. i will try to download sdk v11 again and will replace the files. let see if it is usefull.
if you have any suggestion then please

@mariusheil
Copy link
Contributor

Could you check in the sdk\components\sfotdevice\s130\headers\nrf_soc.h file if the funciton is defined?

I have this in Line 813:
SVCALL(SD_FLASH_PAGE_ERASE, uint32_t, sd_flash_page_erase(uint32_t page_number));

@JuttDB
Copy link
Author

JuttDB commented Sep 20, 2016

i just clean and rebuilt then problem is solved...let see my plan is to implement this into the visualGDB.
can you please give me advice to debug this code then i will understand and i will try to implement into the VisualGDB.

thank you for your quick support.

@mariusheil
Copy link
Contributor

Cool :-) Debugging the code is not easy I must tell you, because it uses many calls to the Nordic Softdevice. all these calls will freeze the system while debugging because debugging destroys the realtime characteristics. I haven't tried VisualGDB yet because of the licence costs. Developing with Eclipse was just fine for this project. Ant the integrated debugger works wel if there are no softdevice calls. I'd suggest you stay with logging mostly, which is implemented widely in my system. You can enable and disable the different logtags to get a view on what its doing. Try "debug all" for starters, which will show you all that's currently being logged. (be sure to enable logging in the config.)

@anujdutt9
Copy link

anujdutt9 commented Sep 21, 2016

@juttTechnology @mariusheil Hi. I am also trying to compile this but I am getting some errors. Please if you could share what you did from the beginning so that I can figure out where I am wrong or maybe send your .project file.
Also, I have followed all the steps as mentioned in the tutorial but I might be getting wrong at importing all files of the project into Eclipse. Please if you could guide me on how you imported all the files into Eclipse. That'll be a great help.
Thanks : )

@JuttDB
Copy link
Author

JuttDB commented Sep 21, 2016

Hi
please follow the full guide line and also add all the reference file.if still the error exist then please go to
Project->c/c++ indexer->Rebuit
i am sure if you will follow the tutorial and add all reference and at the end follow this command then it will work.
if you still face problem then please show me the image of the error then i will try my best to help you.

@anujdutt9
Copy link

@juttTechnology Hi. I have followed all the steps but when I try to run the eclipse that comes with the setup, it shows an error as follows. Please if you can help me with this. The one I tried earlier, I use my own version of eclipse that works on my PC. Thanks : )
untitled

@mariusheil
Copy link
Contributor

mariusheil commented Sep 22, 2016

Could you have a look in the logfile mentioned?, maybe you'll find it in the error view or in a console. Seems more like an eclipse error than a build error.

@juttTechnology Hi. I have followed all the steps but when I try to run the eclipse that comes with the setup, it shows an error as follows. Please if you can help me with this. The one I tried earlier, I use my own version of eclipse that works on my PC. Thanks : )


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@JuttDB
Copy link
Author

JuttDB commented Sep 22, 2016

please try to run using command line
eclipse.ese -clean
this should work..

@anujdutt9
Copy link

anujdutt9 commented Sep 22, 2016

I am getting this in the log file. In between, eclipse started once but after that when I tried to open it again it shows this error in log file.

!SESSION 2016-09-22 16:56:00.002 -----------------------------------------------
eclipse.buildId=4.5.0.I20150528-0700
java.version=1.8.0_101
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.cpp.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.cpp.product
!ENTRY org.eclipse.osgi 4 0 2016-09-22 16:56:00.652
!MESSAGE An error occurred while automatically activating bundle org.eclipse.equinox.registry (229).
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.core.internal.registry.osgi.Activator.start() of bundle org.eclipse.equinox.registry.
at org.eclipse.osgi.internal.framework.BundleContextImpl.startActivator(BundleContextImpl.java:792)
at org.eclipse.osgi.internal.framework.BundleContextImpl.start(BundleContextImpl.java:721)
at org.eclipse.osgi.internal.framework.EquinoxBundle.startWorker0(EquinoxBundle.java:941)

Please if you can help.
Thanks : )

@JuttDB
Copy link
Author

JuttDB commented Sep 22, 2016

if he start one time means you have Java installed.i thought may be you have Java prolem.anway please delete the file from the workspace folder and try to run Again.

@anujdutt9
Copy link

anujdutt9 commented Sep 23, 2016

@juttTechnology @marius Hey, Thanks for all your help : ) I got the eclipse working somehow and imported the project to it. It looks something like this. I just want to verify, is this correct or do I need to import some other files as well.
untitled

Secondly, the DFU Module here is showing a "!" . I think this has some error. Where is this folder and how can I rectify this error.
Also, when I click on Run currently, it gives an error as "Launch Failed. Binary not found"

1

When I look at properties of DFUModule it looks something like this:
3

Please if you can help me out.
Thanks : )

@mariusheil
Copy link
Contributor

mariusheil commented Sep 23, 2016

can you try to just build it? Does it build? The dfu Module is not part of the release, so this is normal. Please read some Info on the nordic website on how to build for the nrf51 chipset, This will give you a starting point.

-----Original Message-----

@juttTechnology @marius Hey, Thanks for all your help : ) I got the eclipse working somehow and imported the project to it. It looks something like this. I just want to verify, is this correct or do I need to import some other files as well.

Secondly, the DFU Module here is showing a "!" . I think this has some error. Where is this folder and how can I rectify this error.
Also, when I click on Run currently, it gives an error as "Launch Failed. Binary not found"

Thanks : )

You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@anujdutt9
Copy link

anujdutt9 commented Sep 23, 2016

@mariusheil Hi Marius. I built the code. Can you please see if this is the expected way in which it should build. Also, I am getting this one error if you can see.
untitled

Regards
Anuj

@JuttDB
Copy link
Author

JuttDB commented Sep 23, 2016

First try to find the GNU ARM Eclipse in the c:\Program FIle
mine is look like this
C:\Program Files\GNU ARM Eclipse\Build Tools\2.6-201507152002\bin

also try to check in the Programm file (86) folder. if you found nothing then please download and install
after that try to copy the link like me.

then come into the project->Properties->c\C++ Built -> Envirment->Path
add this link also in the path variable using the edit.

i hope this will solve your problem.

@anujdutt9
Copy link

@juttTechnology Thanks a lot for guiding me. But now When I am building the code it shows the error as below:
untitled

@juttTechnology Can you please have a look at this image and tell if any of the modules are missing or if I need to add any more modules to this folder. Also, I have not been able to find this "sdk_common.h" file anywhere.
Sorry for bothering you too much but I need this to be working. I have been on this for past 3 days.
Thanks : ) 👍

@JuttDB
Copy link
Author

JuttDB commented Sep 23, 2016

please try

Project->c/c++ Index-> refresh all files

@JuttDB
Copy link
Author

JuttDB commented Sep 24, 2016

you can canot make the folder by your own..
you have to install the GNU ARM Eclipse.

@anujdutt9
Copy link

@juttTechnology @mariusheil Thanks for all your help. It works. Thanks : ) 👍

@JuttDB JuttDB closed this as completed Nov 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants