I have Eval-Adicup360 and When i program it with CrossCore ES and IAR Embedded WorkBench, it works. But when i plug off and plug on the usb connection it resets. I mean there is no code in the ADUCM360 chip. How can I prevent this?
I am not sure if I understood your question correctly.
Will you use the USB interface to power the board? If yes, when you plug off usb connection, the board will be powered off. Then when you powered up, the ADuCM360 will power on reset.
If I misunderstood your mean, could you please share more information?
Hello Let me tell you step by step;
I think When I press "Download and Debug" button on the IAR, It sends the codes to the RAM, not Flash. Every time I plug-on&off the usb cable I need to "download and debug" again. I do not want to do it every time. I want to "download and debug" once and use it whenever I plug on the usb cable.
To do this I need to send the codes to flash, not to RAM, right?
I hope I am clear enough. I really need to know how to fix this problem. [I have used the STM32F407VG Development kit before and there was not the problems like this.]
My IDE is IAR Embedded Workbench.
It looks very strange based on your description.
What I am sure is that if you click the "Download and debug" button, the code will be downloaded into the flash. In debug mode you can read the flash in watch window. So if plug off and plug on again, the code in the flash should run and don't need to click the button again.
I don't have ADICUP360 board. My suggestion is could you please visit the below website, download and install the ADuCMxxxV1.3.exe.
After the install, you will find many example codes which are compatible with IAR. There is also a blink example. You can use this code. Perhaps need little modification and configure the right pin to blink the LED.
I have downloaded the ADuCMxxxV1.3 and I think I am doing it wrong.
What is the problem?
After you install the AduCMxxxV1.3, there is a IAR IDE Workspace file of ADuCM360 in the folder of examples.
Please open this file and have a try.