Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HELP WITH PIC18FK20
#5
I think I misunderstood the meaning of "USE_TXENABLE" for some reason I thought it meant to allow the TXD pin to work, which is silly because the boot loader has to have two way communication anyway. After reading your manual I realize this is just a method to assign a TX enable function through an input pin when we are using the RS485 method of communication. I have now commented out this as follows: ;#define USE_TXENABLE 1
The other thing that I don't seem to understand and perhaps is related to why I can't make this work is why do I keep getting a compilation error on this line of the ds30loader.asm Enable digital i/o ;
#ifdef ADCON1
error Do you need to configura uart pins to be digital? If not, remove this line
#endif

So I had to do the following which is comenting this line out: ; error Do you need to configura uart pins to be digital? If not, remove this line
I don't understand why I get this error unless ADCON1 has been defined as true, where does ADCON1 get set to true?
For some reason my TXD in from my UART is just not working, however everything works fine with my UART when I program other code instead of the s30 loader
Reply


Messages In This Thread
HELP WITH PIC18FK20 - by cbarberis - 2015-06-02, 18:20:08
RE: HELP WITH PIC18FK20 - by Mikael Gustavsson - 2015-06-03, 07:39:30
RE: HELP WITH PIC18FK20 - by Mikael Gustavsson - 2015-06-03, 07:40:19
RE: HELP WITH PIC18FK20 - by cbarberis - 2015-06-03, 13:34:43
RE: HELP WITH PIC18FK20 - by cbarberis - 2015-06-03, 15:40:19
RE: HELP WITH PIC18FK20 - by cbarberis - 2015-06-11, 21:45:23
RE: HELP WITH PIC18FK20 - by Mikael Gustavsson - 2015-08-23, 11:31:20

Forum Jump:


Users browsing this thread: 1 Guest(s)