You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li>To use the Event Recorder together with FreeRTOS, add the software components <b>::Compiler:Event Recorder</b> and <b>::RTOS:Event Groups</b> to your project.</li>
148
-
<li>Add this include: <code>#include</code><code>"EventRecorder.h"</code></li>
149
-
<li>Call <b>EventRecorderInitialize(EventRecordAll, 1);</b> in your application code (ideally in <code>main()</code>).</li>
147
+
<li>To use the Event Recorder together with FreeRTOS, add the software component <b>::Compiler:Event Recorder</b> to your project.</li>
<li>verify the header file <b>freertos_evr.h</b> is included</li>
150
+
<li>add Event Recorder configuration definitions (see <aclass="el" href="cre_freertos_proj.html#cmsis_freertos_evr_config">Configure Event Recorder</a>)</li>
151
+
</ul>
152
+
</li>
153
+
<li>Call <b><aclass="el" href="group__freertos__setup.html#ga943f40b05c79f40c73d67b1adcbe3dbe" title="Setup Event Recorder configuration. ">EvrFreeRTOSSetup()</a></b> in your application code (ideally in <code>main()</code>).</li>
150
154
<li>If you are using simulation mode, add an initialization file with the following content: <divclass="fragment"><divclass="line">MAP 0xE0001000, 0xE0001007 READ WRITE </div>
<td>Preemption interrupt priority </td><td>configMAX_SYSCALL_INTERRUPT_PRIORITY </td><td>Maximum priority of interrupts that are safe to call FreeRTOS API. </td></tr>
209
+
<tr>
204
210
<td>Use time slicing </td><td>configUSE_TIME_SLICING </td><td>Enable setting to use time slicing. </td></tr>
205
211
<tr>
206
212
<td>Idle should yield </td><td>configIDLE_SHOULD_YIELD </td><td>Control Yield behavior of the idle task. </td></tr>
<td>Use daemon task startup hook </td><td>configUSE_DAEMON_TASK_STARTUP_HOOK </td><td>Enable callback function call when timer service starts. </td></tr>
215
221
<tr>
216
222
<td>Use malloc failed hook </td><td>configUSE_MALLOC_FAILED_HOOK </td><td>Enable callback function call when out of dynamic memory. </td></tr>
223
+
<tr>
224
+
<td>Queue registry size </td><td>configQUEUE_REGISTRY_SIZE </td><td>Define maximum number of queue objects registered for debug purposes. </td></tr>
225
+
</table>
226
+
<p><b> Event Recorder Configuration </b></p>
227
+
<p>The following settings are available (see <aclass="el" href="cre_freertos_proj.html#cmsis_freertos_evr_config">Configure Event Recorder</a> for details):</p>
<td>Task functions </td><td>configEVR_LEVEL_TASKS </td><td>Define event recording level bitmask for events generated from Tasks functions. </td></tr>
237
+
<tr>
238
+
<td>Queue functions </td><td>configEVR_LEVEL_QUEUE </td><td>Define event recording level bitmask for events generated from Queue functions. </td></tr>
239
+
<tr>
240
+
<td>Timer functions </td><td>configEVR_LEVEL_TIMERS </td><td>Define event recording level bitmask for events generated from Timer functions. </td></tr>
241
+
<tr>
242
+
<td>Event Groups functions </td><td>configEVR_LEVEL_EVENTGROUPS </td><td>Define event recording level bitmask for events generated from Event Groups functions. </td></tr>
243
+
<tr>
244
+
<td>Heap functions </td><td>configEVR_LEVEL_HEAP </td><td>Define event recording level bitmask for events generated from Heap functions. </td></tr>
245
+
<tr>
246
+
<td>Stream Buffer functions </td><td>configEVR_LEVEL_STREAMBUFFER </td><td>Define event recording level bitmask for events generated from Stream Buffer functions. </td></tr>
217
247
</table>
218
248
<h2><aclass="anchor" id="cmsis_freertos_er"></a>
219
249
Add Event Recorder Visibility</h2>
220
250
<ul>
221
251
<li>To use the Event Recorder together with FreeRTOS, add the software component <b>::Compiler:Event Recorder</b> to your project.</li>
222
-
<li>Add this include: <code>#include</code><code>"EventRecorder.h"</code></li>
223
-
<li>Call <b>EventRecorderInitialize(EventRecordAll, 1);</b> in your application code (ideally in <code>main()</code>).</li>
<li>verify the header file <b>freertos_evr.h</b> is included</li>
254
+
<li>modify Event Recorder configuration definitions (see <aclass="el" href="cre_freertos_proj.html#cmsis_freertos_evr_config">Configure Event Recorder</a>) to change default configuration</li>
255
+
</ul>
256
+
</li>
257
+
<li>Call <b>osKernelInitialize()</b> in your application code (ideally in <code>main()</code>) to setup Event Recorder according to configuration settings.</li>
224
258
<li>If you are using simulation mode, add an initialization file with the following content: <divclass="fragment"><divclass="line">MAP 0xE0001000, 0xE0001007 READ WRITE </div>
<p>This section describes the configuration settings for the <ahref="http://www.keil.com/pack/doc/compiler/EventRecorder/html/index.html" target="_blank">Event Recorder</a> annotations. For more information refer to section <aclass="el" href="cre_freertos_proj.html#native_freertos_er">Add Event Recorder Visibility to native FreeRTOS project</a> or <aclass="el" href="cre_freertos_proj.html#cmsis_freertos_er">Add Event Recorder Visibility to CMSIS-FreeRTOS project</a>.</p>
273
+
<p>Use below definitions to configure Event Recorder initialization and recording level filter setup.</p>
<p>Definition configEVR_INITIALIZE enables Event Recorder initialization during execution of function <aclass="el" href="group__freertos__setup.html#ga943f40b05c79f40c73d67b1adcbe3dbe">EvrFreeRTOSSetup</a>. Default value is <spanclass="XML-Token">1</span>.</p>
<p>Definition configEVR_SETUP_LEVEL enables setup of recording level filter for events generated by FreeRTOS. Recording level is configured during execution of function <aclass="el" href="group__freertos__setup.html#ga943f40b05c79f40c73d67b1adcbe3dbe">EvrFreeRTOSSetup</a>. Default value is <spanclass="XML-Token">1</span>.</p>
<td>0x01 </td><td>Enable generation of error events </td></tr>
307
+
<tr>
308
+
<td>0x05 </td><td>Enable generation of error and operational events </td></tr>
309
+
<tr>
310
+
<td>0x0F </td><td>Enable generation of all events </td></tr>
311
+
</table>
312
+
<p>Definitions configEVR_LEVEL_x set the recording level bitmask for events generated by each function group. They are taken into account only when recording level filter setup is enabled. Default value is <spanclass="XML-Token">0x05</span>. </p>
236
313
</div></div><!-- contents -->
237
314
</div><!-- doc-content -->
238
315
<!-- start footer part -->
239
316
<divid="nav-path" class="navpath"><!-- id is needed for treeview function! -->
240
317
<ul>
241
-
<liclass="footer">Generated on Thu Feb 22 2018 12:06:39 for CMSIS-FreeRTOS by ARM Ltd. All rights reserved.
318
+
<liclass="footer">Generated on Fri Apr 12 2019 08:49:20 for CMSIS-FreeRTOS by ARM Ltd. All rights reserved.
0 commit comments