Freescale KINETIS512_SC Updates for CrossWorks For ARM
Freescale KINETIS512_SC Updates for CrossWorks For ARM
Installation Instructions
CrossWorks Version 2.x Installation Instructions
To install this support package using CrossStudio:
- Click the Tools > Package Manager menu option to open the package manager window.
- Right click on the Freescale KINETIS512_SC Updates for CrossWorks For ARM 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.
Alternatively, to manually install this support package:
- If you have not done so already, follow the Freescale Kinetis CPU Support Package installation instructions.
- Download the file KINETIS512_SC_Updates.hzr using your web browser.
- Click the Tools > Manually Install Packages menu option.
- Select the file you have just downloaded to install the package.
To view the support package and its contents:
- Click the Tools > Show Installed Packages.
- Click on the Freescale KINETIS512_SC Updates for CrossWorks For ARM link.
Release Notes
1.1
- Added build configurations for TWR-K53N512 board.
1.0
- Initial Release.
Documentation
1) Installation
You should download and install the KINETIS512_SC from the Freescale website.
When you install this package you will be prompted for the KINETIS512_SC installation directory. This package will add CrossWorks project files to the KINETIS512_SC installation directory. This package will overwrite the following KINETIS512_SC source files:
- src/common/common.h - added toolchain specific header file reference.
- src/drivers/mcg/mcg.c - added __attribute__((section(".fast"))) to set_sys_dividers.
- src/cpu/sysinit.c - added __attribute__((constructor)) to sys_init.
You may be prompted before the files are overwritten, if so answer yes.
The CrossWorks package installation process will set the CrossWorks global macro KINETIS512_SC which is used by the CrossWorks project files to refer to KINETIS512_SC directories and files. If you subsequently move the KINETIS512_SC installation directory you should modify this macro using the "Tools|Macros" dialog.
This package has been tested with Rev #:3.0 of the KINETIS512_SC download.
2) Examples
A subset of the KINETIS512_SC examples have been built and tested on the TWR-K60N512, TWR-K53N512 and TWR-K40X256 board the following project files are supplied.
- adc_demo (click to load project)
- crc_demo (click to load project)
- dac12bit_demo (click to load project)
- flexmem_demo (click to load project)
- gpio (click to load project)
- hello_world (click to load project)
- hscmp (click to load project)
- i2c (click to load project)
- lptmr (click to load project)
- pdb_adc_demo (click to load project)
- pmc (click to load project)
- rtc (click to load project)
- slcd (click to load project)
- tsi (click to load project)
- tsi_low_pwr (click to load project)
The project files create configurations for the particular TWR board, reference the files required for the project and add the various directory paths to the include path. Depending on the example the names of the ISR's specified in the CrossWorks Kinetis startup file may be renamed (use the preprocessor definitions property) to match that of the example.
3) Known Problems
- On restart from breakpoint the ADC interrupts don't seem to trigger.