TMS320F28379D: CAN MailBox Id Modification when programm running

Part Number: TMS320F28379D
Other Parts Discussed in Thread: SYSCONFIG

Hello,

I want to change the Id of a MailBox while the programm is running.

I looked at what SysConfig generates for the initialization in board_init():

  • the initialization of the whole MailBox thanks to CAN_setupMessageObject()
  • the start of the module thanks to CAN_startModule()

So, my idea was 

  • to stop the module
  • the initialze the mailbox, changing the Id

But the function CAN_stopModule() does not exist.

What do you suggest ? To write a such function by my own ? Is there any other risk to change the Id with this method ?

Thank you for your advice

Vincent