Xien
Joined: 12 Dec 2007 Posts: 2
|
#org problems |
Posted: Thu Dec 13, 2007 10:32 am |
|
|
Has anyone else noticed that #org doesn't seem to work correctly across multiple files? For example, I built ex_bootloader.c included with PCH for my PIC18F87J11 platform. There are several #org statements across 2 .c files. When I build the project the resulting hex file addresses looks like this:
Code: |
0010
0020
0030
0040
0050
0060
0070
0080
0090
0100
0110
0120
0130
0140
0150
0160
0170
0180
0190
01A0
01B0
01C0
01D0
0200
020A
0210
0220
0230
0240
0250
0260
0270
0280
0290
02A0
02B0
02C0
02D0
02E0
02F0
0300
0310
0320
0330
0340
0350
0360
0370
0380
0390
03A0
03B0
03C0
03D0
03E0
03F0
0400
0410
0420
0430
0440
0450
0460
0470
0480
0490
04A0
04B0
04C0
04D0
04E0
04F0
0500
0510
0520
0530
0540
0550
0560
0570
0580
0590
05A0
05B0
|
If you look at the ex_bootloader.c and loader.c this is not what you'd expect. This also isn't the only place I've noticed this problem, it is just the first project I noticed it in.
I'm running PCH 4.062. Thoughts? |
|