logo

Could not compile stylesheet for simplistic. Using last compiled stylesheet.

IGEP v2 Rev.F and the PWM on GPT8

posted in IGEPv2
Tuesday, June 21 2016, 07:36 AM
PavelK
PavelK
Offline
0
Hello,

Since the IGEP v2 Rev.F board contains now the PWM holes on JA41 and JA42, Could you also please some code that activate the PWM functionality.
I have found the code:
https://github.com/MarkAYoder/BeagleBoard-exercises/tree/master/Old/pwm-2.8
However, changing the GPT10 and 11, which are used in the example to GPT8 makes "error on line prefetch" on accessing the timer register.

kernel: 2.6.37. (poky version)
GPT8_PWM is enabled in mux
Clock select for GPT8 is 32kHz

Accepted Answer

PavelK
PavelK
Offline
Wednesday, June 29 2016, 01:39 PM - #permalink
0
Made it working.

Now GPT8 in JA41:29 and JA42:21 are working as PWM outputs.

Requirements:
kernel: 2.6.37

1. Add this line to the board-igep0020.c
/* Use JA41:29 and JA42:21 as GPTIMER8 PWM */
OMAP3_MUX(GPMC_NCS7, OMAP_MUX_MODE3 | OMAP_PIN_OUTPUT),

to the
static struct omap_board_mux board_mux[] __initdata structure.


2. The source:
http://pastebin.com/JZdddFE5
http://pastebin.com/emjh9sXP
http://pastebin.com/LnS9eV8v
The reply is currently minimized Show
Responses (3)
  • Accepted Answer

    Wednesday, June 22 2016, 12:18 PM - #permalink
    0
    Hi PavelK,

    IGEP v2 Rev.F board doesn't have GPT10 and GPT11 peripherals available to expansion connectors

    Cheers!
    The reply is currently minimized Show
  • Accepted Answer

    PavelK
    PavelK
    Offline
    Wednesday, June 22 2016, 12:53 PM - #permalink
    0
    Hello Pau Pajuelo,


    Thank you for the answer.
    1.
    I know, that GPT10 and GPT11 lines are not routed to JA41 and JA42.

    2.
    I also know, that GPT8 do exist in JA41 and JA42.

    3.
    The document NTW-IGEP0020-RFxx-001 0a-MIGRATION_IGEPv2_RCxx_TO_RFxx_TECHNOTE.pdf
    at pages 13 and 14 states, that GPT8_PWM_EVT is available in mux mode5,
    see this link:
    https://s32.postimg.org/vibjr57c5/Screenshot_from_2016_06_22_13_42_18.png

    On the other hand, the TRM at the page 2450 says that gpt_8_pwm_evt is available at mux mode 3.
    see this link:
    https://s32.postimg.org/hgikurb0l/Screenshot_from_2016_06_22_13_44_49.png

    >>> Please clearify.<<<

    4. When I attempt to access the GPT8 timer register, I receive Error on line prefetch.
    http://pastebin.com/h9kUifv7

    5.
    Has the ISEE a source code, that operates the GPT8_PWM ???
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, June 23 2016, 11:40 AM - #permalink
    0
    Hi PavelK,

    >>> Please clearify.<<<

    GPT_8 is available at mux mode 3. The following link is the release candidate of the new manual:

    https://www.dropbox.com/s/lsbzyyb0oijhhh6/MAN-PR-IGEP0020-RFxx-4.x-IGEPv2_HARDWARE_REFERENCE_MANUAL.pdf?dl=0

    Has the ISEE a source code, that operates the GPT8_PWM ???

    No, when I have some time gap. I gonna test it

    Cheers!
    The reply is currently minimized Show
Your Reply

SUPPORT


This email address is being protected from spambots. You need JavaScript enabled to view it.
This email address is being protected from spambots. You need JavaScript enabled to view it.
IGEP Community Wiki
IGEP Community Forum
IGEP Community Online Chat