Tool/software: Linux
Hi All,
HW description,
- SoC used AM3354BZCZ60
- Custom made board
SW description,
- SDK version - 03.03, Kernel version - 4.4.41-gf9f6f0db2d, u-boot version - u-boot-2016.05+gitAUTOINC+4db46a6bbd-g4db46a6bbd
Problem Scenario,
I have configured timer7(gpio1_8) as PWM under user space by referring the scripts attached in the below link,
In my user space script, I have configured the timer7 registers to generate PWM signals by referring the section 20.1.5 of AM335x TRM. Timer7 is configured to use 24MHz main clk as clk source.Once I run the script it complains with the following error messages,
/ti.mer.sh: line 54: 2229 Bus error (core dumped) evmem2 0x4804a04c w 0xFFFFFE9C
/dev/mem opened.
Memory mapped at address 0xb6fa0000.[ 3036.452740] Unhandled fault: external abort on non-linefetch (0x1018) at 0xb6fa0044
[ 3036.466501] pgd = d536c000
[ 3036.469221] [b6fa0044] *pgd=9b623831, *pte=4804a303, *ppte=4804aa33
[ 3036.475712] edma 49000000.edma: dma_ccerr_handler: Error interrupt without error event!
./timer.sh: line 58: 2231 Bus error (core dumped) devmem2 0x4804a044 w 0x00000000
/dev/mem opened.
Memory mapped at address 0xb6f1b000.[ 3036.506486] Unhandled fault: external abort on non-linefetch (0x1018) at 0xb6f1b010
[ 3036.520767] pgd = d5300000
[ 3036.523486] [b6f1b010] *pgd=9530a831, *pte=4804a303, *ppte=4804aa33
[ 3036.530003] edma 49000000.edma: dma_ccerr_handler: Error interrupt without error event!
./timer.sh: line 62: 2233 Bus error (core dumped) devmem2 0x4804a010 w 0x8
/dev/mem opened.
Memory mapped at address 0xb6f8d000.[ 3036.560894] Unhandled fault: external abort on non-linefetch (0x1018) at 0xb6f8d038
[ 3036.574340] pgd = d52b0000
[ 3036.577061] [b6f8d038] *pgd=952d4831, *pte=4804a303, *ppte=4804aa33
[ 3036.583556] edma 49000000.edma: dma_ccerr_handler: Error interrupt without error event!
./timer.sh: line 65: 2235 Bus error (core dumped) devmem2 0x4804a038 w 0x186B
Timer Value 1
/dev/mem opened.
Memory mapped at address 0xb6f97000.[ 3036.615355] Unhandled fault: external abort on non-linefetch (0x1018) at 0xb6f9703c
[ 3036.629573] pgd = d536c000
[ 3036.632292] [b6f9703c] *pgd=95366831, *pte=4804a303, *ppte=4804aa33
[ 3036.638811] edma 49000000.edma: dma_ccerr_handler: Error interrupt without error event!
./timer.sh: line 70: 2237 Bus error (core dumped) devmem2 0x4804a03C
Timer is Running!
Timer Value 2
/dev/mem opened.
Memory mapped at address 0xb6f67000.[ 3037.683757] Unhandled fault: external abort on non-linefetch (0x1018) at 0xb6f6703c
[ 3037.695746] pgd = d52b0000
[ 3037.698479] [b6f6703c] *pgd=9c533831, *pte=4804a303, *ppte=4804aa33
[ 3037.705103] edma 49000000.edma: dma_ccerr_handler: Error interrupt without error event!
./timer.sh: line 70: 2240 Bus error (core dumped) devmem2 0x4804a03C
Timer is Running!
and my timer7 pin remains LOW all the time. Please help me out in generating the PWM signals using timer78737.timer.doc.
Please look into the below Kernel logs for timer,
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000046] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000060] OMAP clocksource: timer1 at 24000000 Hz
[ 0.249064] clocksource: Switched to clocksource timer1
[ 0.267737] omap_timer 4804a000.timer: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/timer7_pins_dee
Below are my device tree changes for timer7,
timer7_pins_default: timer7_pins_default {
pinctrl-single,pins = <
0x168 ( PIN_OUTPUT | MUX_MODE5 ) /* (E18) uart0_ctsn.timer7 */
>;
};
&timer7 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&timer7_pins_default>;
};
Please find the attached user space script for reference.