求助,关于S32K144单片机BootLoader的跳转问题

这两天写了一个S32K144的BootLoader,应用程序的起始地址是0x4000,现在已经将Keil生成的Bin文件从头开始整个烧写进了从0x4000开始的Flash上,并且又读出来完成了检查。
但是程序跳转之后,发现应用程序没有成功运行。
我的跳转程序如下:

#define ApplicationAddress (0x4000)
typedef void (pFunction)(void);
pFunction Jump_To_Application;
void bl_jump2app()
{
uint32_t JumpAddress;
__disable_irq();
/
复位用过的模块 /
bsp_pit_deinit();
bsp_uart_deinit();
bsp_can_deinit();
JumpAddress = (__IO uint32_t) (ApplicationAddress + 4);
Jump_To_Application = (pFunction) JumpAddress;
__set_MSP(
(__IO uint32_t*) ApplicationAddress);
S32_SCB->VTOR = (uint32_t) ApplicationAddress;
Jump_To_Application();
}

Keil生成的BIN文件如下:
在这里插入图片描述
在这里插入图片描述
应用程序的KEIL设置如下:
在这里插入图片描述

希望各位大佬指正,谢谢!

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值