Part Number: TDA4VM
Tool/software:
Hi,
We by now use readFlag/writeFlag to protect the data safe when transmit data from a72(qnx) to mcu(r5f) via shared memory in user space.
But We think the shared variables of readFlag and writeFlag is not safe in the access of two cores
So we prefer spinlock, to understand the special user case, please see the details below, spinlock is supposed to protect critical process of readFlag and writeFlag.
Question:
① InterruptDisable is the standard interface of qnx, Does it work well that can disable any interrupt and no any scheduling.
② Is there any cache inconsistency issue between a72 and r5f for readFlag/writeFlag
(The shared memory is DDR section which configed by TI for cores logs, address: 0xB2028000u ). If it does, how to avoid?
③ There are 256 spin locks configured in TI sdk, Have any spin locks already used by TI SDK itself? Is it ok if we try to use them from register[0]? (One spin lock is enough for us at present)
Thanks a lot.
[details]
SDK version: 8.2
reference: ./PSDKRA/pdk_jacinto_08_02_00_21/packages/ti/csl/src/ip/spinlock/V1/csl_spinlock.h


