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.

GEL Error while connecting to ARM9(AM1808)

Other Parts Discussed in Thread: AM1808, OMAPL138
Hello everyone,
I have a MityARM 1808F and I am facing a strange issue which is as follows:
  • when I am trying to connect to ARM without stopping the uboot (from booting linux), I receive this error 
    ARM9_0: GEL: Error while executing OnTargetConnect(): Attempted to read unmapped virtual memory at 0X01C10800
    
    and I can't run any example (like : UART ) after loading it.
  • but when I am trying to connect to ARM after stopping the uboot (from booting linux) ,everything is fine and I can load and run any example.

So,What is the problem when I am trying to connect to ARM without stopping the uboot from booting linux?
Thanks in advance.

  • Hi,

    Could you please answer the following questions to help you out.

    Can you please provide your steps that you have followed.

    Please attach your screen shot of the error.

    What is the project name that you are trying to load in ARM?

    Where did you get the project and Is it provided by TI or own?

    What are you trying to do really?

    Debugging !

  • Thanks for fast response,

    The steps in case of not stopping the uboot from booting Linux:

    1-      Connect serial port to PC.

    2-      Power on the board.

    3-      Uboot asks to stop auto boot

    Hit any key to stop autoboot: 

    4-      Uboot starts to load Linux OS.

    5-      After loading is done, I am trying to connect to ARM9 using “TMS320 XDS100 V3” and GEL file “AM1808.gel” provided by Starterware.

    6-      The following error appears :

    ARM9_0: GEL: Error while executing OnTargetConnect(): Attempted to read unmapped virtual memory at 0X01C10800 

    7-      Then I try to load “UART” example (after modifying the UART instance to 1 instead of 2) provided by “AM1808_StarterWare_1_00_03_03”.

    8-      Then I press run button and nothing is displayed on hyper terminal.

     

    The steps in case of stopping the uboot from booting Linux:

    1-      Connect serial port to PC.

    2-      Power on the board.

    3-      Uboot asks to stop auto boot

    Hit any key to stop autoboot: 1

    4-      After stopping auto boot, I could connect to ARM9 with no GEL errors, and then I can load and run “UART” example and I get the following output on hyper terminal:

    StarterWare AM1808 UART echo application.

    So, I want to know the reason of

    1-      GEL error

    2-      Example isn't working,

    in case of not stopping auto boot from booting Linux?

    Note:

    I’m sorry about providing no snapshots for error or hyper terminal  because I’m far from the development PC (it’s my weekend:)).

  • Hi,

    1)

    What is your CCS version?

    On What OS did you install the CCS (linux or windows) ?

    It is better to analyze If you shared your screen shot.

    Check this link

    http://e2e.ti.com/support/development_tools/code_composer_studio/f/81/t/111915.aspx

    2)

    This seems to be CCS trying to access the memory which is loaded already by kernel,

    Thats why you are not getting any errors when you are in u-boot,

    Your address could not visible to us to know whether that address belongs to kernel which CCS has reporting at virtual memory address error.

    Actually If we connect the emulator on board then it should go to emulation mode,

    I'm not sure and I have to check and let you know.

    Okay, anyway I will also try this case and let you know.

    Just i want to know,

    Why are you trying to load starterware binary after booting linux?

    Do you have any intended reason for this case or trying simply?

  • Titusrathinaraj Stalin said:
    What is your CCS version?

    I am using CCS v5.1.

    Titusrathinaraj Stalin said:
    On What OS did you install the CCS (linux or windows) ?

    Windows XP

    Titusrathinaraj Stalin said:

    I have already checked this link before.

    Titusrathinaraj Stalin said:
    Your address could not visible to us to know whether that address belongs to kernel which CCS has reporting at virtual memory address error.

    Address is : 0X01C10800

    Titusrathinaraj Stalin said:
    Actually If we connect the emulator on board then it should go to emulation mode,

    Also,that's what I think and what I want.

    Titusrathinaraj Stalin said:

    I'm not sure and I have to check and let you know.

    Okay, anyway I will also try this case and let you know.

    I'm waiting for you,thanks for your help.

    Titusrathinaraj Stalin said:

    Why are you trying to load starterware binary after booting linux?

    Do you have any intended reason for this case or trying simply?

    It's just a simple try(and now, I want to know why it's not working). And i have no intend to use Linux OS .

    I want to go to emulation mode to try some examples.

     I appreciate your help.

  • Hi Titusrathinaraj,

    Have you found anything?

  • Hi Eng.ahmed Shaaban,

    I think  it is pretty much a straight forward answer.The starterware examples are intended to run in a non-OS platform. When you run linux on the target and then try to run the starterware examples, obviously it will not run.

    As you already mentioned, when you don't run Linux, you will succeed in running the UART starterware examples.

    The starterware examples are most probably raw/direct peripheral drivers which works directly with the hardware without any need for any operating system. 

     

    Regards,

    Shankari

    -------------------------------------------------------------------------------------------------------

    Please click the Verify Answer button on this post if it answers your question.
    --------------------------------------------------------------------------------------------------------

  • Hi,

    It is weird idea,

    Anyway I have tried this in OMAPL138_LCDK which has both ARM and DSP core,

    I am able to run DSP app (which is independent with ARM peripheral and also it is not a starterware code) after i loaded linux,

    So, You could not run both linux as well ARM starterware app,

    As Shankari suggested, starterware code will initialize the low level code which will access the LPSC & pinmux registers and It could lead unexpected behavior.

    For me, It corrupted the filesystem when I'm running linux,

    If you want run starterware code or any ARM app , set boot switches to emulation mode then load programs through emulator in CCS.

  • Thanks Titusrathinaraj Stalin,

    I appreciate your effort and explanations.

    Hi Shankari,

    You are totally right, and as I said before I have no intend to use Linux.

    Besides I know that is impossible to run Linux and Starterware app together (as you said "it is pretty much a straight forward answer"), but as i think (and please tell me if it's wrong) Linux is running in DDR and when I connect to board and loading a new app, the content of DDR is replaced with the new app so no Linux is running now that what i think.

    Great  thanks to both of you.