Dialog Semiconductor DA14580 CPU Support Package
This package contains project templates and system files for the Dialog Semiconductor DA14580.
CrossWorks Version 4 Installation Instructions
- To install this support package
-
- Click the Tools > Package Manager menu option to open the package manager window.
- Right click on the Dialog Semiconductor DA14580 CPU Support Package entry and select Install Selected Packages.
- Click Next to take you to the summary page.
- Click Next to install the package.
- Click Finish to close the package manager window.
- Click the Tools > Show Installed Packages.
- Click on the Dialog Semiconductor DA14580 CPU Support Package link to view the package and its contents.
- To manually install this support package
-
- If you have not done so already, follow the CrossWorks Tasking Library Package installation instructions.
- Download the file DA14580.hzq using your web browser.
- Click the Tools > Manually Install Packages menu option.
- Select the file you have just downloaded to install the package.
- Click the Tools > Show Installed Packages.
- Click on the Dialog Semiconductor DA14580 CPU Support Package link to view the package and its contents.
- To install this support package using other versions
Release Notes
3.0
- Initial Release.
Documentation
DA14580 SDK 5 peripheral samples
You can import the peripheral samples from the Dialog SDK 5 as follows:
- Use File | Import IAR EWARM / Keil MDK Project...
- Select the appropriate Keil MDK project file e.g. blinky.uvprojx
- When prompted select "DA14580 C/C++ Executable" as the project template
- In the Project Explorer right click on the newly created project and select "Import Section Placement"
- Edit the imported ram_placement.xml file using the editor and add
inputsections="*(.bss .bss.* .gnu.linkonce.b.*) *(COMMON) *(retention_mem_area0)"
to the the ProgramSection entry for the bss section - Change the Compiler Optimization property to be "Debug" rather than "None" to avoid linker problems with inlined functions.
- Change declarations that use __attribute__(at) into pointers for example
volatile struct __CLK_PER_REG clk_per_reg __attribute__((at(CLK_PER_REG)));
becomes
volatile struct __CLK_PER_REG *clk_per_reg = (volatile struct __CLK_PER_REG *)(CLK_PER_REG);
and change uses of . to -> - You can now build, download and debug the sample, you can also see the uart output using Tools | Terminal Emulator