I'm using PN2 to edit for Franklin C compiler (in the old days Keil sold it in USA under that name). I would like to post this to help others wanting to do the same.
The outputs from the compiler are:
*** WARNING 206 IN LINE 75 OF PCF8574.C: 'i2cstop': missing function-prototype
*** ERROR 141 IN LINE 81 OF PCF8574.C: syntax error near 'return'
I needed two parsing strings for these two differnt errors for the first line:
IN LINE %l OF %f: '
for the second line:
IN LINE %l OF %f:
In the end I created two tools with different parsing strings. If I cannot get a link
I recompile with the second tool.
Parsing to Franklin (Keil) compiler
(4 posts) (2 voices)-
Posted 4 years ago #
-
Are you able to work with franklin a51 files like this as well?
I would appreciate any info on how to do it if you can (either here or in my email daat99web at gmail dot com).Thanks in advanced
David AlonPosted 4 years ago # -
The a51 files will not work in the same way as the assembler does not does not output screen (DOS terms) instead it writes it to a file see samefilename.lst here is an example
14 CLRB EA ;interupts off
*** _________________________________^
*** _________________________________________________^
*** ERROR #46, LINE #14, UNDEFINED SYMBOL (PASS-2)
*** ERROR #7, LINE #14, DEFINITION STATEMENT EXPECTED
Note there no filename here I've worked out something for you
if you coding a particular file say my.a51 add this to the end of your batch file
type my.lst
The whole lst will appear in PN2 output screen
add a new tool My (catch asm) add this to parse section
LINE #%l,
As long as the a51 file is current in pn2 it will jump there.
Once you have debugged it rem out the statement in you bat file.
rem type my.lstI have just done and tested it. Thanks for the question.
Were there is a will there's family (or away)Posted 4 years ago # -
Thanks for your informative reply, I'll try to implement it later this week (or early next week) on my next a51 class ;)
Posted 4 years ago #
Reply
You must log in to post.