Hello,
How do disable code optimization in SES Nordic Edition when using nRF Connect SDK? I can't find "Options - Code Generation - Optimization Level" as when using nRF5 SDK.
Best regards,
Lars
Hello,
How do disable code optimization in SES Nordic Edition when using nRF Connect SDK? I can't find "Options - Code Generation - Optimization Level" as when using nRF5 SDK.
Best regards,
Lars
Hi Øyvind,
I guess I was unclear, but I kept the include-part that works in V1.4.2 when running V1.5.0. So that was the problem. Now I have updated that part, and also a call to a function that changed names. And now I have my custom project working in V1.5.0 :-)
So now we have eliminated some issues and questions. "Only" the optimization issue is left.
Best regards,
Lars
Lars, that is good news.
I'm seeing the same issue here, and discussed the issue with our developers.
err = aws_iot_init(NULL, aws_iot_event_handler);
The NULL parameter will cause the fault.
We are working on a PR to fix the issue.
Kind regards,
Øyvind
Great for me that you can reproduce what I experience :-) Hope you find nice solution.
Best regards,
Lars
Hi Lars, here is the PR that our developers have issued:
https://github.com/nrfconnect/sdk-nrf/pull/4214/files
Kind regards,
Øyvind
Hi Öyvind,
When starting this project I thought I wouldn't need to care about updating to a certain tag. But now I have tried to fetch the latest tag by typing
git fetch origin
git checkout origin/master
west update
Correct? Compiling gives then an error. I can see that aws_iot.c has changed according to what you said, but there seems to be more updates that may interfere.
I changed back to v1.5.0 by typing
git checkout v1.5.0
west update
Now the compilation works as before.
Instead I tried to add the changes manually in aws_iot.c. Now the updated rows are passed nicely, but instead there will be a reset somewhere in
k_sem_take(<e_connected, K_FOREVER);
in the end of main(). I thought I had done something in my code to cause this, so I tested to run the aws_iot-example again. But it also crashes on k_sem_take().
Best regards
Lars