This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP432P401R: 串口映射

Part Number: MSP432P401R

大家好!

我现在的硬件中:

1. MSP432通过一个USB转串口可以与PC通信(串口1);

2. MSP432通过串口与CC1352P通信(串口2),CC1352P使用的是支持Bootloader的串口;

我现在想通过PC对CC1352P进行串口升级;

目前我的想法是MSP432两个串口能做映射,即串口1接收到之后转发到串口2,串口2接收到之后转发到串口1;

现在的实现方式是:

while (1)
{
if (P2->IN & 2)
{
P9->OUT |= 7;
}
else
{
P9->OUT &= ~7;
}

if (P9->IN & 6)
{
P2->OUT |= 3;
}
else
{
P2->OUT &= ~3;
}
}

但是效率很低,几乎不可用;

有没有其他的方法实现串口映射或者其他的方法串口升级?

谢谢!