As for stopping the FDCAN clock. In datasheet written:
Power down (Sleep mode)
The FDCAN can be set into power down mode controlled by clock stop request input via CC control register CCCR[CSR]. As long as the clock stop request is active, bit CCCR[CSR] is read as 1.
When all pending ...
Search found 11 matches
- Mon Jun 15, 2020 12:19 pm
- Forum: Development and Feedback
- Topic: [DEV] STM32G4xx support
- Replies: 100
- Views: 117891
- Tue May 26, 2020 3:10 pm
- Forum: Development and Feedback
- Topic: [DEV] STM32G4xx support
- Replies: 100
- Views: 117891
Re: [DEV] STM32G4xx support
To run FDCAN filters, I suggest:
1. Add the RXGFC variable to the CANConfig structure. Because write access by the bits is possible only when the bit 1 [CCE] and bit 0 [INIT] of CCCR register are set to 1. And eventually add definition:
#define FDCAN_SET_RXGFC_LSS(value) (value << FDCAN_RXGFC_LSS ...
1. Add the RXGFC variable to the CANConfig structure. Because write access by the bits is possible only when the bit 1 [CCE] and bit 0 [INIT] of CCCR register are set to 1. And eventually add definition:
#define FDCAN_SET_RXGFC_LSS(value) (value << FDCAN_RXGFC_LSS ...
- Mon May 25, 2020 11:58 am
- Forum: Development and Feedback
- Topic: [DEV] STM32G4xx support
- Replies: 100
- Views: 117891
Re: [DEV] STM32G4xx support
Maybe to change the CAN sending and receiving function and structure as:
1. CANTxFrame:
typedef struct {
/**
* @brief Frame header.
*/
union {
uint32_t EID:29; /**< @brief Extended Identifier. */
struct {
uint32_t _R1:18;
uint32_t SID:11; /**< @brief Standard identifier ...
1. CANTxFrame:
typedef struct {
/**
* @brief Frame header.
*/
union {
uint32_t EID:29; /**< @brief Extended Identifier. */
struct {
uint32_t _R1:18;
uint32_t SID:11; /**< @brief Standard identifier ...
- Mon Mar 23, 2020 9:48 am
- Forum: Development and Feedback
- Topic: [DEV] STM32G4xx support
- Replies: 100
- Views: 117891
Re: [DEV] STM32G4xx support
2)
typedef struct {
/**
* @brief Frame header.
*/
union {
struct {
union {
uint32_t EID:29; /**< @brief Extended Identifier. */
struct {
uint32_t _R1:18;
uint32_t SID:11; /**< @brief Standard identifier. */
uint32_t RTR:1; /**< @brief Remote transmit request ...
typedef struct {
/**
* @brief Frame header.
*/
union {
struct {
union {
uint32_t EID:29; /**< @brief Extended Identifier. */
struct {
uint32_t _R1:18;
uint32_t SID:11; /**< @brief Standard identifier. */
uint32_t RTR:1; /**< @brief Remote transmit request ...
- Tue Mar 17, 2020 2:35 pm
- Forum: Development and Feedback
- Topic: [DEV] STM32G4xx support
- Replies: 100
- Views: 117891
Re: [DEV] STM32G4xx support
There are errors on the github repository in the FDCAN driver.
1. In file
ChibiOS/os/hal/ports/STM32/LLD/FDCANv1/hal_can_lld.h
in CANConfig need to replace the DBTP with NBTP . And a similar replace in the file hal_can_lld.c in function can_lld_start() .
2. In file hal_can_lld.h struct in the ...
1. In file
ChibiOS/os/hal/ports/STM32/LLD/FDCANv1/hal_can_lld.h
in CANConfig need to replace the DBTP with NBTP . And a similar replace in the file hal_can_lld.c in function can_lld_start() .
2. In file hal_can_lld.h struct in the ...
- Mon Dec 02, 2019 9:38 am
- Forum: STM32 Support
- Topic: STM32 CAN FD
- Replies: 3
- Views: 3783
Re: STM32 CAN FD
When do you plan to add CAN FD?
- Thu Nov 14, 2019 5:18 pm
- Forum: STM32 Support
- Topic: STM32 CAN FD
- Replies: 3
- Views: 3783
STM32 CAN FD
Will be CAN FD support added for the stm32 family?
- Tue Nov 05, 2019 2:25 pm
- Forum: Bug Reports
- Topic: ChibiOS 19.1.0, os-less bug osalSysLock
- Replies: 1
- Views: 3020
ChibiOS 19.1.0, os-less bug osalSysLock
Hi, osalSysLock does not work properly in ChibiOS 19.1.0. I tested on the stm32f429 processor.
static inline void osalSysLock (void) {
#if CORTEX_MODEL == 0
__disable_irq ();
#else
__set_BASEPRI (OSAL_IRQ_MAXIMUM_PRIORITY);
#endif
}
OSAL_IRQ_MAXIMUM_PRIORITY for CortexM! = 0 is defined as 1 ...
static inline void osalSysLock (void) {
#if CORTEX_MODEL == 0
__disable_irq ();
#else
__set_BASEPRI (OSAL_IRQ_MAXIMUM_PRIORITY);
#endif
}
OSAL_IRQ_MAXIMUM_PRIORITY for CortexM! = 0 is defined as 1 ...
- Fri Nov 30, 2018 9:15 am
- Forum: STM32 Support
- Topic: STM32L433
- Replies: 2
- Views: 2675
Re: STM32L433
No. I sat for a long time over makefiles and wondered why the program does not want to compile. If something does not work then I will write.
- Thu Nov 29, 2018 1:29 pm
- Forum: STM32 Support
- Topic: STM32L433
- Replies: 2
- Views: 2675
STM32L433
Will STM32L433 be added to ChibiOS in the future?