Hello,
Would anyone please help me point out what I am missing here because I could not get COM1 and COM2 to work with a test application but only in XLDR. Below are what I did:
-
- Setup pin-mux for UART1 and UART2 in platform.c
- Enable the clock for UART1 and UART2 in platform.c as followings:
OMAP_PRCM_CORE_CM_REGS* pPrcmCoreCM = OALPAtoUA(OMAP_PRCM_CORE_CM_REGS_PA);
SETREG32(&pPrcmCoreCM->CM_FCLKEN1_CORE, CM_CLKEN_MCSPI3|CM_CLKEN_UART2|CM_CLKEN_UART1);
SETREG32(&pPrcmCoreCM->CM_ICLKEN1_CORE, CM_CLKEN_MCSPI3|CM_CLKEN_UART2|CM_CLKEN_UART1); - Add functions in file serial.c to read and write data from/to UART1 and UART2 in the same way as for UART3 - Reading and writing of both COM ports work with the modified XLDR - Remove the added functions - Create a sub-project with code from Adeneo testSerial.c and also from another posting in this Forum. - Can not send anything to Hyperterminal or read anything from Hyperterminal I appreciate your advice very much, Luan