I tried to simulate the instruction execution on Arduino nano 33 ble sense. So using Keil MDK, I selected nrf52480 as a device for simulation and used the initialization file to debug from the main function. But when I started debug session, the simulation stayed at the first line assembly code at the address 0x00000000. I doubted that I haven't set up the right value of CPU DLL and Dialog DLL. The default value of CPU DLL is "SARMCM3.DLL -MPU" and that of Dialog DLL is "DCM.DLL -pCM4". Very appreciate it if someone can answer my question.
Do you not have the option of debugging it on the target? Rather than simulating...
Yeah, I tried to use JLink Edu debugger. The problem is that the debugging session will be stuck in the exception handling program (It can only execute several instructions again and again.). And it seems that using JLink Edu debugger cannot get the # of instructions executed. However, my main objective is to get the number of instructions executed for one specific complex function.
OK, I'm not knowledgeable in that issue. You can get an STLink V2 or clone very cheaply (and hook it up to a demo board with the same core) as an alternative perhaps.
Oh, this may be an interesting solution. I will try it. Thank you.
View all questions in Keil forum