No Cortex-M SW Device Found

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
vrabo
Offline
Last seen:2 years 11 months ago
加入:2016-11-04 19:19
No Cortex-M SW Device Found

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:
PM_Dialog
Offline
Last seen:6 days 11 hours ago
Staff
加入:2018-02-08 11:03
Hi vrabo,

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

vrabo
Offline
Last seen:2 years 11 months ago
加入:2016-11-04 19:19
Thank you for the quick reply

Thank you for the quick reply.

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.

PM_Dialog
Offline
Last seen:6 days 11 hours ago
Staff
加入:2018-02-08 11:03
Hi vrabo,

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