Hi All,
What needs to be done to get data out on DCAN Tx Pin?
1. DCAN starterware code is used in uboot.
2. Used CRO to monitor Tx pin.
3. Used loopback mode, noticed Tx pin high.
But able to receive the data back.
4. Also tried normal mode, same response, Tx Pin high.
5. Pin mux used,
{OFFSET(uart1_rtsn), (MODE(2) | PULLUP_EN | RXACTIVE)}, /* DCAN0_RXD */
{OFFSET(uart1_ctsn), (MODE(2) | PULLUDEN)}, /* DCAN0_TXD */
{OFFSET(mcasp0_ahclkr), (MODE(7) | PULLUP_EN)}, /* CANI_WAKE */
{OFFSET(mcasp0_ahclkx), (MODE(7) | PULLUP_EN)}, /* CANI_EN */
{-1},
6. Also for transceiver,
#define CANI_WAKE_GPIO_EN 113
#define CANI_EN_GPIO_EN 117
/*CAN*/
gpio_request(CANI_WAKE_GPIO_EN, "cani_wake_en");
gpio_direction_output(CANI_WAKE_GPIO_EN, 1);
gpio_set_value(CANI_WAKE_GPIO_EN, 1);
gpio_request(CANI_EN_GPIO_EN, "cani_en");
gpio_direction_output(CANI_EN_GPIO_EN, 1);
gpio_set_value(CANI_EN_GPIO_EN, 1);
Regards,
Gangadhar