Corrupted metadata and hardfaults

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Corrupted metadata and hardfaults

跳至解决方案
1,471 次查看
Catosh
Contributor IV

Hi all; 

I noticed a fancy behavior using S32ds and segger jlink. 

I have a fully working project, sometimes I need to make some edits and reload the project.  Out of the blue, I get an hard fault on the MCU where it should generally execute the systick handler. 

Exploring the bin, I can see that the address of the systick ISR is the one I expect, where I expect it. 

Flashing the MCU using the binary and segger jlink everything works fine.

Flashing the MCU inside Design studio using segger in debug mode it gets the hard fault. 

Many possible fault paths here, but what I found out is that erasing Eclipse metadata and re-importing the project WITHOUT any change fixes the issue. 

Any hint on this point? IT took almost a work week to figure out what was wrong (omitting some verbose detail here) and I think it would be beneficial to have some insight on this point for other developers facing similar issues. 

K.R..

0 项奖励
回复
1 解答
1,335 次查看
jiri_kral
NXP Employee
NXP Employee

Sumarry: 

The issue is caused by breakpoints on un-existing code line - typically when you turn optimization and left breakpoints on place which was removed by optimization. Solution is just turn off all breakpoints in this situation. 

Jiri

在原帖中查看解决方案

4 回复数
1,336 次查看
jiri_kral
NXP Employee
NXP Employee

Sumarry: 

The issue is caused by breakpoints on un-existing code line - typically when you turn optimization and left breakpoints on place which was removed by optimization. Solution is just turn off all breakpoints in this situation. 

Jiri

1,335 次查看
Catosh
Contributor IV

Hi Jiri, 

I stored the 7zip of the metadat but I don't think I can share it with everyone (but pelase, be aware that I have really NO IDEA of what the content of a metadata folder is).

BTW, I figured out also that it's enough to erase the current debug configuration and to create a brand new one. 

0 项奖励
回复
1,334 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

you can send it to my address - jiri.kral@nxp.com . I'll try figure out what's going on. 

Jiri 

1,334 次查看
jiri_kral
NXP Employee
NXP Employee

Hi, 

thanks for sharing your issue. In previous S32DS versions sometimes creating new workspace solved some issues, but this should be fixed in current release. 

It is possible get the corrupted meta data and share it? 

Jiri

0 项奖励
回复