S12 - XGATE shared memory in paged areas

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S12 - XGATE shared memory in paged areas

1,644 Views
windows97
Contributor I
Hello!

I just started to program code for the XGATE on a S12XDP512 comnpiling with Cosmic. Everything works fine. -> Directing IRQ from S12 to XGATE, calling thread with a shared structure and giving Thread back to S12 by _sif().
Well, my problem is, that I don't want to use 'unpaged' RAM-pages for the structure shared on S12 and XGATE. I tryed to link the code to a paged RAM area with the result, that I can't access the variable structure on the S12 (declared with @far) but on XGATE.

Thanks for your reply.


Labels (1)
0 Kudos
1 Reply

313 Views
Steve
NXP Employee
NXP Employee
I'm not completely clear on the problem here but it sounds like you can't access some of the paged RAM area from one of the cores.
Firstly, this can definitely be done so it appears to be a software setup issue.
I'm not clear if it's the XGATE or the CPU that can't access the memory but each requires its own address to do this. In your case it appears that the CPU is using a 24-bit (far) access while the XGATE will be a 16-bit address & this may have something to do with the problem.
I suspect the best place to get an answer may be from the good folks at Cosmic themselves.
0 Kudos