Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

Introduction

The EV-Cog-AD3029 ("the Cog") is a development platform for Analog Devices Ultra Low Power MCU ADuCM3029 with integrated power management for processing, control, and connectivity. The ADuCM3029 MCU is based on the ARM Cortex-M3,along with the collection of digital peripherals, embedded SRAM, flash memory, and an analog subsystem which provides clocking, reset, and power management capability in addition to an Analog-to-Digital Converter (ADC) subsystem.

SimplePublish for EV-

...

Cog-AD3029LZ

The QSL includes a SimplePublish example for the EV-COG-AD3029LZ ("the COG")Cog-AD3029 . This is provided as an IAR Embedded Workbench project based on the BSP (Board Support Package) for the the COGCog.

The SimplePublish application transmits temperature data (on-board temperature sensor of the COG Cog from the mote to the Manager. Debug prints are re-targeted through the ARM Mbed serial port of the COGCog. An orange LED (general purpose LED) on the COG Cog board is also toggled to indicate whether the mote has connected to a network or not.

Info

The example was developed on IAR Embedded Workbench IDE-ARM 7.70.1.


Info

For more information on EV-Cog-AD3029, click on the link provided.

For more information on ADuCM3029 micro-controller, click on the link provided.

Download IAR Embedded Workbench IDE

Download and run the IAR Embedded Workbench IDE from the official download page. After installing the IAR Embedded Workbench, navigate to IAR_EV-COG-AD3029LZ - this link provides step-by-step instructions for working with COG Cog using IAR Embedded Workbench. The page gives instructions on how to download and work with the BSP (Board Support Package for the COGCog) and links to download Mbed windows serial driver which plays a vital role as a debugger for the board.    

...

Connection Diagram


Connect the

...

Cog to the Mote

Anchor
demo_pic
demo_pic
Image RemovedImage Added


Figure 6: Mote connected to the EV-COGCog-AD3029LZ.

The COG Cog is connected to the mote using the EV-GEAR-EXPANDER1Z . The EV-GEAR-EXPANDER1Z is a “Gear” (expansion add-on board) for MCU Cogs (e.g. the EV-COGCog-AD3029LZ). This gear is designed for quick prototyping and bread boarding. Refer to the link for EV-GEAR-EXPANDER1Z provided for more details on how to integrate the COGCog with EV-GEAR-EXPANDER1Z.The pin details for the connection between the COG and The  EV-GEAR-EXPANDER1Z is as shown in EV-COG-AD3029LZ. The pin details of Fig.1 which is interfaced to the Cog. The EV-GEAR-EXPANDER1Z (already connected to the MCU) that are to be connected to the mote is as shown in EV-COG-AD3029LZis interfaced with the Cog board and the pins needed to interace the Cog board to the mote are as shown in  Fig.2. Connect the mote to the MCU as per the pin mapping in EV-COG-AD3029LZ Table.1.


Warning

Long cables between the mote and the COG Cog may corrupt the API bus communication.

...

Section


Column
width30%
Anchor
Fig.1
Fig.1
Image RemovedImage Added



Fig.1: EV-COG-AD3029LZ connectorGEAR-EXPANDER1Z(Primary Side) .



Column
width30%


Column
width30%

Anchor
Fig.2
Fig.2
Image RemovedImage Added


Fig.2: Arduino connectors of EV-Cog-AD3029LZ interfaced with EV-GEAR-EXPANDER1Z.



Column
width10%

Anchor
Table.1
Table.1

+3V

EV-COGCog-AD3029LZ (using expansion add-on board)

Mote

+3VVSUPPLY
GNDGND
E_UART0_TXDTX
E_UART0_RXDRX
GNDRX RTSn
GNDTX CTSn

Table.1: EV-COG-AD3029LZ to mote pin mapping.


Connect Debug USB to Computer

Connect a USB cable from your computer to the USB-micro port of the COGCogThis port is used to program, debug and power the board.

The debug USB appears as mbed Serial Port . Make sure to note the name, e.g. COM25 in the example pictured below, as we will open a terminal on said port to see debug prints.
 

Anchor
com_port
com_port

Open Debug Terminal

The SimplePublish example code will send all standard input/output (e.g. debug prints) through the serial port you identified in the previous section. Open your favourite serial terminal (e.g. PuTTY) and connect to said serial port with the following configuration:

...

Tip

You can (de)activate debug and log messages with the NDEBUG and NLOG defines in dn_debug.h (located in sm_qsl/).


Compile and Run

Navigate to the SimplePublish example directory at examples/EV-COGCog-3029LZ/SimplePublish/ and open the SimplePublish.eww  project file in IAR Embedded Workbench. This should open the project with everything set up for you. Since the COGCog has an embedded debugger, you do not have to select any tool: IAR Embedded Workbench should detect that the board is connected via USB.

Note

The System Workbench project expects to find the sm_clib and sm_qsl as they appear in the Directory Structure. If you chose the zip download or subversion checkout, the sm_clib/ directory from the separate unzipped folder/svn checkout need to be copied into the QSL repository to achieve the same structure.

Build

Project >  Rebuild All to build the project.

Download and Debug

Now, simply press the Image Modified  symbol to compile and run the program, and you should see prints appearing on the debug terminal you opened.