你好,我试图使用UART2来记录一些字符串。我使用ble_example_peripheral示例。我使用uart进行调试。在user_peri_setup .h中,Tx和Rx引脚设置为P2_6和P2_7。我不想使用uart usb或更坚实的头引脚跳线J10,所以我设置P0_4和P0_5 Tx和Rx引脚。它工作,但我想知道它是否可以导致任何错误,而调试。请给我一些建议。谢谢! !
嗨Thanhtu131,
请遵循ble_app_barebone项目中的以下步骤:
# elif HW_CONFIG_PRO_DK
#定义UART2_TX_GPIO_PORT GPIO_PORT_0
#定义UART2_TX_GPIO_PIN GPIO_PIN_4
#定义UART2_RX_GPIO_PORT GPIO_PORT_0
#定义UART2_RX_GPIO_PIN GPIO_PIN_5
如果您有我们的另一个dk或如果您正在定制板上工作,请使用适当的gpio修改上述定义
这在一些文件中也有描述,但在DA14531中:
http://lpccs-docs.dialog-semiconductor.com/Tutorial_SDK6/serial_port.html
http://lpccs-docs.dialog-semiconductor.com/DA14531_FAQs/Software.html#how-to-enable-the-debug-uart-mechanism-and-how-to-test-it-in-da145xx-pro-development-kit
谢谢,PM_Dialog
非常感谢! !
嗨Thanhtu131,
请遵循ble_app_barebone项目中的以下步骤:
# elif HW_CONFIG_PRO_DK
#定义UART2_TX_GPIO_PORT GPIO_PORT_0
#定义UART2_TX_GPIO_PIN GPIO_PIN_4
#定义UART2_RX_GPIO_PORT GPIO_PORT_0
#定义UART2_RX_GPIO_PIN GPIO_PIN_5
如果您有我们的另一个dk或如果您正在定制板上工作,请使用适当的gpio修改上述定义
这在一些文件中也有描述,但在DA14531中:
http://lpccs-docs.dialog-semiconductor.com/Tutorial_SDK6/serial_port.html
http://lpccs-docs.dialog-semiconductor.com/DA14531_FAQs/Software.html#how-to-enable-the-debug-uart-mechanism-and-how-to-test-it-in-da145xx-pro-development-kit
谢谢,PM_Dialog
非常感谢! !