View previous topic :: View next topic |
Author |
Message |
morebudwiser
Joined: 17 Oct 2005 Posts: 26
|
EX_RS485.c compile error |
Posted: Thu Oct 12, 2006 6:54 am |
|
|
hi trying to complie rs485.c example program that comes with the complier (3.245) and it keeps coming back saying out of ROM a segement of is to large main 0003f
anyone know why im getting this error or how to fix it i have not change the example in any way
many thanks morebudwiser |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah Guest
|
|
Posted: Thu Oct 12, 2006 7:01 am |
|
|
rs485.c, is not meant to be compiled. The 'example', is ex_rs485.c (in the examples directory, not the drivers directory), which then loads this part as an include file (why CCS used .c as an extension, rather than .h for this file, I do not know). rs485.c, needs the extra definitions in the example file, before it'll compiler.
Best Wishes |
|
![](templates/subSilver/images/spacer.gif) |
morebudwiser
Joined: 17 Oct 2005 Posts: 26
|
Ex_rs485_chat.c |
Posted: Fri Oct 13, 2006 3:34 am |
|
|
hi sorry i meant rs485_chat.c will not complie |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah Guest
|
|
Posted: Fri Oct 13, 2006 3:42 am |
|
|
Er. Don't know of any such example (rs485_chat.c).....
Best Wishes |
|
![](templates/subSilver/images/spacer.gif) |
Guest
|
|
Posted: Fri Oct 13, 2006 4:18 am |
|
|
hi it is listed in the complete examples list on ccs web site as Ex_rs485 and its function is Simple messenger utilizing RS485
many thanks morebudwiser |
|
![](templates/subSilver/images/spacer.gif) |
Ttelmah Guest
|
|
Posted: Fri Oct 13, 2006 7:28 am |
|
|
That is ex_rs485.c, which is included with the compiler, not 'ex_rs485chat.c', or 'rs485.c'. The version that comes with the compiler, will compile OK. The latter version (which is what you get if you download it seperately), will give problems depending on your compiler version, unless you use a chip with more ROM (16F648A).
Best Wishes |
|
![](templates/subSilver/images/spacer.gif) |
|