Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| en:uhsdr_dev:segger_j_link [27.02.2018 07:38] – df9ts_user | en:uhsdr_dev:segger_j_link [27.02.2018 08:46] (current) – df9ts_user | ||
|---|---|---|---|
| Line 64: | Line 64: | ||
| The RTT target code is shipped as part of the J-Link Software and Documentation Pack which can be downloaded [[https:// | The RTT target code is shipped as part of the J-Link Software and Documentation Pack which can be downloaded [[https:// | ||
| + | |||
| + | === Calling SEGGER_RTT print from within interrupts / make it re-entrant === | ||
| + | During RTT output the functions SEGGER_RTT_LOCK() and SEGGER_RTT_UNLOCK() are called by default in RTT, but the function bodies of those functions are empty and need to be implemented according to MCU used and use case. | ||
| + | |||
| + | Please implement | ||
| + | * SEGGER_RTT_LOCK() | ||
| + | * SEGGER_RTT_UNLOCK() | ||
| + | * .. and disable interrupts and threads which might use RTT in SEGGER_RTT_LOCK() and enable them again in SEGGER_RTT_UNLOCK(). | ||
| + | * See [https:// | ||
| ==== J-Link support for Option bytes and Lock / Unlock ==== | ==== J-Link support for Option bytes and Lock / Unlock ==== | ||