Hello ,
I need to configure EMIOS0 CH9 in SAOC mode.
I would like enable COUNTER BUS A using CH23 and use this in CH9.
Attached the emios ConfigTools.
In the main the code is:
/* Init EMIOS MCL for enable global counter bus */
Emios_Mcl_Ip_Init(0, &Emios_Mcl_Ip_0_Config);
/* Init EMIOS OCU */
Emios_Ocu_Ip_Init(&Emios_Ocu_Ip_0_ModuleCfgPB_BOARD_InitPeripherals);
/* Enable EMIOS OCU Channel notification */
Emios_Ocu_Ip_EnableNotification(0,9);
/* Start EMIOS OCU Channel */
Emios_Ocu_Ip_StartChannel(0,9);
The Ocu doesn't work and any notification are done.
PS: using CH1 (that have internal counter) it's work .
Regards.
Solved! Go to Solution.
Hi@francescovico
This is not a bug, your program should run normally when not in debug mode.
But I am a little puzzled, because I checked this option and it works fine, maybe it has something to do with the debugger.
Hi@francescovico
Could you please share the project so that i can help you to check it .
Or tell us the RTD version you're using, we can provide to you a simliar demo for your reference,.
Hello @Senlent ,
attached a simple project that increment two variable at each ISR of two SAOC.
The EMIOS0 CH1 increment counter EMIOS0_OcuCh_1_ISR_cnt
The EMIOS0 CH9 increment counter EMIOS0_OcuCh_9_ISR_cnt
How you can see the counter EMIOS0_OcuCh_9_ISR_cnt it's zero.
Regards, Francesco.
It's very strange.
It's correct that CNT23 of EMIOS0 it's ever 0 ?
It's possible to have the .elf file of my project compiled using S32K322 ?
I would like flash this elf file to see if it work fine.
Regards, Francesco.
Hi@francescovico
It seems that there is a connection, otherwise I can't think of any other factors. It seems that eMios0-ch23 is not working.
Is it possible to download and run only "TEST_S32K322_M7_0.elf" only, without burning "TEST_S32K322_M7_1.elf",please have a try again.
Also, could you please change below setting and have a try again.
Hello,
now It's working fine!
To work fine, it's necessary remove flag below:
This is a Bug in RTD ?
Thank you a lot !
Francesco.
Hi@francescovico
This is not a bug, your program should run normally when not in debug mode.
But I am a little puzzled, because I checked this option and it works fine, maybe it has something to do with the debugger.