Re: [Sdcc-user] Reserving an area on code memory segment

2009-03-11 Thread Dennis Muhlestein
Peter Kuhar wrote: > It turns out, that the problem with conversion from ihex to binary with > objcopy. The sdcc generated hex file looks ok. Can you elaborate more on this issue? I'm using objcopy all over the place to create bix files. I, up to this point, haven't been aware of any issues.

Re: [Sdcc-user] Reserving an area on code memory segment

2009-03-11 Thread Peter Kuhar
It turns out, that the problem with conversion from ihex to binary with objcopy. The sdcc generated hex file looks ok. Maarten Brock wrote: Peter, Please include SDCC version and target for which you compile. For mcs51 this should work I think. Maarten Hi, Is it possible to

Re: [Sdcc-user] Reserving an area on code memory segment

2009-03-10 Thread Peter Kuhar
sdcc 2.8.0 msc51 --model-large --stack-auto Thanks, Peter Maarten Brock wrote: Peter, Please include SDCC version and target for which you compile. For mcs51 this should work I think. Maarten Hi, Is it possible to make linker skip a part of code memory? I'd like to use a

Re: [Sdcc-user] Reserving an area on code memory segment

2009-03-10 Thread Maarten Brock
Peter, Please include SDCC version and target for which you compile. For mcs51 this should work I think. Maarten > Hi, > > Is it possible to make linker skip a part of code memory? > > I'd like to use a segment of flash in the middle the whole flash for data. > > Ex. flash segments are 2k.

[Sdcc-user] Reserving an area on code memory segment

2009-03-10 Thread Peter Kuhar
Hi, Is it possible to make linker skip a part of code memory? I'd like to use a segment of flash in the middle the whole flash for data. Ex. flash segments are 2k. I'd like to prevent linker putting code in a segment after 0x8000. I tried this: __code __at (0x8000) uint8_t flash_reserved1[2048