54 lines
1.9 KiB
Plaintext
Raw Normal View History

2015-04-28 13:45:35 -04:00
About this Example
==================
This example demonstrates how to use the IAR EWARM IDE to build
a QP application.
IAR Project File
----------------
The IAR EWARM project file provided with this example uses relative paths
2016-06-10 21:50:26 -04:00
to the QP/C framework location (includes, port, and libraries. These
relative paths must be modified when the project is moved to different
relative location.
2015-04-28 13:45:35 -04:00
Stack Size and Heap Size
------------------------
In this project, the size of the C stack and heap are determined in
the linker script blinky-qk.icf (see the next section).
Linker Script
-------------
The IAR linker script provides a template of the recommended linker script
for QP applications. This file needs to be customized to set the
application-specific sizes of the Stack and Heap. This file can be edited
from the IAR EWARM IDE via the Project Options/Linker settings.
Startup Code
2016-06-10 21:50:26 -04:00
============
The startup code for the TM4C123GH6PM MCU used in this project is
2015-04-28 13:45:35 -04:00
located in the "3rd_party" folder in the following location:
2016-06-10 21:50:26 -04:00
3rd_party\efm32pg1b\iar\startup_efm32pg1b.s
2015-04-28 13:45:35 -04:00
2016-06-10 21:50:26 -04:00
The file startup_efm32pg1b.s provides a template of the recommended
2015-04-28 13:45:35 -04:00
startup for QP applications and should be easily customizable for other
ARM Cortex-M microcontrollers.
The startup file typically does not need to be modified or adapted for
applications. It provides only weak definitions of all exception and
interrupt handlers, as well as the assert_failed() function.
The weak function assert_failed() defined in this file might be re-defined
in the application to customize it for the application-specific error-
handling policy.
***
NOTE: The function assert_failed() typically should NOT use the stack,
because stack might be corrupted by the time this function is called.
2016-06-10 21:50:26 -04:00
Also, assert_failed() is intended to handle catastrophic errors and
2015-04-28 13:45:35 -04:00
should NOT return.
***