Hex file error: "Could not open the hex-file"

Discussion in 'Embedded Systems and Microcontrollers' started by hazzman, Jan 21, 2008.

  1. hazzman

    Thread Starter Member

    Dec 17, 2007
    13
    0
    hi people,

    I seem to get a problem on my IAR workbench when compiling a C program for my CC2430. I have compliled the executable (main.c) with .h files fine (with some warnings), and can make it. BUT: when i run RF Studio Flash Programmer plugin for IAR it says: "Could not open the hex-file".

    I have real a post on KEIL that the .hex file can not be longer than 8 characters, but mine isn't! main.c -> 4 chars!

    ANY IDEAS PEOPLE? I hope there is nothing wrong within the code and its a trivial problem..............
     
  2. Papabravo

    Expert

    Feb 24, 2006
    10,137
    1,786
    Open the "alleged" .hex file with a text editor and see if it conforms to the hex file spec. As a minimum each line needs to begin with a colon and end with a newline. The problem may not be opening the file but in reading the and understanding the contents. checkout the following reference.
    http://en.wikipedia.org/wiki/Intel_HEX
     
  3. nanovate

    Distinguished Member

    May 7, 2007
    665
    1
    Keil and IAR are not the same company
     
Loading...