ST意法半导体
直播中

李刚

7年用户 270经验值
私信 关注
[问答]

使用DFlash时LINFlex出现问题

嗨二万


我写DFlash时遇到LINFlex问题。
在我的程序之前在主循环中我这样做:
1)初始化LINFlex。
2)init DFlash
3)成功擦除DFlash和写入DFlash。
4)启动主循环等待按钮变为低然后LIN发送命令并重新接收数据
但是当我在程序的第一个程序中写入DFlash时,LIN读取数据但是当我对DFlash函数的写入进行注释时没有发送数据,所有程序运行良好。
我不知道LINFlex和DFlash之间有关系吗?
或者这个问题是编译问题?

感谢帮助
最好的祝福
Nazerian Vanima

以上来自于谷歌翻译


以下为原文




Hi Erwan


I Have a problem with LINFlex when i write to DFlash.
in my program before in main loop i do this  :
1)  init the LINFlex.
2) init DFlash
3) erase DFlash and the Write to the DFlash successfully.
4) main loop is started wait for a button goes Low then LIN send a command and recive data  
     but when in my program first of program i write to DFlash the LIN recive data but have        no send data when i comment the write to DFlash function all the program is work well.
i don't know is there have relation between a LINFlex and DFlash ??
or this problem is for compiler issue ??

Thanks for help  
Best Regards  
Nazerian Vanima

回帖(1)

刘鑫

2019-3-12 15:18:34
你好Vanima,
 
你能确认使用的平台吗?
你使用HAL还是RLA?
通常,DFLASH和LINFLEX之间没有关系
你能检查代码中是否没有IVOR1吗?
在DFLASH中写入后,检查''汇编程序'中的ProgramCounter(PC)。
 
我不认为问题是编译器问题。
 
 最好的祝福
 
 二万

以上来自于谷歌翻译


以下为原文








Hello Vanima ,

Could you confirm the platform used ?
do you use HAL or RLA ?
Normally there is no relation between between DFLASH and LINFLEX
Could you check if there is no IVOR1 in your code ?
check the ProgramCounter (PC) in ''assembler'' after writing in DFLASH.

I do not think that the problem is a compiler issue.

Best regards

                            Erwan
举报

更多回帖

发帖
×
20
完善资料,
赚取积分