Global variable not stable after platform changed.
Posted
by user350555
on Stack Overflow
See other posts from Stack Overflow
or by user350555
Published on 2010-05-26T05:41:21Z
Indexed on
2010/05/26
6:11 UTC
Read the original article
Hit count: 224
Our embedded system is built on a hw/sw platform made by enea. After the platform updated recently, we found some operations on the global variable keep crashing the system.
For example, we have a global map structure holding some data. We can insert/iterate the map once or twice, then the address of the elements in the map suddenly changed to some forbidden addresses like 0x0 or 0x1d, the system just crash.
The only different before/after the platform update is : 1) sw part: It's a c++ software and We changed the compiler from diab cc to gcc. 2) hw part: we have a new board, but the cpu is still powerpc405s.
I tried every possible way but still can't figure out the reason. Any thoughts?
© Stack Overflow or respective owner