I have ported your code to a number of different PIC18 parts and noticed that if the part number is a PIC18Fxx?xx then the code will not assemble correctly. I have changed the text length (from 29 to 30) for the splash screen text and then it works fine. Is there a way to make it do this automatically?
Thanks.
Larry
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Larry,
I have solved it so that I increase length byte in the code
and add extra spaces to the strings so that all the strings have the same
length.
If you dig in the mpasm manual, maybe you will find a solution.
Which PIC parts have you ported to ? Were any code changes needed ?
Cheers,
Mikael
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have ported the code to PIC18FxxK20 series parts that are used on the PICKIT3 Debug Express board and then connected the PICKIT2 in the UART mode. Also ran it on various PIC18Fxxxx parts, mostly with different program memory sizes.
I found where you build the string in code and it looks like the length of the string is defined in the first byte. I'm not sure about the solution, can you give me more of a hint? Are you changing the PICTYPE value in the p18Fxxxx.cfg file so that the length is the same for all defined parts? I think that will work but I was thinking there must be a more flexible solution that will not need code changes for new parts.
I made a couple of small edits in words that put a lot of text out to the screen. I like for the cursor to always show up at the left so I added CR to WORDS, DUMP and COLD.
Regards,
Larry
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Mikael,
I have ported your code to a number of different PIC18 parts and noticed that if the part number is a PIC18Fxx?xx then the code will not assemble correctly. I have changed the text length (from 29 to 30) for the splash screen text and then it works fine. Is there a way to make it do this automatically?
Thanks.
Larry
Hi Larry,
I have solved it so that I increase length byte in the code
and add extra spaces to the strings so that all the strings have the same
length.
If you dig in the mpasm manual, maybe you will find a solution.
Which PIC parts have you ported to ? Were any code changes needed ?
Cheers,
Mikael
Mikael,
I have ported the code to PIC18FxxK20 series parts that are used on the PICKIT3 Debug Express board and then connected the PICKIT2 in the UART mode. Also ran it on various PIC18Fxxxx parts, mostly with different program memory sizes.
I found where you build the string in code and it looks like the length of the string is defined in the first byte. I'm not sure about the solution, can you give me more of a hint? Are you changing the PICTYPE value in the p18Fxxxx.cfg file so that the length is the same for all defined parts? I think that will work but I was thinking there must be a more flexible solution that will not need code changes for new parts.
I made a couple of small edits in words that put a lot of text out to the screen. I like for the cursor to always show up at the left so I added CR to WORDS, DUMP and COLD.
Regards,
Larry