Re: [Sdcc-user] PIC18F: Define array at fixed location in the ram

2012-02-02 Thread KHMan
On 2/2/2012 4:20 PM, Butuza Tamas wrote: > [snip] > It is a descriptor block for the internal USB peripheral of the mcu and > should be placed exactly to 0x400 address in ram. > Of course this place should be kept clear by the linker and compiler when > assign place to the other variables. > > Th

Re: [Sdcc-user] PIC18F: Define array at fixed location in the ram

2012-02-02 Thread Sebastien Lorquet
Hi, why don't you have a try with this syntax, then check the map file? mcc18 uses #pragmas to do that, but __at is probably the correct way with sdcc. I don't think that's a professionnality issue :) An idea, you could check how it's done in device header files. Here, the SFR are declared as

[Sdcc-user] PIC18F: Define array at fixed location in the ram

2012-02-02 Thread Butuza Tamas
Dear sdcc developers and users, I have an "advanced?" question: I need to define a fixed length array in the ram of the pic18F25J50. It is a descriptor block for the internal USB peripheral of the mcu and should be placed exactly to 0x400 address in ram. Of course this place should be kept clear