
STMicroelectronics BlueNRG CPU Support Package
This package contains project templates and system files for the STMicroelectronics BlueNRG.
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 STMicroelectronics BlueNRG 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 STMicroelectronics BlueNRG 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 BlueNRG.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 STMicroelectronics BlueNRG CPU Support Package link to view the package and its contents.
Release Notes
4.1
- Add support for BlueNRG-LP.
4.0
- Initial Release.
Documentation
Creating BlueNRG Projects
To create a new BlueNRG project
- Select the File > New > New Project menu item.
- Select the appropriate Generic BlueNRG from the Categories list.
- Select the required project template type from the Templates list.
- Set the required project name and location directory.
- Click OK.
To build and debug an application the runs in Flash memory
- Select the project to work on by using the Project > Set Active Project menu option.
- Select the configuration you require by using the Build > Set Active Build Configuration menu option.
- Right click on the project node in the project explorer and select the Flash placement property.
- Build the project by using the Build > Build Project menu option.
- Connect to the appropriate target in the target window.
- Download and start debugging the current project by using Debug > Start Debugging.
BlueNRG Project Specifics
Stack and Heap Sizes
The default stack and heap sizes are set to be 256 and 256 bytes by default when a project is created.
Target Startup Code
The startup code BlueNRG_Startup.s is common to all BlueNRG processors. There are a set of preprocessor defines that configure the startup code and are documented in the startup file itself. The startup code calls out to a weak symbol SystemInit with the stack pointer set to the top of of SRAM. The SystemInit function can be used to set the CPU clock or configure any external memories prior to the C initialisation code as such it cannot access initialised static data.
Target Reset Script
The reset script BlueNRG_Target.js is used by the debugger to reset the target board.