PBL是存储在外部Flash中的,由芯片的ROMboot加载并启动(加载到0x70002000-0x7004FFFF),
PBL起来后通过Can下载SBL到RAM中(0x70050000-0x7009FFFF),然后从PBL跳转到SBL中,怎么跳转?SBL的中断需要怎么设置?需要TI的技术支持提供帮助,18613053797
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
如下操作,PBL跳转之前
我写了一段中断示例,您参考一下
// 定义中断处理函数
void __attribute__((interrupt)) sbl_interrupt_handler(void) {
// 处理中断
// 清除中断标志,处理数据
}
// 初始化中断控制器
void sbl_init_interrupts() {
// 配置中断控制器
// 使能中断、设置中断优先级
}
// SBL的入口函数
int main() {
// 初始化中断
sbl_init_interrupts();
// 其他初始化工作
// 进入主循环
while (1) {
// 执行操作,进行其他处理
}
return 0;
}