S7G2

您所在的位置:网站首页 s7g2阵容 S7G2

S7G2

2024-07-01 17:30| 来源: 网络整理| 查看: 265

Hello everybody,

I'm new on this forum, so please forgive if I'm doing it the wrong way...

I'm working on a S7G2 µC (R5FS7G27G3A01CFP), coding with e2-studio, using SSP v1.3.2.

 

I'm using the CAN bus, and it's working well.

I am coding without the target since few days, so I cannot test the code I generate.

 

1) I have got a question about the ID of the CAN frames. 

When a mailbox is configured thanks to the SSP, we can choose the mailbox ID, the direction (send or receive) and the frame type.

This configuration can be found in the code generated in the structure : can_mailbox_t

A CAN message has got its own structure : can_frame_t

Those two structures have got a member about the CAN ID called : can_id_t

 

Question : I want to send CAN frames with different IDs with only one mailbox. Which one of the can_mailbox_t::can_id_t and can_frame_t::can_id_t is the most important ? 

 

2) I want to use remote frames. Do I have to use 2 mailboxes with the same ID ? (one configured for the reception of the remote frame, and the other configured to send the data frame in response)



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3