可以参考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.