![](/media/cache/profiles/f0fcf351df4eb6786e9bb6fc4e2dee02.jpg.50x50_q85.jpg)
Debug tools / show registers, memory and system clock data
Target mbed board
LPC1768
LPC1114FN28
ST Nucleo L152RE
ST NUcleo F401RE
ST Nucleo F411RE
Command structure
Top
1 - goto step1 -> no connection all pins
2 - goto step2 -> connects pin_x and pin_y (not impliment yet)
t - Check and set RTC
x - Goto HW monitor
q - Return to main
>1
l - Check LED
b - Check button
s - CPU system info & clock
o - CPU clock output (Bug fix, port_mco1_mco2_set() function. Thanks Topi Makinen on April 25th, 2015)
>x(Hardware level monitor)
m - Entry Memory Mode
m>? -> Aditinal functions can see by ?
r - Entry Register Mode
r>? -> Aditinal functions can see by ?
s - System Clock -> sf, System / CPU information -> sc
q - Quit (back to called routine)
p - Entry Port Mode
p>? -> Aditinal functions can see by ?
Usage
Please modify "mon_hw_config.h" file for your purpose.
Especially LPC114FN28 has small memory, you cannot run your own program together with this program.
You don't need any additional HW. Just connect with PC via terminal software.
CAUTION
Due to several CPU's and short development time, I cannot grantee the quality level and several functions are not available yet.
If you found the bug, please let me know. Thanks in advance.
main.cpp@2:b96103f9270e, 2014-11-02 (annotated)
- Committer:
- kenjiArai
- Date:
- Sun Nov 02 09:28:26 2014 +0000
- Revision:
- 2:b96103f9270e
- Parent:
- 1:84813f6b798e
modified all of files for pick-up common parts
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kenjiArai | 0:d327c184e8bb | 1 | /* |
kenjiArai | 1:84813f6b798e | 2 | * mbed Application program / How to use "monitor_03" |
kenjiArai | 0:d327c184e8bb | 3 | * |
kenjiArai | 0:d327c184e8bb | 4 | * Copyright (c) 2014 Kenji Arai / JH1PJL |
kenjiArai | 0:d327c184e8bb | 5 | * http://www.page.sannet.ne.jp/kenjia/index.html |
kenjiArai | 0:d327c184e8bb | 6 | * http://mbed.org/users/kenjiArai/ |
kenjiArai | 0:d327c184e8bb | 7 | * Created: May 5th, 2014 |
kenjiArai | 2:b96103f9270e | 8 | * Revised: Nobember 2nd, 2014 |
kenjiArai | 0:d327c184e8bb | 9 | * |
kenjiArai | 0:d327c184e8bb | 10 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, |
kenjiArai | 0:d327c184e8bb | 11 | * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE |
kenjiArai | 0:d327c184e8bb | 12 | * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
kenjiArai | 0:d327c184e8bb | 13 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
kenjiArai | 0:d327c184e8bb | 14 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
kenjiArai | 0:d327c184e8bb | 15 | */ |
kenjiArai | 0:d327c184e8bb | 16 | |
kenjiArai | 0:d327c184e8bb | 17 | // Include --------------------------------------------------------------------------------------- |
kenjiArai | 0:d327c184e8bb | 18 | #include "mbed.h" |
kenjiArai | 0:d327c184e8bb | 19 | |
kenjiArai | 0:d327c184e8bb | 20 | // Definition ------------------------------------------------------------------------------------ |
kenjiArai | 0:d327c184e8bb | 21 | |
kenjiArai | 0:d327c184e8bb | 22 | // Object ---------------------------------------------------------------------------------------- |
kenjiArai | 0:d327c184e8bb | 23 | |
kenjiArai | 0:d327c184e8bb | 24 | // RAM ------------------------------------------------------------------------------------------- |
kenjiArai | 0:d327c184e8bb | 25 | |
kenjiArai | 0:d327c184e8bb | 26 | // ROM / Constant data --------------------------------------------------------------------------- |
kenjiArai | 0:d327c184e8bb | 27 | |
kenjiArai | 0:d327c184e8bb | 28 | // Function prototypes --------------------------------------------------------------------------- |
kenjiArai | 0:d327c184e8bb | 29 | |
kenjiArai | 0:d327c184e8bb | 30 | // Function prototypes --------------------------------------------------------------------------- |
kenjiArai | 2:b96103f9270e | 31 | extern void debug_interface(void); |
kenjiArai | 0:d327c184e8bb | 32 | |
kenjiArai | 0:d327c184e8bb | 33 | //------------------------------------------------------------------------------------------------- |
kenjiArai | 0:d327c184e8bb | 34 | // Control Program |
kenjiArai | 0:d327c184e8bb | 35 | //------------------------------------------------------------------------------------------------- |
kenjiArai | 1:84813f6b798e | 36 | int main() |
kenjiArai | 1:84813f6b798e | 37 | { |
kenjiArai | 1:84813f6b798e | 38 | while (true) { |
kenjiArai | 2:b96103f9270e | 39 | debug_interface(); |
kenjiArai | 1:84813f6b798e | 40 | } |
kenjiArai | 1:84813f6b798e | 41 | } |