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.

BeagleBone Error GPIO example

Other Parts Discussed in Thread: AM3358

Hello,

I try to test starterware GPIO on beaglebone and when I try to load program I have:

CortxA8: Trouble Writing Memory Block at 0x80001234 on Page 0 of Length 0x3c: (Error -2130 @ 0x80001234) Unable to access device memory. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 5.1.232.0) 
CortxA8: GEL: File: C:\ti\AM335X_StarterWare_02_00_00_07\binary\armv7a\cgt_ccs\am335x\beaglebone\gpio\gpioLEDBlink.out: Load failed.
CortxA8: Trouble Reading Register CP15_Registers_CP15_CONTROL_REGISTER: (Error -2131 @ 0x20013F00) Unable to access device register. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 5.1.232.0) 

In target configuration I have AM3358 and AM335x_beaglebone gel file, and only GPIO example.

Please help

  • I have same problem on all beaglebone starterware examples.

  • Hi David, there is a similar problem in this thread:
    http://e2e.ti.com/support/embedded/starterware/f/790/p/225263/793395.aspx#793395

    Are there any other error messages when launching your target configuration and connecting to the Cortex-A8?

    Also, which GEL file are you using? I've seen some errors when using the GEL file packaged with CCS. You can try the Beaglebone Black GEL file from the Sitara Linux training:
    http://processors.wiki.ti.com/index.php/File:BeagleBlack_400Mhz_4GbDDR.gel.tar.gz

  • Hi,

    The gel file I used is in starterware,/tools/gel/AM335x_beaglebone.gel

    In basic I selected AM3358.

    When i launch configuration, no message. When I try to connect it's ok, no message. Error is only when I try to load program.

    I try the gel file you link but I have this message

    CortxA8: Output: **** AM335x BeagleBlack Initialization is in progress ..........
    CortxA8: Output: **** AM335x ALL PLL Config for OPP == OPP100 is in progress .........
    CortxA8: GEL: Error while executing OnTargetConnect(): Target failed to read 0x44E10040 at (*((unsigned int *) (0x44E10000+0x40))>>22) [BeagleBlack_400Mhz_4GbDDR.gel:358] at GetInputClockFrequency() [BeagleBlack_400Mhz_4GbDDR.gel:433] at ARM_OPP100_Config() [BeagleBlack_400Mhz_4GbDDR.gel:349] at AM335x_BeagleBlack_Initialization() [BeagleBlack_400Mhz_4GbDDR.gel:335] at OnTargetConnect() .

    I read the post you link and I don't understand what he uninstall.

    Thanks

  • Hi,

    I uninstall CCS V5.0, I install V6, I install last version Starter ware. Same...

    I try to change target configuration (beaglebone, beagleboneblack, am3358...) nothing.

    CortxA8: Trouble Writing Memory Block at 0x80000000 on Page 0 of Length 0x17b0: (Error -1065 @ 0x3D5A) Unable to access device memory. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 5.1.450.0)
    CortxA8: Unable to terminate memory download: NULL buffer pointer at 0x3a9f
    CortxA8: GEL: File: C:\ti\AM335X_StarterWare_02_00_01_01\binary\armv7a\cgt_ccs\am335x\beaglebone\gpio\Debug\gpioLEDBlink.out: Load failed.

    Best regards

  • david guilleman said:
    CortxA8: GEL: Error while executing OnTargetConnect(): Target failed to read 0x44E10040 at (*((unsigned int *) (0x44E10000+0x40))>>22) [BeagleBlack_400Mhz_4GbDDR.gel:358] at GetInputClockFrequency()

    It looks like Linux might be booting and enabling the MMU, which is causing your problem. To prevent Linux from booting, make sure that there is no SD card inserted. Also, hold down S2 while powering the board to prevent booting from the eMMC.

    Alternatively, if you have a console connection, you can stop u-boot from autobooting by pressing any key.

    Having a console connection is also a way to confirm if Linux is indeed booting.

  • Hi,

    I try unplug sd card:

    CortxA8: Trouble Writing Memory Block at 0x80000000 on Page 0 of Length 0x17b0: (Error -1065 @ 0x3D5A) Unable to access device memory. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 5.1.450.0)
    CortxA8: Unable to terminate memory download: NULL buffer pointer at 0x3a9f
    CortxA8: GEL: File: C:\ti\AM335X_StarterWare_02_00_01_01\binary\armv7a\cgt_ccs\am335x\beaglebone\gpio\Debug\gpioLEDBlink.out: Load failed.

     I haven't S2, only S1 reset, I try all GEL files. I haven't console.

    Thanks

  • Sorry, for some reason, I thought you were using a Beaglebone Black. It sounds like you've got the white version. In that case, don't use the Beaglebone Black GEL file.


    You can get a console output by connecting the mini USB port of the Beaglebone to your computer. You may need to install the drivers, as indicated here:
    http://beagleboard.org/Getting+Started#step2

  • For beaglebone black it was a try; I have try all GEL. Everytime same. But now I'm on beagle bone standard.

    I'm sorry but I don't understand. What do you mean by "console". I installed drivers you link and after ? You have a software to have a graphic screen ?

    Thanks

  • I try this: http://rabidelephant.com/blog/2013/09/19/starterware-setup-for-beaglebone-white/

    After I try again with CCS and it works.

    So Thanks