Part Number: AM3359
Hi Community,
In RTOS HSR/PRP application, is it possible to change the HSR mode runtime, If yes how ?
Regards,
Pankaj
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: AM3359
Hi Community,
In RTOS HSR/PRP application, is it possible to change the HSR mode runtime, If yes how ?
Regards,
Pankaj
Pankaj,
Yes, 'Modes can be changed at runtime'. Please see the 'PRU-ICSS HSR-PRP DAN Firmware Data Sheet' in docs/ folder.
Regards,
Garrett
Pankaj,
Please refer to RedPru1DmemInit() in hsrPrp_red_config.c to update the HSR_MODE
#ifdef ICSS_PROTOCOL_HSR
#ifdef HSR_MODE_H
#define HSR_MODE_INIT MODEH
#endif /* HSR_MODE_H */
#ifdef HSR_MODE_N
#define HSR_MODE_INIT MODEN
#endif /* HSR_MODE_N */
#ifdef HSR_MODE_T
#define HSR_MODE_INIT MODET
#endif /* HSR_MODE_T */
#ifdef HSR_MODE_U
#define HSR_MODE_INIT MODEU
#endif /* HSR_MODE_U */
#ifdef HSR_MODE_M
#define HSR_MODE_INIT MODEM
#endif /* HSR_MODE_M */
#endif /* ICSS_PROTOCOL_HSR */
*((uint16_t *)(((((ICSS_EmacHwAttrs *)
icssEmacHandle->hwAttrs)->emacBaseAddrCfg)->dataRam0BaseAddr) + LRE_HSR_MODE)) =
HSR_MODE_INIT;
Regards,
Garrett