Hello,
I tried to run debugger but I got this error. Do someone have an idea please ? It's the same error with aws_fota sample.
Hello,
I tried to run debugger but I got this error. Do someone have an idea please ? It's the same error with aws_fota sample.
Hi!
Could you be more specific about what steps you're doing before you get this error?
Are you trying to run a sample or your own application?
Where is your NCS directory located, and where is the application you are running located in relation to the NCS directory?
Have you tried flashing using the command line (west build -b nrf9160_pca10090ns -d build -p) - do you get the same error here?
I think you should try deleting your whole NCS directory and installing it again.
Best regards,
Heidi
Thank you for your help.
You can reproduce it with aws fota sample.
Steps are:
- import project
- build
- try to run debugger on it
I tried west build but I got an error that build is an invalid argument.
New NCS => no change.
Hello Heidi,
This is strange, in aws_fota this command works but in my directory (a copy of aws_fota sample), it's not. What settings / variables I have to change when I move a sample please ?
To work in SES I changed in CMakeLists.txt some paths
include($ENV{ZEPHYR_BASE}/../nrf/cmake/boilerplate.cmake NO_POLICY_SCOPE)
include($ENV{ZEPHYR_BASE}/cmake/app/boilerplate.cmake NO_POLICY_SCOPE)
What am I missing for west configuration ?
Fabien Comte said:What settings / variables I have to change when I move a sample please ?
It depends where your copied directory is located. If it's in the same place as aws_fota (ncs/nrf/samples/nrf9160) then you shouldn't change anything in the CMakeLists.txt file.
Hello,
Just to be sure, I tried to debug aws_fota sample in SES without any modification in the same directory and it not works like the error reported.
My mistake, I changed theses 2 lines because at first, samples had relative paths instead of ZEPHYR_BASE but it was fixed and now I have the same CMakeLists.txt as the sample.
My mistake, I changed theses 2 lines because at first, samples had relative paths instead of ZEPHYR_BASE but it was fixed and now I have the same CMakeLists.txt as the sample.
Hi, to clarify you shouldn't have to change anything but changing the paths to be relative like you suggested is a good idea, because then it doesn't matter where your application is located.
Ok as I said, please test the original aws_fota sample with SES. Without any change, debug is already broken.
I was able to reproduce the error and I have reported this as a bug for the NCS team. However, when I switched to NCS v.1.1 as opposed to being on the master branch, the error disappeared.
Are you on NCS v.1.1 or master branch? If you're on the master, could you please switch to tag v.1.1 and confirm that this solves the issue for you too?
Hello,
I am on master branch. I will try soon.
Thank you for your help.