. Gel file in CCS

Source: Internet
Author: User

The CCS gel language is an interactive command that is interpreted and executed, that is, it cannot be compiled into executable files. It is used to extend the functions of CCS studio. You can use gel to call some menu commands and initialize and configure DSP Memory. For different types of DSPs, we should select the corresponding gel file.

When CCS studio is started, the gel file is loaded into the memory of the PC. If the startup () function is defined, the function is executed in CCS Studio (v2.3 or earlier ), the initialization of the host and target board is executed in the startup () function. However, for CCS Studio (v2.4 or later versions, such as version 3.1 and version 3.3) that support connect/disconnect, the gel file may not be correctly executed. Because the connection between the CCS studio startup and the target processor is disconnected, an error occurs when the startup () function attempts to access the target processor. Therefore, in v2.4 or later versions, when CCS is started
Use a new callback function ontargetconnect () to initialize the target processor.

For CCS environments that support connect/disconnect, do not use get_reset (), gel_breakptadd (), gel_textout (), or get_openwindow () in the startup () function, because startup () any control window of ccsstudio is not opened yet.

We compare two different types of gel files to make them easier to understand.

The startup () function in the connect/disconnect ccsstudio gel file is not supported:

Startup ()

{

Setup_memory_map ();

Gel_reset ();/* do not call in startup () with ccstudio v2.4 or higher */

Init_emif ();/* do not call in startup () with ccstudio v2.4 or higher */

}

Supports the startup () function in the connect/disconnect ccsstudio gel file:

Startup ()

{

Setup_memory_map ();

}

The ontargetconnect () function is called every time it establishes a connection with the target processor. Initialize the smallest system to ensure that ccsstudio is in a trusted state on the target processor, such as disabling the watchdog clock and stopping the DSP reset. For some platforms, you can call the gel_reset () function to make ccsstudio in a good state. You can test the function to determine whether to call the function.

We can see that the latter only establishes the storage ing. Other tasks of DSP initialization are completed by the ontargetconnect () function. The following uses 6437 as an example. The source code of gel is as follows:

Startup ()

{Setup_memory_map ();}

Ontargetconnect ()

{Setup_cache (); setup_pin_mux (); // setup pin MUX setup_psc_all_on (); // setup power domains setup_pll0_594_mhz_oscin (); // setup pll1 [DSP @ 594 MHz] [core 1.20 V] setup_pll1_ddr_135_mhz_oscin (); setup_aemif_8bit_bus (); // setup async-EMIF [8-bit bus]}

Note: The gel file is resident memory after the CCS is started, and plays the initial DSP role when the simulator and target system are powered on. Changing the gel file after power-on does not affect the DSP. Click Open Link

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.