This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Source and headers included but not found

Hey everyone,

I am attempting to move an existing project from Atollic to Keil (as Atollic is no longer supported by my MCU).

All I want to do is add the appropriate headers and source files that have already been generated to my current Keil project.

I have already gone and found the header file I wish to implement, and I can see it very clearly under the Project pane on the left, however whenever I compile I get:

"Cannot open source input file "board.h": No such file or directory.

I have searched high and low for a tutorial explaining how to start a Keil program from scratch in order to make bin files, but nobody seems to be talking about it.

Can someone help me?

  • Make sure that the directory that contains board.h is in the list of directories to look for include files in.

    Flash / Configure Flash Tools / C/C++ / Include Paths

  • The output pane of the project options allows you to create a .HEX (Intel) as well as the more usual .AXF (ELF) file.

    You can use FromELF as a post-link user task in the user pane of the project options. www.keil.com/.../armutil_pge1362128877330.htm

    ARM FromELF, 5.03 [Build 76] [MDK-ARM Lite]
    
    ARM image conversion utility
    fromelf [options] input_file
    
    Options:
           --help         display this help screen
           --vsn          display version information
           --output file  the output file. (defaults to stdout for -text format)
           --nodebug      do not put debug areas in the output image
           --nolinkview   do not put sections in the output image
    
    Binary Output Formats:
           --bin          Plain Binary
           --m32          Motorola 32 bit Hex
           --i32          Intel 32 bit Hex
           --vhx          Byte Oriented Hex format
    
           --base addr    Optionally set base address for m32,i32
    
    Output Formats Requiring Debug Information
           --fieldoffsets Assembly Language Description of Structures/Classes
           --expandarrays Arrays inside and outside structures are expanded
    
    Other Output Formats:
           --elf         ELF
           --text        Text Information
    
                    Flags for Text Information
                    -v          verbose
                    -a          print data addresses (For images built with debug)
                    -c          disassemble code
                    -d          print contents of data section
                    -e          print exception tables
                    -g          print debug tables
                    -r          print relocation information
                    -s          print symbol table
                    -t          print string table
                    -y          print dynamic segment contents
                    -z          print code and data size information
    
    Software supplied by: ARM Limited
    

    I'm sure I could find video tutorials if I needed such things. More a books and manuals guy myself.