Hello!
I'm trying to implement the security example in my own code and i found an issue. Whenever i change.security_request_scenario = DEF_SEC_REQ_NEVERto.security_request_scenario = DEF_SEC_REQ_ON_CONNECTi can´t debbug the code anymore. I go the error message "No Cortex-M SW Device Found".
I have tried to run the code with DEF_SEC_REQ_NEVER and works but whenever i changed to DEF_SEC_REQ_ON_CONNECT i get the error message. Even if i go back to DEF_SEC_REQ_NEVER the custom board doesn't work anymore. Do you have any idea why this could be happening?
Thanks!
Device:
Hi vrabo,
Regarding your description, I am not able to understand what is the case. You download the code and while running the example you get that message or after compiling the code with that option you aren't able to download the code since that message appears on Keil? If you are getting this error message, means that the keil isn't able to find the debugger. The most common reasons why you get this message, are either upon running the code the device was reset for some reason or you disable the debugger module in the 580. Also, could you let me know in which SDK are you working on? The latest version of the SDK will allow you to have the debugger attached while having the sleep mode enabled. For example if you run the code using no sleep as a default option, are you still able to replicate that?
Thanks, PM_Dialog
谢谢你的快速回复.
I'm using SDK 5.0.4.
I compile my code and I am able to use the debugger and execute it and works perfectly. But when I change it to DEF_SEC_REQ_ON_CONNECT, i compiles good, no errors, no warnings, but after that I can´t start the debug session anymore because of the JLink Error shows up. If i try to debug any other code after that, the same error keeps showing up. It's like, somehow, I killed the DA14580.
I tried to reset it and the device is still not found. I have tested it in 5 different custom boards already and I happens all the time whenever I change that line of code.
I can run perfectly the ble_app_security example with DEF_SEC_REQ_ON_CONNECT, but after changing that line in my own code it dies.
I hope i was able to express myself a little better.
Hi vrabo,
Could you please check under which path your code goes when you change it to DEF_SEC_REQ_ON_CONNECT? Probably, your custom code resets your device unexpectedly or it disables the debugger module in the 580. Please check where your code crashes, in order to have a better view about your issue.
Thanks, PM_Dialog