2 posts / 0 new
Last post
joe.brackman
Offline
Last seen:4 years 8 months ago
Joined:2015-05-29 18:47
Default UART and SPI pins

I'm wondering about default UART and SPI pins. Based on bits of info I can find, I'm assuming that the UART default config is as follows:

#define UART1_TX_PORT GPIO_PORT_0
#define UART1_TX_PIN GPIO_PIN_4
#define UART1_RX_PORT GPIO_PORT_0
#define UART1_RX_PIN GPIO_PIN_5
#define UART1_RTS_PORT GPIO_PORT_0
#define UART1_RTS_PIN GPIO_PIN_3
#define UART1_CTS_PORT GPIO_PORT_0
#define UART1_CTS_PIN GPIO_PIN_2

That is from periph_setup.h in the DSPS example. Those pins seem to work for Smart Snippets just fine.

Are there any default SPI pins? IOW, ones that work after the Dialog boots, but there is no code on the device (OTP, Flash, etc.)?

Thanks.

Device:
MT_dialog
Offline
Last seen:2 months 5 days ago
Staff
Joined:2015-06-08 11:34
Hi joe.brackman,

Hi joe.brackman,

After the da boots all the pins are in reset state and they are re-configured in the periph_setup.c file in the set_pad_functions() function. When the da boots uses a cycle of some pins for booting over UART, SPI, I2C. You can find the booting procedure and the default pins in the document AN-B-001 Booting from serial interfaces.

Thanks MT_dialog