When I create a hex file for a C file the addresses are not in order. Is there an option in uVision to make sure they are in order? The addresses are fine when I use an assembly file.
Beware of the record types (e.g. 02) that change the segment. In such a case, you can split the hex file into subfiles and sort the subfiles. Also, some programmers allow output to a file. In such a case, the output hex file is sorted.