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.
debug_tools/mon_hw_config.h@4:02980a730cfb, 2015-04-26 (annotated)
- Committer:
- kenjiArai
- Date:
- Sun Apr 26 09:31:58 2015 +0000
- Revision:
- 4:02980a730cfb
- Parent:
- 2:b96103f9270e
Set output port PA8 & PC9 high speed mode
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kenjiArai | 2:b96103f9270e | 1 | /* |
kenjiArai | 2:b96103f9270e | 2 | * mbed Headder file for Hardware Monitor |
kenjiArai | 2:b96103f9270e | 3 | * |
kenjiArai | 2:b96103f9270e | 4 | * Copyright (c) 2014 Kenji Arai / JH1PJL |
kenjiArai | 2:b96103f9270e | 5 | * http://www.page.sannet.ne.jp/kenjia/index.html |
kenjiArai | 2:b96103f9270e | 6 | * http://mbed.org/users/kenjiArai/ |
kenjiArai | 2:b96103f9270e | 7 | * Created: June 1st, 2014 |
kenjiArai | 2:b96103f9270e | 8 | * Revised: Nobember 2nd, 2014 |
kenjiArai | 2:b96103f9270e | 9 | * |
kenjiArai | 2:b96103f9270e | 10 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, |
kenjiArai | 2:b96103f9270e | 11 | * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE |
kenjiArai | 2:b96103f9270e | 12 | * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, |
kenjiArai | 2:b96103f9270e | 13 | * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
kenjiArai | 2:b96103f9270e | 14 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
kenjiArai | 2:b96103f9270e | 15 | */ |
kenjiArai | 2:b96103f9270e | 16 | |
kenjiArai | 2:b96103f9270e | 17 | // CPU LPC1768 / mbed LPC1768 |
kenjiArai | 2:b96103f9270e | 18 | // mon_hw_config.h mon_hw_mem.h mon_hw_LPC1768.cpp |
kenjiArai | 2:b96103f9270e | 19 | |
kenjiArai | 2:b96103f9270e | 20 | // CPU LPC1114 / mbed LPC1114FN28 |
kenjiArai | 2:b96103f9270e | 21 | // mon_hw_config.h mon_hw_mem.h mon_hw_LPC1114.cpp |
kenjiArai | 2:b96103f9270e | 22 | |
kenjiArai | 2:b96103f9270e | 23 | // CPU STM32L152RE / mbed ST Nucleo L152RE |
kenjiArai | 2:b96103f9270e | 24 | // CPU STM32F401RE / mbed ST Nucleo F401RE |
kenjiArai | 2:b96103f9270e | 25 | // CPU STM32F411RE / mbed ST Nucleo F411RE |
kenjiArai | 2:b96103f9270e | 26 | // mon_hw_config.h mon_hw_mem.h mon_hw_STM32.h mon_hw_STM32.cpp |
kenjiArai | 2:b96103f9270e | 27 | |
kenjiArai | 2:b96103f9270e | 28 | |
kenjiArai | 2:b96103f9270e | 29 | #ifndef _MON_HW_CONF_H_ |
kenjiArai | 2:b96103f9270e | 30 | #define _MON_HW_CONF_H_ |
kenjiArai | 2:b96103f9270e | 31 | |
kenjiArai | 2:b96103f9270e | 32 | // Definition ------------------------------------------------------------------------------------ |
kenjiArai | 2:b96103f9270e | 33 | // Please select each function for your purpose (selected = set 1) |
kenjiArai | 2:b96103f9270e | 34 | |
kenjiArai | 2:b96103f9270e | 35 | #define USE_MEM 1 |
kenjiArai | 2:b96103f9270e | 36 | #define USE_PORT 1 |
kenjiArai | 2:b96103f9270e | 37 | #define USE_UART 1 |
kenjiArai | 2:b96103f9270e | 38 | #define USE_SPI 1 |
kenjiArai | 2:b96103f9270e | 39 | #define USE_I2C 1 |
kenjiArai | 2:b96103f9270e | 40 | #define USE_SYS 1 |
kenjiArai | 2:b96103f9270e | 41 | |
kenjiArai | 2:b96103f9270e | 42 | #endif // _MON_HW_CONF_H_ |