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.

Can't connect after Linux Kernel Panic

Other Parts Discussed in Thread: AM1808, OMAPL138

I find that my emulator will refuse to connect after my development board has had a Linux "Kernel Panic".  I would have expected the emulator to be able to connect to the target no matter what state it was in.  Is this a known problem?  If anyone is interested, I can provide more details (it is fully reproduceable and I have caputured screenshots and DbgView logs), but here is an outline:

Host: Windows XP Professional Version 2002 Service Pack 3

IDE: CCS 4.1.2.00027

Target: LogicPD Zoom AM1808 eXperimenter Kit TMDXEXP1808L P/N: 1015206 REV 2

Debugger: Blackhawk USB100v2

Steps to reproduce:

  1. Connect PC to Zoom board with Blackhawk emulator.
  2. Power on Zoom board and wait for kernel panic (it seems that I was delivered a faulty SD card which causes Linux to issue a kernal panic when attempting to open the root file system).
  3. Run CCS in the workspace created by following the orignal installation instructions.
  4. Set "AM1808eXp LED_DIP Test" as the active project.
  5. "Target -> Debug Active Project" and see the load failure with the following output:

ARM9_0: Output: Memory Map Cleared.

ARM9_0: Output: ---------------------------------------------

ARM9_0: Output: Memory Map Setup Complete.

ARM9_0: Output: ---------------------------------------------

ARM9_0: Trouble Writing Memory Block at 0x80000000 on Page 0 of Length 0x66e0

ARM9_0: Unable to terminate memory download

Cannot write to target

ARM9_0: Error: 0xE0020822/-1060 @ marker 11800 Error during: Memory, Execution, Timeout, Internal, An unknown error prevented the emulator from accessing the processor in a timely fashion. It is recommended to RESET EMULATOR. This will disconnect each target from the emulator. The targets should then be power cycled or hard reset followed by an emureset and reconnect to each target.

 

  • Paul,

    From the error message you sent the emulator is able to connect to the board but is not able to write to a specific memory address - in your case the mDDR (0x80000000).

    During the boot and Linux kernel intialization, lots of configuration steps are performed that affect the device functionality, especially concerning clock, power modes and memory configurations (MMU). In your case it seems the kernel panic caused either a misconfiguration of the external DDR clock or configured the MMU to prevent any access to this memory region.

    Since per your description you intend to simply connect and load code without a Linux kernel (the LED_DIP_Test does not require Linux), my suggestion is to remove the SD card (preventing Linux from booting), power up the board with the emulator connected and then try to load CCSv4. Please be advised that a initialization script (GEL file) is required to properly configure the device. For details check the section Boards with XDS100v2 onboard emulator at the page below:

    http://processors.wiki.ti.com/index.php/GSG:Common_target_configurations

    The page below can also help you with the configuration and connection. Although it talks about the AM1808's sister board (OMAPL138), it may be helpful as it is a good step-by-step guide

    http://processors.wiki.ti.com/index.php/How_to_connect_to_the_OMAP-L138/C6748_EVM_board_using_CCS%3F

    Hope this helps,

    Rafael