Debug error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Debug error

1,121 Views
asua
Contributor I

At the very beginning of debug,

it prompt ' No source available for 0x1000000',   and the address varies with the projects.

 

I remember it  wasn't like this at first ,but  I can't remember what I did  lead to this.

 

0 Kudos
Reply
8 Replies

1,101 Views
asua
Contributor I

Hi Lukas,

  All the projects  show the same behavior.

For each projects,  the failing address is always the same,

but for different projects, it prompt different addresses.

asua_0-1673679971346.png

Thanks,

Best Regards,

asua

 

 

0 Kudos
Reply

1,110 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @asua

which device do you have?

"and the address varies with the projects" - do you mean you have more projects which show the same behavior or do you have only one project and the failing address is always different? In second case, this kind of troubles is usually caused by wrong clock configuration or by wrong configuration of flash wait states. In this case, the flash reads can be incorrect which results in various issues and weird behavior of such code.

Regards,

Lukas

0 Kudos
Reply

1,082 Views
asua
Contributor I

Look at the screenshot posted above pls.

0 Kudos
Reply

1,086 Views
asua
Contributor I

Hi Lukas,

  All the projects  show the same behavior.

For the  same project,  the failing address is always the same;

 while for different projects, it prompt different addresses.

 

Best wishes,

 

asua

0 Kudos
Reply

1,061 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @asua 

well, this looks like something went wrong in startup files. To find more details, go to Debug Configurations and uncheck "Run on reset" option in Startup tab:

lukaszadrapa_0-1674046981336.png

In this case, the debugger will stop the code directly at entry point and then you can step the startup files to see what caused the problem exactly. I'm not really sure what's going on, I would need more details.

Regards,

Lukas

0 Kudos
Reply

1,001 Views
asua
Contributor I

Hi Lukas,

It seems nothing changed after I unchecked the 'Run on reset'.

I am so puzzeld that I need a face-to-face guide, do you have this support in Beijing China?

Best Regards,

asua  

0 Kudos
Reply

995 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi @asua 

our MPC5 team is based in Europe.

Is it possible to share the project? If you can't share it as is, maybe you can modify it to some test version which shows the behavior, so I can test it on my side.

Regards,

Lukas

0 Kudos
Reply

989 Views
asua
Contributor I

It is only  an example project created by the guider without any code added by myself

so I tend to think it is the issure about the settings rather than the code.

0 Kudos
Reply