I am very new to ADI micrcontrollers.
I failed to find instructions/example how to program the binary of my release version application into the ADuCM4050 microcontroller on my board, using the ICE-2000.
Any help will be appreciated.
You can't use the ICE-2000 to program a binary file into the ADuCM4050. Programming the flash with a binary file requires UART but the ICE-2000 doesn't provide that.
Also, what board are you using? If you're using COG you may use MBED to program with a binary file as it has connections to uart0 of the mcu.
I refer to programming the ADUcCM4050 via its SWD interface, which the ICE-2000 obviously has (else I would not be able to program my application for debug mode).
I hope I may program it using the openOCD...
I am using my own company developed board, which in its current revision it made no provision to support the internal bootloader program that uses UART0 after reset or power up for flash programming.
I assume you're using CrossCore Embedded Studio (CCES) and you still have your code (not only the binary file). You can still use Debug on CCES to program the ADuCM4050 even on release mode. This will still write the program on the flash and you can stop the Debug once it writes the program.
All of your assumptions are correct!
1. What are the instructions provided by the CCES to the openOCD or to the gdb or to the cldp for programming a file? (it is needed for the production people in the company I work for)
2. From within the CCES IDE, how do I program a release mode version of my application?
For #1 question
You can use openocd from a command line to flash a program.
An example command line looks like:
c:/analog/cces/2.8.3/openocd -f c:/analog/cces/2.8.3/ARM/openocd/share/openocd/scripts/interface/cmsis-dap.cfg -f
c:/analog/cces/2.8.3/ARM/packs/AnalogDevices/ADuCM36x_DFP/1.0.4/openocd/scripts/target/aducm36x.cfg -s c:/analog/cces/2.8.3/ARM/openocd/share/openocd/scripts/ -s
c:/analog/cces/2.8.3/ARM/packs/AnalogDevices/ADuCM36x_DFP/1.0.4/openocd/scripts -c "program Blinky.bin; shutdown"
The -c with the `program` and `shutdown` command are what you need to load the binary file.
To create a .bin file, please see https://wiki.analog.com/resources/eval/user-guides/eval-adicup360/tools/cces_user_guide for a user’s guide.
For #2 question
To build release mode, just change this.
With some modifications I succeeded to take your programming instructions and to apply them to the ICE2000 I have.
It seems to program the release mode of my application successfully.
As per the user manual you sent me a reference to, I configured in release the semihosting to "None" and generated a bin file due to change the settings in the "Atrifact" tabsheet.
After programming the bin file, it seems that the application does not run (I use blinking LED on my circuit for checking it). Any suggestions?