在手册里没找到flash的起始地址,只找到了flash控制寄存器的起始地址,请问一下flash读写应该怎么操作呀
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.
您可以参考一下
C:\ti\simplelink_msp432e4_sdk_4_20_00_12\examples\nortos\MSP_EXP432E401Y\drivers\nvsinternal
好的,谢谢了。但是我发现它好像用的是driver里nvs的库。但是像source里driverlib的flash.c都没用上。下面这个是flash.c的库函数。就是想问一下有没有用driverlib里库函数写的flash的例程
好的,谢谢。我就是按照这个写的,但是擦除flash的时候就不成功,有可能是起始地址错了。而且这里面也没有flash读的函数啊
但是好像没有读的函数
假设地址是0x12345678,那么分别按照不同数据位数读取
数据为8位: char val=*((volatile char *)(0x12345678));
数据为16位:short val=*((volatile short *)(0x12345678));
数据为32位:int val=*((volatile int *)(0x12345678));