This is an old revision of the document!
IAR Board Support Package
A modular software framework is provided for quick application prototyping.
Please make sure you install IAR Embedded Workbench before installing the pack
The Cog software development kit consists of the below pack
-
The application examples found in the pack are developed for EVAL-ADuCM3029-Ez-Kit and will require small changes to make it work for EV-COG-AD3029LZ
As an example “LED_button_callback” is considered and the changes required is briefly explained.
Install the IAR BSP from the above link.
Open the “LED_button_callback.c” source code in the editor of your choice and make the below changes:
Application code changes:
Before changes:
/* set
GPIO output LED 4 and 5 */
if(
ADI_
GPIO_SUCCESS != (eResult = adi_gpio_OutputEnable(
ADI_
GPIO_PORT1, (
ADI_
GPIO_PIN_12 |
ADI_
GPIO_PIN_13), true)))
{
DEBUG_MESSAGE(“adi_gpio_SetDirection failed\n”);
break;
}
………..
After changes:
/* set
GPIO output LED 4 and 5 */
if(
ADI_
GPIO_SUCCESS != (eResult = adi_gpio_OutputEnable(LED1_PORT_NUM , LED1_PIN_NUM, true)))
{
DEBUG_MESSAGE(“adi_gpio_SetDirection failed\n”);
break;
}
if(
ADI_
GPIO_SUCCESS != (eResult = adi_gpio_OutputEnable(LED2_PORT_NUM, LED2_PIN_NUM , true)))
{
DEBUG_MESSAGE(“adi_gpio_SetDirection failed\n”);
break;
}
………..
save the changes and close the source file.
Now open the application in IAR embedded workbench.
PATH:C:\AnalogDevices\ADuCM302x\ADuCM302x_EZ_Kit\examples\gpio\LED_button_callback\ADuCM302x\iar\LED_button_callback.eww
Press Alt+F7 to open the project options.
Under category select Debugger.
In setup, under Driver select CMSIS DAP.
In Download, uncheck the verify download option.
Under category select CMSIS DAP.
Press “OK” to save and close the options window.
Press Cltr+D to initiate download and debug.