Rod, I'am trying to compile the LPC935-PROG on windows using Mingw but the popt.h file wasn't with Mingw. Was that file part of your linux distro? I tried downloading popt.h but I don't think it's the right version since it was missing the define for POPT_TABLEEND. I saw on the internet that it was: #define POPT_TABLEEND {NULL, '\0', 0, 0, 0, NULL, NULL }. I added this but I still get errors (linking?) that have something to do with popt.h. $ gcc lpc935-prog.c ser_win.c -o LPC935-PROG C:/DOCUME~1/JOHNMY~1/LOCALS~1/Temp/ccqobaaa.o(.text+0x5a):lpc935-prog.c: undefined reference to `poptGetContext' C:/DOCUME~1/JOHNMY~1/LOCALS~1/Temp/ccqobaaa.o(.text+0x70):lpc935-prog.c: undefined reference to `poptSetOtherOptionHelp' C:/DOCUME~1/JOHNMY~1/LOCALS~1/Temp/ccqobaaa.o(.text+0x95):lpc935-prog.c: undefined reference to `poptPrintUsage' C:/DOCUME~1/JOHNMY~1/LOCALS~1/Temp/ccqobaaa.o(.text+0xac):lpc935-prog.c: undefined reference to `poptGetNextOpt' C:/DOCUME~1/JOHNMY~1/LOCALS~1/Temp/ccqobaaa.o(.text+0x1a4):lpc935-prog.c: undefined reference to `poptGetArg' C:/DOCUME~1/JOHNMY~1/LOCALS~1/Temp/ccqobaaa.o(.text+0x1c9):lpc935-prog.c: undefined reference to `poptGetArg' C:/DOCUME~1/JOHNMY~1/LOCALS~1/Temp/ccqobaaa.o(.text+0x593):lpc935-prog.c: undefined reference to `poptPrintUsage' C:/DOCUME~1/JOHNMY~1/LOCALS~1/Temp/ccqobaaa.o(.text+0x62a):lpc935-prog.c: undefined reference to `nibble' C:/DOCUME~1/JOHNMY~1/LOCALS~1/Temp/ccqobaaa.o(.text+0x63f):lpc935-prog.c: undefined reference to `nibble' C:/DOCUME~1/JOHNMY~1/LOCALS~1/Temp/ccqobaaa.o(.text+0x6d1):lpc935-prog.c: undefined reference to `nibble' C:/DOCUME~1/JOHNMY~1/LOCALS~1/Temp/ccqobaaa.o(.text+0x7a9):lpc935-prog.c: undefined reference to `snintel_hex
LPC935-PROG compile errors
Started by ●January 31, 2006
Reply by ●February 1, 20062006-02-01
John, You are going to need popt for mingw I know when I did this I went to a lot of trouble to get this working. I ended up downloading popt and then making it compile to a linkable library (.a) for mingw. I beleive tha the front page for popt is: http://freshmeat.net/projects/popt I cannot find the source code I used to compile popt for mingw but I have put the libraries I linked my application to on my website at: http://www.teamboyce.co.uk/popt-libs-mingw.zip There will be no link to this on my website but this will allow you to download it. The latest version of this is on source forge at: http://sourceforge.net/projects/lpc935-prog I have not released a package for download but you can get the latest from CVS I have been using it for a while. My intention is to add the hardware design I use to program these micros at some point as well. Anyway I hope this helps you get this programmer working I have not tested it under windows for a long time so I have no idea what is going to work. But I do suggest you get the latest version I have changed the serial comms a bit to speed it up. Regards, Rod Boyce PS your command line is missing my intel hex routines you also need ihex.c on your command line as well. --- In lpc900_users@lpc9..., "john" <john.myers@p...> wrote: > > Rod, > > I'am trying to compile the LPC935-PROG on windows using Mingw > but the popt.h file wasn't with Mingw. Was that file part of your > linux distro? I tried downloading popt.h but I don't think it's the > right version since it was missing the define for POPT_TABLEEND. I saw > on the internet that it was: #define POPT_TABLEEND {NULL, '\0', 0, 0, > 0, NULL, NULL }. I added this but I still get errors (linking?) that > have something to do with popt.h. > > > $ gcc lpc935-prog.c ser_win.c -o LPC935-PROG >
Reply by ●February 2, 20062006-02-02
Rod,
I'am able to compile it now using that library. I also had to change a
few things to get it to compile.
1. Changed ' #ifdef WINDOWS ' to
' #if defined(WINDOWS) || defined(WIN32) ||defined(_WIN32) '
in 'serial.h' and 'lpc935-prog.c'
2. Changed a variable in 'ser_win.c' from zBytesRxd to zBytesRead to
match the other variables in that function.
I'am assuming it was just a typo since 'zBytesRxd' is the name
used in the same function in 'ser_linux.c'
Thanks,
John
--- In lpc900_users@lpc9..., "rodboyce70" <rodboyce70@...>
wrote:
>
> John,
>
> You are going to need popt for mingw I know when I did this I went to
> a lot of trouble to get this working. I ended up downloading popt and
> then making it compile to a linkable library (.a) for mingw.
>
> I beleive tha the front page for popt is:
> http://freshmeat.net/projects/popt
>
> I cannot find the source code I used to compile popt for mingw but I
> have put the libraries I linked my application to on my website at:
> http://www.teamboyce.co.uk/popt-libs-mingw.zip
>
> There will be no link to this on my website but this will allow you to
> download it.
>
> The latest version of this is on source forge at:
> http://sourceforge.net/projects/lpc935-prog
>
> I have not released a package for download but you can get the latest
> from CVS I have been using it for a while. My intention is to add the
> hardware design I use to program these micros at some point as well.
>
> Anyway I hope this helps you get this programmer working I have not
> tested it under windows for a long time so I have no idea what is
> going to work. But I do suggest you get the latest version I have
> changed the serial comms a bit to speed it up.
>
> Regards,
> Rod Boyce
>
> PS your command line is missing my intel hex routines you also need
> ihex.c on your command line as well.
>
> --- In lpc900_users@lpc9..., "john" <john.myers@p...>
wrote:
> >
> > Rod,
> >
> > I'am trying to compile the LPC935-PROG on windows using Mingw
> > but the popt.h file wasn't with Mingw. Was that file part of your
> > linux distro? I tried downloading popt.h but I don't think
it's the
> > right version since it was missing the define for POPT_TABLEEND. I saw
> > on the internet that it was: #define POPT_TABLEEND {NULL,
'\0', 0, 0,
> > 0, NULL, NULL }. I added this but I still get errors (linking?) that
> > have something to do with popt.h.
> >
> >
> > $ gcc lpc935-prog.c ser_win.c -o LPC935-PROG
> >
>
Reply by ●February 3, 20062006-02-03
Thank you John, Can you e-mail me a diff off-line or to this list and I will update source forge CVS with the changes. Let me know if you get it working as I will then make a release. Regards, Rod --- In lpc900_users@lpc9..., "john" <john.myers@...> wrote: > > Rod, > I'am able to compile it now using that library. I also had to change a > few things to get it to compile. > > 1. Changed ' #ifdef WINDOWS ' to > ' #if defined(WINDOWS) || defined(WIN32) ||defined(_WIN32) ' > in 'serial.h' and 'lpc935-prog.c' > 2. Changed a variable in 'ser_win.c' from zBytesRxd to zBytesRead to > match the other variables in that function. > I'am assuming it was just a typo since 'zBytesRxd' is the name > used in the same function in 'ser_linux.c' > > > Thanks, > John > > > --- In lpc900_users@lpc9..., "rodboyce70" <rodboyce70@> wrote: > > > > John, > > > > You are going to need popt for mingw I know when I did this I went to > > a lot of trouble to get this working. I ended up downloading popt and > > then making it compile to a linkable library (.a) for mingw. > > > > I beleive tha the front page for popt is: > > http://freshmeat.net/projects/popt > > > > I cannot find the source code I used to compile popt for mingw but I > > have put the libraries I linked my application to on my website at: > > http://www.teamboyce.co.uk/popt-libs-mingw.zip > > > > There will be no link to this on my website but this will allow you to > > download it. > > > > The latest version of this is on source forge at: > > http://sourceforge.net/projects/lpc935-prog > > > > I have not released a package for download but you can get the latest > > from CVS I have been using it for a while. My intention is to add the > > hardware design I use to program these micros at some point as well. > > > > Anyway I hope this helps you get this programmer working I have not > > tested it under windows for a long time so I have no idea what is > > going to work. But I do suggest you get the latest version I have > > changed the serial comms a bit to speed it up. > > > > Regards, > > Rod Boyce > > > > PS your command line is missing my intel hex routines you also need > > ihex.c on your command line as well. > > > > --- In lpc900_users@lpc9..., "john" <john.myers@p...> wrote: > > > > > > Rod, > > > > > > I'am trying to compile the LPC935-PROG on windows using Mingw > > > but the popt.h file wasn't with Mingw. Was that file part of your > > > linux distro? I tried downloading popt.h but I don't think it's the > > > right version since it was missing the define for POPT_TABLEEND. I saw > > > on the internet that it was: #define POPT_TABLEEND {NULL, '\0', 0, 0, > > > 0, NULL, NULL }. I added this but I still get errors (linking?) that > > > have something to do with popt.h. > > > > > > > > > $ gcc lpc935-prog.c ser_win.c -o LPC935-PROG > > > > > >
Reply by ●February 4, 20062006-02-04
I put the files in a temp directory in the Files section of the group. I'll try the program out next week and let you know if I get it working. --- In lpc900_users@lpc9..., "rodboyce70" <rodboyce70@...> wrote: > > Thank you John, > > Can you e-mail me a diff off-line or to this list and I will update > source forge CVS with the changes. Let me know if you get it working > as I will then make a release. > > Regards, > Rod > > --- In lpc900_users@lpc9..., "john" <john.myers@> wrote: > > > > Rod, > > I'am able to compile it now using that library. I also had to change a > > few things to get it to compile. > > > > 1. Changed ' #ifdef WINDOWS ' to > > ' #if defined(WINDOWS) || defined(WIN32) ||defined(_WIN32) ' > > in 'serial.h' and 'lpc935-prog.c' > > 2. Changed a variable in 'ser_win.c' from zBytesRxd to zBytesRead to > > match the other variables in that function. > > I'am assuming it was just a typo since 'zBytesRxd' is the name > > used in the same function in 'ser_linux.c' > > > > > > Thanks, > > John > > > > > > --- In lpc900_users@lpc9..., "rodboyce70" <rodboyce70@> wrote: > > > > > > John, > > > > > > You are going to need popt for mingw I know when I did this I went to > > > a lot of trouble to get this working. I ended up downloading popt and > > > then making it compile to a linkable library (.a) for mingw. > > > > > > I beleive tha the front page for popt is: > > > http://freshmeat.net/projects/popt > > > > > > I cannot find the source code I used to compile popt for mingw but I > > > have put the libraries I linked my application to on my website at: > > > http://www.teamboyce.co.uk/popt-libs-mingw.zip > > > > > > There will be no link to this on my website but this will allow you to > > > download it. > > > > > > The latest version of this is on source forge at: > > > http://sourceforge.net/projects/lpc935-prog > > > > > > I have not released a package for download but you can get the latest > > > from CVS I have been using it for a while. My intention is to add the > > > hardware design I use to program these micros at some point as well. > > > > > > Anyway I hope this helps you get this programmer working I have not > > > tested it under windows for a long time so I have no idea what is > > > going to work. But I do suggest you get the latest version I have > > > changed the serial comms a bit to speed it up. > > > > > > Regards, > > > Rod Boyce > > > > > > PS your command line is missing my intel hex routines you also need > > > ihex.c on your command line as well. > > > > > > --- In lpc900_users@lpc9..., "john" <john.myers@p...> wrote: > > > > > > > > Rod, > > > > > > > > I'am trying to compile the LPC935-PROG on windows using Mingw > > > > but the popt.h file wasn't with Mingw. Was that file part of your > > > > linux distro? I tried downloading popt.h but I don't think it's the > > > > right version since it was missing the define for POPT_TABLEEND. > I saw > > > > on the internet that it was: #define POPT_TABLEEND {NULL, '\0', > 0, 0, > > > > 0, NULL, NULL }. I added this but I still get errors (linking?) that > > > > have something to do with popt.h. > > > > > > > > > > > > $ gcc lpc935-prog.c ser_win.c -o LPC935-PROG > > > > > > > > > >