Other Parts Discussed in Thread: HALCOGEN
I need to use all 4 SCI ports for my project. All the ports are working fine except SCI PORT 2. All the ports are configured in the same setting. I performed a quick test to confirm that the SCI port is not working.
#include "HL_sys_common.h" #include "HL_sci.h" void sciDisplayText(sciBASE_t *sci, uint8 *text,uint32 length); void sciDisplayData(sciBASE_t *sci, uint8 *text, uint32 length); int main(void) { sciInit(); uint8_t value1 = 0xA1; uint8_t value2 = 0xA2; uint8_t value3 = 0xA3; uint8_t value4 = 0xA4; sciDisplayData(sciREG1, &value1, 1); sciDisplayData(sciREG2, &value2, 1); sciDisplayData(sciREG3, &value3, 1); sciDisplayData(sciREG4, &value4, 1); return 0; }
In the above code, I can see data in Teraterm terminals for sci ports 1, 3, and 4. Sci port 2 doesn’t print anything in the terminal.
SCI settings in HalCoGen are the same for all ports.
I enabled all the SCI Drivers
'
I selected the necessary Pins from Pin Muxing tab. I didn't change anything from the Input Pin Muxing and Special Pin Muxing tabs.
I am using the TTL to USB converter and the Pin connections from the Board Expansion Connectors are:
SCI PORT | TX | RX |
SCI 1 | B7 | A7 |
SCI 2 | T5 | P4 |
SCI 3 | N2 | W3 |
SCI 4 | B13 | A13 |
Can anybody please tell me what am I missing? Any suggestion is appreciated.
Regards
UA