AnsweredHot!AN1310 in XC8

Author
brumbarchris
Super Member
  • Total Posts : 362
  • Reward points : 0
  • Joined: 2003/12/03 05:58:39
  • Location: Timisoara, Romania
  • Status: offline
2018/07/12 08:55:32 (permalink)
0

AN1310 in XC8

A couple of years ago, I wanted to pick up a project with a PIC using XC8 and the intention was to use the AN1310 bootloader. I remember that at the time I ran into the problem that the AN1310 bootloader source code was developed with C18 compiler, and that I was considering to port it to XC8. For various reasons the project was canceled, but now we have a similar one and i do not seem to be able to find the C18 code ofcthe AN1310 bootloader anymore. It seems to have been developed in assembler... but I could have sworn that 2 years ago I did see C18 code for it.

Is it developed in C18 or assembler?

Regards,
Cristian
post edited by brumbarchris - 2018/07/12 08:56:39
#1
JorgeF
Super Member
  • Total Posts : 3120
  • Reward points : 0
  • Joined: 2011/07/09 11:56:58
  • Location: PT/EU @ Third rock from the Sun
  • Status: offline
Re: AN1310 in XC8 2018/07/12 09:12:48 (permalink) ☼ Best Answerby brumbarchris 2018/07/16 04:46:56
+1 (1)
Hi
 
Taking a quick look at a copy of it that's been stored in my NAS since 2011, I found a bootloader writen in ASM and sample applications in 'C', both C18 and Hitech C.
 
 

Best regards
Jorge
 
I'm here http://picforum.ric323.com too!
And it works better....
#2
NKurzman
A Guy on the Net
  • Total Posts : 16029
  • Reward points : 0
  • Joined: 2008/01/16 19:33:48
  • Location: 0
  • Status: online
Re: AN1310 in XC8 2018/07/12 09:38:35 (permalink)
+3 (3)
Are you Looking for a Bootloader for XC8?
https://www.microchip.com/promo/8-bit-bootloader
#3
brumbarchris
Super Member
  • Total Posts : 362
  • Reward points : 0
  • Joined: 2003/12/03 05:58:39
  • Location: Timisoara, Romania
  • Status: offline
Re: AN1310 in XC8 2018/07/15 22:10:59 (permalink)
0
Thank you for your replies. I will stick to the AN1310 for the moment :)
 
so, it is in asm! That should make things easier.
 
As I need to build it using the MPLAB X now, instead of its default MPLAB IDE 8, I am a bit unsure what to do with its own supplied .inc files (bootconfig.inc, devices.inc and preprocess.inc). I have them in the project forlder, but is that sufficient? Or should I add them to the MPLABX project in the Header or Source files category?
 
 
Regards,
Cristian
#4
vloki
Jo, alla!
  • Total Posts : 6733
  • Reward points : 0
  • Joined: 2007/10/15 00:51:49
  • Location: Germany
  • Status: offline
Re: AN1310 in XC8 2018/07/16 00:21:15 (permalink)
+1 (1)
It will work anyway, but you should add them in the logical header folder.
I created MPLABX project for AN1310 a while ago. You can find it there.

Uffbasse !
#5
JorgeF
Super Member
  • Total Posts : 3120
  • Reward points : 0
  • Joined: 2011/07/09 11:56:58
  • Location: PT/EU @ Third rock from the Sun
  • Status: offline
Re: AN1310 in XC8 2018/07/16 03:33:37 (permalink)
+1 (1)
Hi
brumbarchris
so, it is in asm! That should make things easier.

ASM is not that dificult, it only takes a little more work and attention to details.
 
OTOH, maybe they did it in ASM for the same reason most of us use ASM or mixed ASM/C.
Smaller, faster, better timming and in full control of the most obscure details.
 

Best regards
Jorge
 
I'm here http://picforum.ric323.com too!
And it works better....
#6
brumbarchris
Super Member
  • Total Posts : 362
  • Reward points : 0
  • Joined: 2003/12/03 05:58:39
  • Location: Timisoara, Romania
  • Status: offline
Re: AN1310 in XC8 2018/07/16 04:49:15 (permalink)
0
Hi

    brumbarchris
    so, it is in asm! That should make things easier.

ASM is not that dificult, it only takes a little more work and attention to details.

 
I was not being ironic, I really prefer it being in ASM in this case, particualrly because of all these reasons that you mentioned. At the end of the day... I am just a HW guy, I only deal with relatively simple SW things. The fewer layers, the better for me...
 
Regards,
Cristian
#7
Jump to:
© 2018 APG vNext Commercial Version 4.5