[En-Nut-Discussion] Difference between source and GUI configurator
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Fri Jan 18 11:16:47 CET 2013
>>>>> "Krzysztof" == Krzysztof Sawicki <krzysztof.sawicki at mobile.put.edu.pl> writes:
Krzysztof> And another report: there is difference in CANBUS1_REMAP_CAN
Krzysztof> meaning between nut/arch/cm3/dev/stm/stm32_can1.c and GUI
Krzysztof> configurator.
Krzysztof> In nut/arch/cm3/dev/stm/stm32_can1.c: #if (CANBUS1_REMAP_CAN
Krzysztof> == 1) #define CANBUS_REMAP AFIO_MAPR_CAN_REMAP_REMAP2 #define
Krzysztof> CAN1RX_GPIO_PORT NUTGPIO_PORTB #define CAN1TX_GPIO_PORT
Krzysztof> NUTGPIO_PORTB #define CAN1RX_GPIO_PIN 8 #define
Krzysztof> CAN1TX_GPIO_PIN 9
Krzysztof> #elif (CANBUS1_REMAP_CAN == 2) #define CANBUS_REMAP
Krzysztof> AFIO_MAPR_CAN_REMAP_REMAP3 #define CAN1RX_GPIO_PORT
Krzysztof> NUTGPIO_PORTD #define CAN1TX_GPIO_PORT NUTGPIO_PORTD #define
Krzysztof> CAN1RX_GPIO_PIN 0 #define CAN1TX_GPIO_PIN 1 #else #undef
Krzysztof> CANBUS_REMAP #define CANBUS_REMAP AFIO_MAPR_CAN_REMAP_REMAP1
Krzysztof> #define CAN1RX_GPIO_PORT NUTGPIO_PORTA #define
Krzysztof> CAN1TX_GPIO_PORT NUTGPIO_PORTA #define CAN1RX_GPIO_PIN 11
Krzysztof> #define CAN1TX_GPIO_PIN 12 #endif
So instead of
Choice 0: CAN_RX PA11 CAN_TX PA12
Choice 1: Not available
Choice 2: CAN_RX PB8 CAN_TX PB9 (Not available on 36-pin package)
Choice 3: CAN_RX PD0 CAN_TX PD1
it should be
Choice 0: CAN_RX PA11 CAN_TX PA12
Choice 1: CAN_RX PB8 CAN_TX PB9 (Not available on 36-pin package)
Choice 2: CAN_RX PD0 CAN_TX PD1
Did you consider a patch?
Bye
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
More information about the En-Nut-Discussion
mailing list