上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 164 下一页

2022年2月24日

摘要: tos_knl_irq_enter和tos_knl_irq_leave __API__ void tos_knl_irq_enter(void) { if (!tos_knl_is_running()) { return; } if (unlikely(k_irq_nest_cnt >= K_NES 阅读全文
posted @ 2022-02-24 11:39 tycoon3 阅读(124) 评论(0) 推荐(0)

2022年2月23日

摘要: 1、修改项目名称 在项目的Settings->General->Advanced settings中,有Rename repository的操作,如下图所示把项目名称和路径中的名称同时修改。 2、修改本地仓库 对于本地已经克隆下来的仓库,修改步骤如下:1. 运行git remote查看远程仓库名称, 阅读全文
posted @ 2022-02-23 19:58 tycoon3 阅读(3343) 评论(0) 推荐(0)
摘要: 中断寄存器 1)ISER[8](Interrupt Set-Enable Registers):中断使能寄存器--void NVIC_Init(NVIC_InitTypeDef* NVIC_InitStruct);。其 中断使能寄存器共有8个,ISER[0]设置0~31号中断的使能,ISER[1]设 阅读全文
posted @ 2022-02-23 16:54 tycoon3 阅读(1748) 评论(0) 推荐(0)

2022年2月22日

摘要: Cortex-M3/4 一些调试技巧 今天主要总结下这段时间在没有 调试器 情况下,解决 bug 的一些辅助调试手段。 在没有 调试器 的情况下,进行代码调试的手段就只有 log 大法,为了能够尽可能详细地输出有用的调试信息,往往我们需要将 调用栈 、R0- R15 寄存器、SCB、中断状态、线程状 阅读全文
posted @ 2022-02-22 15:54 tycoon3 阅读(383) 评论(0) 推荐(0)

2022年2月21日

摘要: 根据commit生成patch 可以使用如下两种方式。1. git format-patch -1 commit :生成的patch有统计信息和git的版本信息2. git diff commit_previous commit > mypatch.diff :最原始的diff信息,对于这里的com 阅读全文
posted @ 2022-02-21 15:36 tycoon3 阅读(190) 评论(0) 推荐(0)
摘要: 有这样的 目录层次 x/xx/xxx/xxx/ttt.c而 我的 当前位置 是在 x/下 ,执行git diff> test.patch 在test.patch补丁文件里的路径信息是这样的:- - - a/xx/xxx/xxx +++b/xx/xxx/xxx 如果 应用 test.patch 的时候 阅读全文
posted @ 2022-02-21 15:07 tycoon3 阅读(196) 评论(0) 推荐(0)

2022年2月18日

摘要: qemu static const MemMapEntry virt_memmap[] = { [VIRT_DEBUG] = { 0x0, 0x100 }, [VIRT_MROM] = { 0x1000, 0xf000 }, [VIRT_TEST] = { 0x100000, 0x1000 }, [ 阅读全文
posted @ 2022-02-18 19:13 tycoon3 阅读(138) 评论(0) 推荐(0)
摘要: git checkout -f rv64-openamp-port Checking out files: 100% (10938/10938), done. Branch 'rv64-openamp-port' set up to track remote branch 'rv64-openamp 阅读全文
posted @ 2022-02-18 17:54 tycoon3 阅读(256) 评论(0) 推荐(0)
摘要: qemu-system-riscv64 -M virt -m 512M -smp 2 -bios fw_jump.bin -kernel Image -append "rootwait root=/dev/vda console=ttyS0" -drive file=rootfs.ext2,form 阅读全文
posted @ 2022-02-18 11:53 tycoon3 阅读(786) 评论(0) 推荐(0)

2022年2月17日

摘要: arm32 中断初始化 qemu-system-arm -serial null -serial mon:stdio -nographic -M xilinx-zynq-a9 -m 256M -net tap,ifname=qtap,script=no,downscript=no -net nic, 阅读全文
posted @ 2022-02-17 11:58 tycoon3 阅读(144) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 164 下一页

导航