Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will not compile for STM32F407VET6 #43

Open
Kody68 opened this issue Sep 1, 2024 · 1 comment
Open

Will not compile for STM32F407VET6 #43

Kody68 opened this issue Sep 1, 2024 · 1 comment

Comments

@Kody68
Copy link

Kody68 commented Sep 1, 2024

Will not compile due to errors below. They all show to be in the STM32_CAN library.

error: 'CAN_HandleTypeDef' has not been declared
194 | bool lookupBaudrate(CAN_HandleTypeDef *CanHandle, int Baudrate, const T(&table)[N]);
error: 'CAN_FILTERMODE_IDMASK' was not declared in this scope
similar error on lines 195 and 196

error: 'CAN_FILTERMODE_IDMASK' was not declared in this scope
152 | bool setFilter(uint8_t bank_num, uint32_t filter_id, uint32_t mask, IDE = AUTO, uint32_t filter_mode = CAN_FILTERMODE_IDMASK, uint32_t filter_scale = CAN_FILTERSCALE_32BIT, uint32_t fifo = CAN_FILTER_FIFO0);
error: 'CAN_FILTERSCALE_32BIT' was not declared in this scope
152 | bool setFilter(uint8_t bank_num, uint32_t filter_id, uint32_t mask, IDE = AUTO, uint32_t filter_mode = CAN_FILTERMODE_IDMASK, uint32_t filter_scale = CAN_FILTERSCALE_32BIT, uint32_t fifo = CAN_FILTER_FIFO0);
error: 'CAN_FILTER_FIFO0' was not declared in this scope; did you mean 'CAN_FilterFIFO0'?
152 | bool setFilter(uint8_t bank_num, uint32_t filter_id, uint32_t mask, IDE = AUTO, uint32_t filter_mode = CAN_FILTERMODE_IDMASK, uint32_t filter_scale = CAN_FILTERSCALE_32BIT, uint32_t fifo = CAN_FILTER_FIFO0);

error: 'CAN_HandleTypeDef' does not name a type; did you mean 'DAC_HandleTypeDef'?
245 | CAN_HandleTypeDef *n_pCanHandle;

Any idea what could be causing this issue?

@pazi88
Copy link
Owner

pazi88 commented Sep 2, 2024

Have you enabled the HAL CAN module on build parameters, or do you have the hal_conf_extra.h file there with the code to enable it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants