Hello NXP Support,
I was trying to use the Get Partition ID in your OsIf module and I was running into issues. I think I have 3 major issues.
1. The index you are trying to use is very unclear to me. In OsIf_apxMultiPartitionPredefinedConfig, I would have expected to see macros that are defined by the real OS, not actual numbers. I believe part of my issue is that you are defining this array according to the Index in EcuC for the Partition, but the OS I am using (ETAS) is generating the Partitions based alphabetically, so the numbers aren't lining up. Is generating a hardcoded list a long term strategy that I need to account for?
2. I seem to have differing Partitions indexes from the different modules. In Adc, the table that is generated is placing my partition 'ASILDCoreA' in index 2, but Spi puts that partition in the zero index. I'm not sure how I can make that work... since they are accessed via the exact same function from OsIf. I would expect all of these tables to have 'ASILDCoreA' be in the same index. Can you confirm this is a defect in your generation code? I have attached a screenshot of the generated code and I have also attached my project.
3. You are attempting to use GetApplication() in OsIf inside your RTD modules to determine which partition they are executing from in EcuM_Driver_Init the way I have my project structured. ETAS doesn't support calling any OS functions until the end of EcuM Init. So... Do you think the Mcal modules should be sequenced after the Os starts, like in an Rte_Init Task, or do you think ETAS should support GetApplication() before the OS starts? I'm unsure who needs to change their design assumptions... but today, no one trying to use MCU1 for GM will get it to work.
Regards,
Spencer
Hi @Luis_Garabo ,
1.2, I tried to configure multicore for the release RTM600 but I didn't see any problem with Adc, Spi. What SW package are they using?
3. From Mcal view, the return value of GetApplicationID() from Os to identify the application identifier of the running task, so, from my point of view, you just need to make sure that you're getting the application identifier correctly to pass to OsIf_apxMultiPartitionPredefinedConfig[application identifier], like this:
Best regards,
Nhi