nseh

nseh

0个粉丝

18

问答

0

专栏

0

资料

nseh  发布于  2018-08-22 11:08:04
采纳率 0%
18个问答
1806

TM4C1294相关

 
大家好我目前用TM4C1294做一个IAP升级程序参考  usb_stick_update的例程,发现BootLoader转换到APP相量表的中断函数还是BootLoader没有跳转到APP相量表,请高手指点
我来回答
回答6个
时间排序
认可量排序

ppfic

0个粉丝

7

问答

0

专栏

0

资料

ppfic 2018-08-22 11:09:25
认可0
程序先进BootLoader然后再跳转到APP的中断向量表,然后再进入到复位中断函数,进入main

nseh

0个粉丝

18

问答

0

专栏

0

资料

nseh 2018-08-22 11:11:06
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=104172&ptid=51768]ppfic 发表于 2018-8-22 11:09[/url]
程序先进BootLoader然后再跳转到APP的中断向量表,然后再进入到复位中断函数,进入main[/quote]

但是TI的arm貌似先把相量表复制到ram里面, HWREG(NVIC_VTABLE) = 0x34000 不起作用
跳转app的函数
__asm void
CallApplication(uint_fast32_t ui32StartAddr)
{
    //
    // Set the vector table address to the beginning of the application.  0xe000ed08
    //
    ldr     r1, =0xe000ed08      
    str     r0, [r1]

    //
    // Load the stack pointer from the application's vector table.
    //
    ldr     r1, [r0]
    mov     sp, r1

    //
    // Load the initial PC from the application's vector table and branch to
    // the application's entry point.
    //
    ldr     r0, [r0, #4]
    bx      r0
}

mbrq

0个粉丝

6

问答

0

专栏

3

资料

mbrq 2018-08-22 11:11:55
认可0
你是哪里有问题?

nseh

0个粉丝

18

问答

0

专栏

0

资料

nseh 2018-08-22 11:12:49
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=104174&ptid=51768]mbrq 发表于 2018-8-22 11:11[/url]
你是哪里有问题?[/quote]

跳转到app后   中断函数还是BootLoader的

mbrq

0个粉丝

6

问答

0

专栏

3

资料

mbrq 2018-08-22 11:13:59
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=104175&ptid=51768]nseh 发表于 2018-8-22 11:12[/url]
跳转到app后   中断函数还是BootLoader的[/quote]

跳转到app后,再来中断,处理器会从app的中断向量表查找是属于哪一个中断,不是bootloader的

nseh

0个粉丝

18

问答

0

专栏

0

资料

nseh 2018-08-22 11:14:52
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=104176&ptid=51768]mbrq 发表于 2018-8-22 11:13[/url]
跳转到app后,再来中断,处理器会从app的中断向量表查找是属于哪一个中断,不是bootloader的[/quote]

是的,貌似app的中断相量表没加上去
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区