Hi, I used to use Ubuntu for developing nrf5 arm cortex but I always have been a Fedora user for personal computer. I want to move my development work from Ubuntu to fedora.
I moved my work and I think I have installed all dependencies. Like I install everything I had in ubuntu but it still does not compile on fedora. Can anyone help I do want to go back to ubuntu.
This the error I get please help
Compare where the nano.specs file resides on ubuntu with where it is or isn’t on fedora. The compiler does not locate that file so maybe it is missing or relocated or has wrong permissions.
Thank you for your comment Jeff V. The problem is I am not very good at comparing files or technically savvy in that manner. For my job, I just code in C on embedded bare metals at the moment. Like I know very good c and thats it. The ubuntu setup for flashing was given by my project managaer. At this moment I am not able to bother him to help me get this running. I am not good with compilers and I dont really understand them. but you give me a set compiler setup I can work in most mechatronics projects.
In ubuntu I follow these step to get my compiler running:
- sudo apt install cmake gdb-multiarch gcc-arm-none-eabi
- Then I download J-link from Segger
- NRF tool chain from Nordic
- pip3 install nrfutil bleak
- sudo apt install build-essentials
Thats it and my code complies.
- I installed c development tools
- I installed GDB
- I also did pip3 install nrfutil bleak
- i installed gcc-arm-none-eabi
- I installed Jlink and nrf toolchain too
Can any expert who does nrf development on fedora teach me what can I do to get this running on fedora?
Slow but sure way to locate nano.specs:
sudo find / -name nano.specs
Find will look for every file in every location / and under for the file name nano.specs. Since there are lots of files in a normal installation, this will take several minutes.
Do that on your ubuntu and your fedora systems. That should enable you to follow Jeff’s suggestions.
Do you have the
arm-none-eabi-newlib package installed? It seems to be the one that provides
nano.specs in these locations:
$ sudo dnf whatprovides '*/nano.specs'
arm-none-eabi-newlib-4.1.0-4.fc36.noarch : C library intended for use on arm-none-eabi embedded systems
Repo : fedora
Filename : /usr/arm-none-eabi/lib/arm/v5te/hard/nano.specs
Filename : /usr/arm-none-eabi/lib/arm/v5te/softfp/nano.specs
Filename : /usr/arm-none-eabi/lib/nano.specs
Filename : /usr/arm-none-eabi/lib/thumb/nofp/nano.specs
Filename : /usr/arm-none-eabi/lib/thumb/v6-m/nofp/nano.specs
Filename : /usr/arm-none-eabi/lib/thumb/v7+fp/hard/nano.specs
Filename : /usr/arm-none-eabi/lib/thumb/v7+fp/softfp/nano.specs
Filename : /usr/arm-none-eabi/lib/thumb/v7-m/nofp/nano.specs
Filename : /usr/arm-none-eabi/lib/thumb/v7-r+fp.sp/hard/nano.specs
Filename : /usr/arm-none-eabi/lib/thumb/v7-r+fp.sp/softfp/nano.specs
Filename : /usr/arm-none-eabi/lib/thumb/v7/nofp/nano.specs
Filename : /usr/arm-none-eabi/lib/thumb/v7e-m+dp/hard/nano.specs
Filename : /usr/arm-none-eabi/lib/thumb/v7e-m+dp/softfp/nano.specs
Filename : /usr/arm-none-eabi/lib/thumb/v7e-m+fp/hard/nano.specs
Filename : /usr/arm-none-eabi/lib/thumb/v7e-m+fp/softfp/nano.specs
Filename : /usr/arm-none-eabi/lib/thumb/v7e-m/nofp/nano.specs
Filename : /usr/arm-none-eabi/lib/thumb/v8-m.base/nofp/nano.specs
Filename : /usr/arm-none-eabi/lib/thumb/v8-m.main+dp/hard/nano.specs
Filename : /usr/arm-none-eabi/lib/thumb/v8-m.main+dp/softfp/nano.specs
Filename : /usr/arm-none-eabi/lib/thumb/v8-m.main+fp/hard/nano.specs
Filename : /usr/arm-none-eabi/lib/thumb/v8-m.main+fp/softfp/nano.specs
Filename : /usr/arm-none-eabi/lib/thumb/v8-m.main/nofp/nano.specs
Filename : /usr/arm-none-eabi/lib/thumb/v8.1-m.main+mve/hard/nano.specs
locate nano.specs may be quicker since it looks up the database (which is updated regularly, or is supposed to be)
Thank you Ankur Sinha. Your response looks very promising. I will test it out and I will let you guys know.
It started working following Ankur’s advice on installing the correct new lib. Again thank you so much for making it so simple. I was honestly looking for answer such as yours. Thanks