Tamas,

try to use "#pragma config" to define configuration bits (see sdccman). You
should use a recent sdcc version which implements it. I suggest to use sdcc
3.2.0 RC1, so it will be additionally tested.

Let us know if it works for you. If it works, then we should remove config
words definitions from the header file. If it doesn't, then we have a bug .

Borut

On Wed, Jun 13, 2012 at 4:41 PM, Butuza Tamas <tbutu...@freemail.hu> wrote:

> Dear sdcc developers,
>
> There is a problem with PIC18FxxJ10 include files:
> The configuration word addresses are not defined properly.
> (sdcc version: 7889)
>
> In the 18J  series chips config words are no longer located at 0x300000.
> The resulted hex file should not contain anything at this address.
> The proper method for 18J chips: Use the last words in the Flash memory.
> It means different addresses for chips with different amount of Flash but
> within the same device family.
>
> As seen it is properly defined for 18FxxJ50 devices.
> See the PIC18F46J50.h for full definition and other XXJ50.h files how to
> override these addresses for the different Flash addresses.
>
> This method should be merged to 18FxxJ10 include files respectively.
> Also, please use this for the J11 devices, when generate header files for
> them.
>
> Thanks in advance,
> Tamas
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to