![]() ![]() Hope you have reviewed the relevant faqs etc It may help if a #include clause is inserted to insert the header file that contains the definitionĪnd the ino sketch neds to be copied into the sketch folder for the build. The thing about selecting the appropriate board is that it sets some #define symbols which are used to include the appropriate #include files.īut looking at the codes, it'd seem CAN1 isn't defined. stm32f103 blue pill, stm32f103 generic etc. perhaps you could post an issue on the github repository if you need help there.Īmong the things in your ide you need to select the appropriate board e.g. This report would have more information with Invalid library found in C:\Users\Y2D\Documents\Arduino\libraries\Arduino-STM32-CAN-master: no headers files (.h) found in C:\Users\Y2D\Documents\Arduino\libraries\Arduino-STM32-CAN-master ![]() Stm32f103:337:10: error: 'CAN1' was not declared in this scope Stm32f103:301:3: error: 'CAN1' was not declared in this scopeĬ:\Users\Y2D\Documents\Arduino\libraries\Arduino-STM32-CAN-master\stm32f103\stm32f103.ino: In function 'uint8_t CANMsgAvail()': Stm32f103:243:17: error: 'CAN1' was not declared in this scopeĬ:\Users\Y2D\Documents\Arduino\libraries\Arduino-STM32-CAN-master\stm32f103\stm32f103.ino: In function 'void CANSend(CAN_msg_t*)': GPIOD->ODR |= 0x1UL MCR |= 0x1UL // Require CAN1 to Initialization modeĬ:\Users\Y2D\Documents\Arduino\libraries\Arduino-STM32-CAN-master\stm32f103\stm32f103.ino: In function 'void CANReceive(CAN_msg_t*)': Stm32f103:168:12: error: 'struct gpio_dev' has no member named 'ODR' Stm32f103:160:12: error: 'struct gpio_dev' has no member named 'CRH' Stm32f103:147:12: error: 'struct gpio_dev' has no member named 'ODR' Stm32f103:139:12: error: 'struct gpio_dev' has no member named 'CRH' Stm32f103:125:12: error: 'struct gpio_dev' has no member named 'ODR' Stm32f103:117:12: error: 'struct gpio_dev' has no member named 'CRH' Stm32f103:112:12: error: 'struct gpio_dev' has no member named 'CRH' Stm32f103:107:3: error: 'AFIO' was not declared in this scopeĪFIO->MAPR &= 0xFFFF9FFF // reset CAN remap 128k Flash), STM32duino bootloader, 72Mhz (Normal), Smallest (default)"Ĭ:\Users\Y2D\Documents\Arduino\libraries\Arduino-STM32-CAN-master\stm32f103\stm32f103.ino: In function 'void CANSetFilter(uint8_t, uint8_t, uint8_t, uint8_t, uint32_t, uint32_t)': Code: Select all Arduino: 1.8.13 (Windows 7), Board: "Generic STM32F103C series, STM32F103CB (20k RAM.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |