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.

Timer Interrupts on beaglebone black

Hi Guys I am new to beaglebone black. I am using a beaglebone black board and developing a project related to weather monitoring. I have got an application where in i need to define a timer interrupt which will service the interrupts  on the user defined timings. I don't know how to implement this. Kindly help me with this and try to give a piece of code or help me to achieve this

  • Hi,

    Please post what software and version you are using?

  • spl: error reading image args, err - -1
    reading u-boot.img
    reading u-boot.img


    U-Boot 2013.10-g78d8ebd (Mar 30 2014 - 20:46:34)

    I2C: ready
    DRAM: 512 MiB
    NAND: 0 MiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    *** Error - No Valid Environment Area found
    *** Warning - bad CRC, using default environment

    Net: <ethaddr> not set. Validating first E-fuse MAC
    cpsw, usb_ether
    Hit any key to stop autoboot: 0
    mmc0 is current device
    Scanning mmc 0...
    4117616 bytes read in 385 ms (10.2 MiB/s)
    34352 bytes read in 33 ms (1015.6 KiB/s)
    mmc0 is current device
    SD/MMC found on device 0
    reading uEnv.txt
    241 bytes read in 3 ms (78.1 KiB/s)
    Loaded environment from uEnv.txt
    Importing environment from mmc ...
    Running uenvcmd ...
    Unknown command 'bootargs' - try 'help'
    link up on port 0, speed 100, full duplex
    Using cpsw device
    TFTP from server 192.168.1.1; our IP address is 192.168.1.2
    Filename 'uImage'.
    Load address: 0x80200000
    Loading: #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    ###########################
    1.3 MiB/s
    done
    Bytes transferred = 4130904 (3f0858 hex)
    link up on port 0, speed 100, full duplex
    Using cpsw device
    TFTP from server 192.168.1.1; our IP address is 192.168.1.2
    Filename 'am335x-custom.dtb'.
    Load address: 0x80f80000
    Loading: ########
    1021.5 KiB/s
    done
    Bytes transferred = 37687 (9337 hex)
    ## Booting kernel from Legacy Image at 80200000 ...
    Image Name: Linux-3.12.10-ti2013.12.01
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 4130840 Bytes = 3.9 MiB
    Load Address: 80008000
    Entry Point: 80008000
    Verifying Checksum ... OK
    ## Flattened Device Tree blob at 80f80000
    Booting using the fdt blob at 0x80f80000
    Loading Kernel Image ... OK
    Loading Device Tree to 9f320000, end 9f32c336 ... OK

    Starting kernel ...


    _____ _____ _ _
    | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
    | | _| .'| . | . | | __| _| . | | | -_| _| _|
    |__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
    |___| |___|

    Arago Project http://arago-project.org am335x-evm ttyO0

    Above given is the log when i boot up the board
  • Hi Biser I am using ubuntu 14.04 LTS OS and below given is the log which comes when i boot the board

    spl: error reading image args, err - -1
    reading u-boot.img
    reading u-boot.img


    U-Boot 2013.10-g78d8ebd (Mar 30 2014 - 20:46:34)

    I2C: ready
    DRAM: 512 MiB
    NAND: 0 MiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    *** Error - No Valid Environment Area found
    *** Warning - bad CRC, using default environment

    Net: <ethaddr> not set. Validating first E-fuse MAC
    cpsw, usb_ether
    Hit any key to stop autoboot: 0
    mmc0 is current device
    Scanning mmc 0...
    4117616 bytes read in 385 ms (10.2 MiB/s)
    34352 bytes read in 33 ms (1015.6 KiB/s)
    mmc0 is current device
    SD/MMC found on device 0
    reading uEnv.txt
    241 bytes read in 3 ms (78.1 KiB/s)
    Loaded environment from uEnv.txt
    Importing environment from mmc ...
    Running uenvcmd ...
    Unknown command 'bootargs' - try 'help'
    link up on port 0, speed 100, full duplex
    Using cpsw device
    TFTP from server 192.168.1.1; our IP address is 192.168.1.2
    Filename 'uImage'.
    Load address: 0x80200000
    Loading: #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    #################################################################
    ###########################
    1.3 MiB/s
    done
    Bytes transferred = 4130904 (3f0858 hex)
    link up on port 0, speed 100, full duplex
    Using cpsw device
    TFTP from server 192.168.1.1; our IP address is 192.168.1.2
    Filename 'am335x-custom.dtb'.
    Load address: 0x80f80000
    Loading: ########
    1021.5 KiB/s
    done
    Bytes transferred = 37687 (9337 hex)
    ## Booting kernel from Legacy Image at 80200000 ...
    Image Name: Linux-3.12.10-ti2013.12.01
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 4130840 Bytes = 3.9 MiB
    Load Address: 80008000
    Entry Point: 80008000
    Verifying Checksum ... OK
    ## Flattened Device Tree blob at 80f80000
    Booting using the fdt blob at 0x80f80000
    Loading Kernel Image ... OK
    Loading Device Tree to 9f320000, end 9f32c336 ... OK

    Starting kernel ...


    _____ _____ _ _
    | _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
    | | _| .'| . | . | | __| _| . | | | -_| _| _|
    |__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
    |___| |___|

    Arago Project http://arago-project.org am335x-evm ttyO0

    regards

    Gangadhar
  • This is SDK 7.0. I have forwarded your query to the SW team.

  • Hi Biser,

    Thanks for your help

    Regards

    Gangadhar
  • Hi Gangadhar,

    Have you checked similar articles? You can get the starterware examples and port it for your need:

    e2e.ti.com/.../1056631

    Regards,

    Boyko