Search found 4 matches

by mobi123
Tue May 09, 2017 3:01 am
Forum: Libary request
Topic: CAN Bus Library for STM32F103
Replies: 80
Views: 16193

Re: CAN Bus Library for STM32F103

Now there is a gateway to receive data to send the mailbox to the TXRQ bit after the MCU is dead.
If there is no gateway to the case can always send data, how to solve this?
by mobi123
Tue May 09, 2017 2:56 am
Forum: Libary request
Topic: CAN Bus Library for STM32F103
Replies: 80
Views: 16193

Re: CAN Bus Library for STM32F103

CAN_STATUS can_gpio_map(CAN_Port* CANx, CAN_GPIO_MAP map_mode) { rcc_clk_enable(RCC_AFIO); status = CAN_INIT_FAILED; if( CANx == CAN1_BASE) { switch(map_mode) { case CAN_GPIO_PB8_PB9: rcc_clk_enable(RCC_GPIOB); afio_remap(AFIO_MAPR_CAN_REMAP_PB8_PB9); gpio_set_mode(GPIOB, 8, GPIO_INPUT_FLOATING); g...
by mobi123
Wed May 03, 2017 7:15 am
Forum: Libary request
Topic: CAN Bus Library for STM32F103
Replies: 80
Views: 16193

Re: CAN Bus Library for STM32F103

@And_Ru: the delay between frames seem strange to me. I never observed it. My applications run at 125 kb/s and I can send quite a few frames at only a few milliseconds interval. typedef enum CAN_GPIO_MAP { CAN_GPIO_PB8_PB9, /* RX to PB8, TX to PB9 */ CAN_GPIO_PD0_PD1 /* RX to PD0, TX to PD1 */ } CA...
by mobi123
Fri Feb 17, 2017 9:10 am
Forum: STM Core
Topic: USB HID and composite
Replies: 46
Views: 3659

Re: USB HID and composite

D: \ Arduino \ hardware \ Arduino_STM32-master \ STM32F1 \ cores \ maple \ USBDevice.cpp: 2: 22: fatal error: usbd_hid.h: No such file or directory   #include "usbd_hid.h"                        ^ Compilation terminated Exit status 1 Compiler error for development board Generic STM32F103C series.