CAN Training loading hex files

For questions and comments on programming in general. And for any items that don't fit into the forums below.

Moderators: Benj, Mods

Post Reply
Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

CAN Training loading hex files

Post by Chris_MIRA »

Hi,
Im using the CAN training package and Im trying to load the supplied hex files using ppp as described. Im also using the PIC 16F1937 also as per the course notes, but when I try to load the HEX files to the apropriate nodes, I get a warning that the file exceeds the pic memory range. Any ideas how I solve this?
Regards,
Chris

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: CAN Training loading hex files

Post by LeighM »

could you try running ppp from a command prompt
cd to your hex directory
then run
"C:\Program Files (x86)\Flowcode\v5\Tools\PPP\PPPv3.exe" -cs 2 -chip PIC16F1937 "Display_node_1.hex"
(modify to your ppp exe path)

Chris_MIRA
Posts: 186
Joined: Wed Jan 23, 2013 3:43 pm
Has thanked: 2 times
Been thanked: 21 times
Contact:

Re: CAN Training loading hex files

Post by Chris_MIRA »

Hi,
Sorry if Im being thick but does your resconce mean that the problem isnt actually that the hex code is to big / wrong for the PIC but instead the problem is how PPP is atempting to load the programme?
Regards,
Chris

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: CAN Training loading hex files

Post by LeighM »

Yes, the hex code will be correct, the problem appears to be with PPP, maybe it has the wrong config.
Regards,
Leigh

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: CAN Training loading hex files

Post by Benj »

Hello,

I think if you run PPP, click configure and then click autodetect then it will assign the 16F1937 as default device and use this to parse in the hex file into the correct format.

Click ok and then load the hex file into PPP. Hopefully it should now send to the device correctly.

I may be wrong on this so let us know how your getting on.

Post Reply