LPCXpresso debug problem

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

LPCXpresso debug problem

2,103 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by aferrari on Mon Oct 05 00:58:19 MST 2015
Hello everyone,

I'm using LPCXpresso v7.9.0 on Windows8 Pro. As target I'm using an LPC4078.

I've done a mixed C-C++ project and I'm able to debug step-by-step for some part of my code.

However in other parts of the code the LPCXpresso gives me differents kind of error when I try to execute the code.

You can see these kinds of errors in the three attached pictures.

What do you think about this issue?

How can I fix it?

Thanks in advance

Alberto Ferrari
0 Kudos
Reply
3 Replies

2,091 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by aferrari on Wed Oct 07 00:22:50 MST 2015
Dear Support,

following this topic:

https://www.lpcware.com/content/forum/program-not-running

post #7, I've found the problem.

Thanks very much for your kindness.

Best Regards

Alberto Ferrari
0 Kudos
Reply

2,091 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by aferrari on Tue Oct 06 02:16:13 MST 2015
The problem arises during the function write_register() that write a data on an external chip using a 16 bits data/address bus.

The chip is mapped on CS1.

As you can see in figure LPCXpresso_error_4.jpg, up to line 271 everything works well. Here you can see the access at the address 0x90008800 that lies in the CS1 address range.

When the line 271 is executed (by means the LPCXpresso "Step Over" function), two things happen (see figure LPCXpresso_error_5.jpg):

1) the external access seems to be executed correctly (CS1 and WE go low)

2) the error arises

Please note that the same write_register() function is executed dozens of times without any error before the error arises.

What do you think about the issue?

Regards,

Alberto Ferrari

0 Kudos
Reply

2,091 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Mon Oct 05 13:17:49 MST 2015
So can you explain what the code in "other parts of the code" actually does?

Regards,
LPCXpresso Support
0 Kudos
Reply