Fehler #601
Sensemux does not operate CAN properly
Beginn:
21.01.2025
Abgabedatum:
% erledigt:
0%
Geschätzter Aufwand:
CS Zielversion:
Beschreibung
[[http://www.bittiming.can-wiki.info/]]
Bit Rate | accuracy | Prescaler | Number of quante | Seg1 (Prop_Seg+Phase_Seg1) | Seg 2 | Sample Point at | Register CAN_BTR |
500 | 0.0000 | 8 | 16 | 13 | 2 | 87.5 | 0x001c0007 |
500 | 0.0000 | 16 | 8 | 6 | 1 | 87.5 | 0x0005000f |
/**CAN GPIO Configuration
PA11 ------> CAN_RX
PA12 ------> CAN_TX
*/
GPIO_InitStruct.Pin = GPIO_PIN_11;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
GPIO_InitStruct.Pin = GPIO_PIN_12;
GPIO_InitStruct.Mode = GPIO_MODE_AF_PP;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
- 5V Transceiver an 3V3 betrieben? Some chips from TI also need 5V; e.g. SN 65HVD251D
Historie
Von Maximilian Seesslen vor 3 Monaten aktualisiert
- Projekt wurde von Biwak zu sensemux geändert
- Zielversion
CS2025.01wurde gelöscht
Von Maximilian Seesslen vor 3 Monaten aktualisiert
Transceiver OK, traffic test ok (ignore error on start).
When scanning bus, some messages get lost.
Implement (optional) error counter.
Activate all notifications. Implement everything like "HAL_CAN_TxMailbox1AbortCallback" (They already exist as weak functions).
Or just "HAL_CAN_ErrorCallback()" -> exception().
Von Maximilian Seesslen vor 3 Monaten aktualisiert
- Status wurde von Neu zu Erledigt geändert
HSI was not exact enough. Changing HSI calibration helped.