Search found 11 matches

by Shevchenko
Mon Jun 15, 2020 12:19 pm
Forum: Development and Feedback
Topic: [DEV] STM32G4xx support
Replies: 100
Views: 117891

Re: [DEV] STM32G4xx support

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 ...
by Shevchenko
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 ...
by Shevchenko
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&#46;
*/
union {
uint32_t EID&#58;29; /**< @brief Extended Identifier&#46; */
struct {
uint32_t _R1&#58;18;
uint32_t SID&#58;11; /**< @brief Standard identifier ...
by Shevchenko
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&#46;
*/
union {
struct {
union {
uint32_t EID&#58;29; /**< @brief Extended Identifier&#46; */
struct {
uint32_t _R1&#58;18;
uint32_t SID&#58;11; /**< @brief Standard identifier&#46; */
uint32_t RTR&#58;1; /**< @brief Remote transmit request ...
by Shevchenko
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 ...
by Shevchenko
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?
by Shevchenko
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?
by Shevchenko
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 ...
by Shevchenko
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.
by Shevchenko
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?