Other Parts Discussed in Thread: SYSBIOS
Hi,everyone
I want to let two cores share the same data in MSMC,and that is what I've done:
Firstly,creat an int variable "flag" in project1 and then got the 1.out. In the .map file, "flag" is placed in address 0x0c0028b8
Secondly,in project2,creat an int pointer "check" and initialize the check to make it point to 0x0c0028b8,in which case I assume the (*check) means exactly the value of "flag",and then got the 2.out.
But when I debug by loading 1.out to core0 and 2.out to core1,it seems 2.out can't find the value stored in 0xc0028b8.
In the debug session,when I choose core0,the memory browzer shows at address 0x0c0028b8 the "flag" is set 1 as I wish.When I change to core1,the memory browzer shows at address 0xc0028b8 is 0.
some more detarils:
I use custom platform file for project1 and 2.
For project1 all data in MSMCTX(o=0x0c000000,l=0x00200000),For project 2 all data in MSMCRX(o=0x0c200000,l=0x00200000),in another word I divide the MSMC into two parts.
Is that why core 1 don't konw what is happening in core0's zone?But I assume the MSMC is known to all cores all the time.
Could anyone please point out where my problem lies?Thank you very much.
Zhao.