[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] Odd Microblaze behavior



For those working with the microblaze, I have a odd problem. Its one of the
reasons I'm having a hard time getting my flash to work. Here is it:

int main (void)
{
	volatile int a;

	a = 33;
	a = 33;
}

Background.
Compiled with optimization off.
Executing out of bram, not external memory (which it will work fine in).
Cache is on (the code works if cache is off)

Problem.
Stopping at the first 'a=33', the debugger indicates a = 765. I checked its
address, and yeap, 765. Stepping to the next 'a=33', a finally = 33. This
behavior happens all through the code. 

I'm going crazy over this.

Rich



___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/