21 lines
758 B
Bash
Executable File
21 lines
758 B
Bash
Executable File
#!/bin/bash
|
|
###
|
|
# @Author: error: error: git config user.name & please set dead value or install git && error: git config user.email & please set dead value or install git & please set dead value or install git
|
|
# @Date: 2023-08-14 09:47:54
|
|
# @LastEditors: zhangzheng 1358745329@qq.com
|
|
# @LastEditTime: 2023-08-18 15:44:08
|
|
# @FilePath: /mkrtos-real/debug.sh
|
|
# @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
###
|
|
|
|
# if [-z "$1"]; then
|
|
# echo "usage: ./debug.sh [tcp port]"
|
|
# exit
|
|
# fi
|
|
|
|
qemu-system-arm -machine\
|
|
netduino2 -cpu cortex-m3 \
|
|
-nographic -m size=2\
|
|
-kernel $PWD/build/output/kernel.img \
|
|
-S -gdb tcp::$1
|