This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi, my customer has two projects loaded on one device, one is boot code, another is app code.
in boot code, there are global variables 'int a', array'int b[10]' and struct c defined.
funcA() will use 'a', funcB() will use 'b', and funcC() will use 'c'.
in app code, the customer will call funcA(), funcB() and funcC().
funcA can work exactly well, but funcB and funcC cannot be executed correctly, the value written to or read from 'b' and 'c' are incorrect, why does that happen?
Hi, I've inspected that there is no conflict for these two projects.
1. funcB() is dealing with global array, and funcC() is dealing with struct, for funcA() dealing with variable, there is no problem
2. I cannot step through the function because the function is in another project. For example, I'm calling funcB() and funcC() in app project, but funcB() and funcC() are in boot project.
Thanks.
Howard,
I think I need more details. What goes wrong with function B and C? Do they at least return properly? Is it just the variable values are wrong?
I know you can't exactly step through the C code, but judging by the disassembly window, do you have a sense that the call to these functions is taking you to the correct location?
Whitney