MSP430F5438\MSP430F5438A 操作大内存(Ram),程序跑飞

可以参考TI网站如下:

https://e2echina.ti.com/question_answer/microcontrollers/msp430/f/55/p/189352/580926#580926

MSP430 Memcpy 不建议大量数据的拷贝,经测试少于4K 字节是可以的,平台MSP430F5438

开始申请大容量RAM,程序跑飞解决方案,以及原因

需要重定义 __low_level_init  启动代码中会调用该函数,去关闭看门狗,现在很好奇的是,启动代码初始化,申请内存,能耗时那么久吗?

int __low_level_init(void)
{
WDTCTL = WDTPW + WDTHOLD;

/*==================================*/
/* Choose if segment initialization */
/* should be done or not. */
/* Return: 0 to omit seg_init */
/* 1 to run seg_init */
/*==================================*/
return (1);
}

The function __low_level_init is called by the start-up code before doing
the normal initialization of data segments. If the return value is zero,
initialization is not performed.

In the run-time library there is a dummy __low_level_init, which does
nothing but return 1. This means that the start-up routine proceeds with
initialization of data segments.

To replace this dummy, compile a customized version (like the example
below) and link it with the rest of your code.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值