Hi,
I'm trying to use cheap nanoDAP debuging adapter to flash arm based ASR6601 mcu.
The conection seems to be done correctly, and an arm core seems to be detected
But trying to flash/erase/debug cause RDDI-DAP Error and "Error: Flash Download failed - Target DLL has been cancelled".
Anything could be done to fix it?
Thank you in advance.
Kris
I do not know this ASR6601 at all. So not sure if flash programming is really supported. Are you sure, a dedicated flash programming algorithm exists for this device? Check on the "Flash Download" tab, what is configured there.
Also, are there any additional messages in the Build Output window, that could give a hint?
Thank you for your answer.
I bought j-link seger device to use it instead of nanoDap and it works fine, at least i can flash the asr MCU, unfortunately debuging stuck on reset handler, and there is no way to continue. I'm not familiar with uVision IDE (previously using opensource gcc/opencod/eclipse)... is it anything i can do with that. I followed to limited asr doc available at https://asriot.readthedocs.io/en/latest/index.html using an ASR6601.FLM to configure programming algorithm.
I found out that the FLM file it's just elf file, it's probably uploaded to jlink to handle programming task....
Is it any simply way to decompile FLM file to find out how the ASR devices should be programmed... i would like to use this knowledge to make possible openocd programming ...
Thank you in advance
If you can program your flash in µVision using the flash programming algorithm *.flm without error showing in uVision, then the issue "debuging stuck on reset handler" has nothing to do with this flash programming algorithm *.flm.
You can disable "Run to main()" option in "Options for Target - Debug" of µVision and do single step debugging to see where your application gets stuck.
Thank you.
It didn't help but pressing "stop" button bring CPU to hard fault. I will try to investigate registers values.
Hi, Kris.
I am working with ASR. It seems FLM file might be put in the wrong file. You can find instructions from our SDK :"copy the ASR6601. FLM file under \tools\flm directory to Flash directory within Keil, for example, C:\Keil_v5\ARM\Flash." If any, please contact me: claraliao@asrmicro.com. Thanks.
Thank you Clara very much.
I already managed the issue, but I'm going to mail you regarding the other one.
Have a nice day