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.

TDA4VM: GPIO value not reflected on the Test point.

Part Number: TDA4VM

Hi Ti

I setup the pinconfig and gpio registers as the FAQ for linux SDK7.3.

I see the register values look correct  as per the Manual. But Probing on board does not given the expected voltage.

Also on linux read value is 0. I am sharing the script i use for testing.

Can you please review the same and let me know what additional setting is needed.

Best regards

Amit

Register values i read are:

Memory mapped at address 0xffff8b760000.
Read at address  0x00600088 (0xffff8b760088): 0xFFDFFFBB
/dev/mem opened.
Memory mapped at address 0xffff8e4d0000.
Read at address  0x0060008C (0xffff8e4d008c): 0x00000044

#!/bin/bash


# Enable signal for Fan power supply
echo ""
echo "set PIN W27 - PADCONFIG103 - Muxmode to GPIO102"
#devmem2 0x11C19C l 0x60007
devmem2 0x11C19C l 0x8010037


echo "set GPIO0_102 DO_FAN_PWR_EN to High"
echo 402 > /sys/class/gpio/export
usleep 1000
echo out > /sys/class/gpio/gpio402/direction
usleep 1000
echo 1 > /sys/class/gpio/gpio402/value

# Need GPIO 102 Direction 67 = 0x00
# Read 0x600088h
#devmem2 0x600088
# Need GPIO 102 Data = 0x40
# Read 0x60008Ch
#devmem2 0x60008C

# PWM signal for enabling speed
echo "set PIN V23 - PADCONFIG99 - Muxmode to (7) GPIO or (6) PWM"
#devmem2 0x11C18C l 0x00060007
devmem2 0x11C18C l 0x8010037

echo "set GPIO0_98 - DO_EHRPWM3_A to High"
echo 398 > /sys/class/gpio/export
usleep 1000
echo out > /sys/class/gpio/gpio398/direction
usleep 1000
echo 1 > /sys/class/gpio/gpio398/value

echo -n "GPIO 102 ="
cat /sys/class/gpio/gpio402/value
echo -n "GPIO 98 ="
cat /sys/class/gpio/gpio398/value
# Need GPIO 98 Direction = 0x00
# Need GPIO 98 Data = 0x04
devmem2 0x600088
devmem2 0x60008C