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.

Reg Hex creation in IAR EW8051 for Zstack

Other Parts Discussed in Thread: CC2431

Hi

We bought CC2431 DK kit from TI.

We are testing the sample application of Zstack 1.4.3 and 1.4.3 – 1.2.1 with the help of IAR EW8051 IDE.

 

I have a problem in creating hex file for the sample application.

 

 

I created the hex files with the following changes and downloaded the hex file to the SOC using TI flash programmer. But the expected program doesnot gets executed.

 

The steps followed for library creation are mention below,

 

  1. Opened the Sample application.

  2. Selected “Override Default” option in “Options” tab under “Linker” menu.

  3. Gave the “Router.hex” in the output filename provided

  4. Also selected 'Other' options and selected the following changes

      a. Output Format – Intel Extended

      b. Format Variant- None

      c. Module local symbols – Include all.

 

 

Kindly let us know for any changes

 

Thanks,

Saran

  • Hello.

    If you are using the Flash Programmer, one possiblity is that you may have not uncomented the '-M' option in the linker script. I believe there are comments in the script providing guidance.

    The problem is that the hex file address specifications are not contiguous in the hex file output by the IDE by default. This is becasue of the manner in which the IDE download support handles banking. The TI Flash programmer, however, wants to see a contiguous linear address space. It handles the banking issues internally. If you try to download the IDE default hex file it will not work properly.

    Hope this helps.

    lfriedman