![Cirrus Logic ARM CDB89712 User Manual Download Page 43](http://html.mh-extra.com/html/cirrus-logic/arm-cdb89712/arm-cdb89712_user-manual_2608557043.webp)
CDB89712
A-2
DS502UM2
A.1.4
ledblink.c
This example demonstrates how to control a led by writing the relative register. The led will blink
constantly after running.
A.1.5
MemoryChecking.c
Applications which use dynamic memory management (malloc / free) must ensure that all malloc’d
memory blocks are freed after use.
If allocated memory is not freed, then that memory is no longer available for re-allocation to the
program, thus reducing the total available memory. This condition is known as a memory leak, and
can cause an application to fail because of a lack of available memory.
A.1.6
rom_ledblink.c
This project is an example that shows how to create a stand-alone application. It creates the file
"rom_ledblink.bin" which is a binary image which should be flashed to the board. This can be done
by following the next steps:
1) Connect a NULL modem cable between com1 of your host machine and UART0 of the CS89712.
2) With no power to the board connect jumper31.
3) Run the download.exe program with the following options:
"download rom_ledblink.bin"
4) Power the board and press the wakeup button.
5) Once the download is complete LED D7 will light up.
6) Power off the board.
7) Remove jumper31.
8) Power the board and press the reset button.
9) Wait 2 seconds and then press the Wakeup button.
LED D7 will begin to blink at a constant rate.
A.1.7
RunTimeErrorChecking.c
Simple programing errors which cannot be detected at compile-time can be very difficult to debug.
Errors such as indexing outside of an array boundary can overwrite other variable giving erroneous
values later in your application.
MULTI’s run-time error checking will halt execution, warning that a run-time error has occurred
during your debug session.
If it is undesirable for your application to halt at a run-time error, see the
"CustomRunTimeErrorChecking" example.
A.1.8
SortByName.c
This example demonstrates a wide variety of MULTI’s capabilities.
The application is a straightforward sorting demonstration: it will open a file on the host system, read
in a number of records from that file, sort them, and print out the sorted list in the I/O window.
- Host I/O Capability:
MULTI provides an interface by which an embedded application can access the host machine’s disk
drives, keyboard, and console (via the INPUT/OUTPUT window).
Summary of Contents for ARM CDB89712
Page 45: ... Notes ...
Page 46: ......