UART Build on P1025 Tower System

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

UART Build on P1025 Tower System

跳至解决方案
8,386 次查看
drs
Contributor II

I am putting together a build to use the UART on the TWR-P1025 Tower System Module. I am using freescale example code, but I am getting an error:

The build fails because the following is undefined:
__CCSRBAR

This is defined as extern in twrp1025.h.

Can anyone please help me to get this defined?

标签 (1)
1 解答
7,934 次查看
marius_grigoras
NXP Employee
NXP Employee

Hi David,

You'll need to update next files:

PA\PA_Support\Serial\Common\UART.h  -- here please add next line in UARTBaudRate enum struct:

kBaud768000 = 768000

And also replace in next file next value macro kBaud115200 with the one preconfigured above kBaud768000

More exactly this will be after update:

#define UART_CONSOLE_BAUD_RATEkBaud768000

PA\PA_Support\ewl\EWL_C\include\pa\uart_console_config.h

Now, will need to re-build your UART project and ewl libs.

For UART project just use the P1025TWR serial project presented above and just rebuild it.

For ewl libs please take a look in next chapter 22.3.3 How to Rebuild the EWL Libraries from PA\Help\PDF\Power Arch Build Tools Reference.pdf .

Please let me know any results,

Marius

在原帖中查看解决方案

0 项奖励
回复
21 回复数
305 次查看
drs
Contributor II

I have to read in a serial data stream at a baud rate of 524288 (64k bytes per second). The engineer who is designing the hardware has suggested that I configure the baud rate to be 768000.

regards,

Dave

0 项奖励
回复