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.

请问下,如何读写cc2530内部flash的不同 bank 啊?

Other Parts Discussed in Thread: Z-STACK

本人用的是内部flash 256k的那种,

默认的是读写bank0吧,用的是z-stack里的函数

HalFlashErase(127);

while( FCTL & 0x80 );

HalFlashWrite(0xfe00, write_buffer, buffer_size);

HalFlashRead(127, 0, read_buffer, buffer_size);

这样单独一个工程是可以的,因为本身生成的烧写程序小,但是如果工程大,

生成的烧写程序也大,这样就会擦除了代码的部分,程序也就死掉了,

不知道是不是我用的bank切换的不对,  用了FMAP进行映射 比如FMAP=7读写最后的部分,

程序还是会跑飞,

求指教下,谢谢