S12 - XGATE shared memory in paged areas

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S12 - XGATE shared memory in paged areas

1,651件の閲覧回数
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.


ラベル(1)
0 件の賞賛
1 返信

320件の閲覧回数
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 件の賞賛