Main Site Documentation

Cerbuino IO - which is which?


#1

I am still using the STM32F405 with the Cerbuino for small one off projects but I have a question on the IO ports shown in the schematic for the Cerbuino Bee. I need clarification on which pins the functions appear as there is 2 for some functions.

PA6 shows SPI1_MISO and so does PB4. Which is the correct one? I am guessing PB4 as that is routed to X1

PB6 shows I2C-SCL, PB7 shows I2C-SDA and so does PB10 and PB11. Which is the correct one? I assume PB6 as this is routed to X2.

Which pins does the CAN bus appear one?

Which pins for SPI2?


#2

STM chips are awesome in mapping functions to different pins. To know which pins are the ones we used in the old firmware you need to flip a coin :slight_smile: But here is a better idea. I am guessing the team has used the same pins on TinyCLR so take a look here https://github.com/ghi-electronics/TinyCLR-Ports/blob/dev/Devices/Cerb/Device.h


#3

Good point Gus. I think you might be right as I saw something about this before. Didn’t think to check this.

The SMT chips are ace and the Cerbuino design is great for quick projects.


#4

Thay are not the same :yum:


#5

Anyone have the information at hand?

:sob:


#6

#define STM32F4_ADC 1 // A6,A2,A3,C0,C1,A4,C2,C3,A5,B0,B1
#define STM32F4_AD_CHANNELS { 6, 2, 3,10,11, 4,12,13, 5, 8, 9}

// C6,A7,C7,A8,B0,B1,B5,B4,B3,B11,B10,A10,A9,A15, B8, B9
#define STM32F4_PWM_TIMER { 8,14, 8, 1, 3, 3, 3, 3, 2, 2, 2, 1, 1, 2, 4, 4}
#define STM32F4_PWM_CHNL { 0, 0, 1, 0, 2, 3, 1, 0, 1, 3, 2, 2, 1, 0, 2, 3}
#define STM32F4_PWM_PINS {38, 7,39, 8,16,17,21,20,19, 27, 26, 10, 9, 15, 24, 25}

#define STM32F4_SPI_SCLK_PINS {19} // PB3
#define STM32F4_SPI_MISO_PINS {20} // PB4
#define STM32F4_SPI_MOSI_PINS {21} // PB5

#define STM32F4_I2C_PORT 1
#define STM32F4_I2C_SCL_PIN 22 // PB6
#define STM32F4_I2C_SDA_PIN 23 // PB7

#define STM32F4_UART_RXD_PINS {39, 3, 27} // C7, A3, B11
#define STM32F4_UART_TXD_PINS {38, 2, 26} // C6, A2, B10
#define STM32F4_UART_CTS_PINS {109, 0, 29} // G13, A0, B13
#define STM32F4_UART_RTS_PINS {108, 1, 30} // G12, A1, B14