Content originally posted in LPCWare by researchinnovation on Fri Jun 29 21:33:06 MST 2012
Quote: madhuvariar
When I [B][COLOR=red]changed[/COLOR][/B] the [COLOR=red][B]global structure[/B][/COLOR] (used for CAN Communication in my code)[COLOR=red]name[/COLOR], the structure variables [COLOR=red]are not getting loaded properly[/COLOR]. And I am getting junk values.
When I reverted the structure name back to the previous name structure variables are getting laoded properly.
This repeats even after I restarting the IDE / restarting the PC.
I am using [B]LPC11C24[/B] with LPCxpresso IDE 4.1.5, on windows 7 PC,
The clock frequency is 24MHz from a 12MHz xtal.
The following peripherals are also used in the code WDT for 2sec, I2C,
CAN, systicktimer, timer16A & ADC. NO RTOS used.
The code uses [B]14K flash[/B] and [B]1K8 RAM[/B].
Reserved first 256 byte of RAM for CAN drivers ( on linker descriptor).
HOw can I solve this issue?
Hi..!!
Just go through code again , If you are using the same Buffer and pointer anywhere else, It might give you some junk value.
Go step by step and try to find out from which buffer or pointer you are getting these values.
Have a look on your function and passing the arguments and change the variables accordingly Or, define your own variables in different .h file and include it in your main program.
Thanks & Regards......:)