LG8F328P mini EVB 5V Arduino Nano replacement development board - HCDVBD0038

Forum for posting topics and questions about anything.
RetroBoy
Posts: 64
Joined: Sat Feb 26, 2022 11:29 am
Location: U.K.

LG8F328P mini EVB 5V Arduino Nano replacement development board - HCDVBD0038

Post by RetroBoy » Tue May 31, 2022 12:16 pm

Hi All,

I wish to ask what some may call a 'Stupid' Question concerning the above Board --- so here goes.

I use IDE v:1.0.6 ( Personall choice, as I run WinXP SP3 ), however I have faced a number of issues with Elegoo Nano Boards purchased recently ( the situation is 'on-going' ).

Basically Elegoo have 'Updated' the Bootloader as there were issues with the 'Watchdog' under their old Bootloader, however the NEW Bootloader will not run under v:1.0.6. So my question is will this board HCDVBD0038 run the Bootloader under IDE v:1.0.6.

I really do not want to make a purchase and get the same error as with the new Elegoo Nano Boards.

( For info the Elegoo Nano error is :--- avrdude: stk500_getsync(): not in sync: resp=0x00 --- Elegoo say I need to update the Board Drives but they do not run on v:1.0.6 ? Round in circles )

Any help regarding the HCDVBD0038 Bootloader will be very much appreciated.

andrew
Site Admin
Posts: 1276
Joined: Sun Aug 05, 2012 4:15 pm

Re: LG8F328P mini EVB 5V Arduino Nano replacement development board - HCDVBD0038

Post by andrew » Wed Jun 01, 2022 7:59 am

I use IDE v:1.0.6 ( Personall choice, as I run WinXP SP3 ),
Basically Elegoo have 'Updated' the Bootloader as there were issues with the 'Watchdog' under their old Bootloader, however the NEW Bootloader will not run under v:1.0.6. So my question is will this board HCDVBD0038 run the Bootloader under IDE v:1.0.6.
I doubt very much it will work with 1.0.6 as there's simply too many changes that have been made to the IDE since that version. Your biggest problem is that it doesn't have the board manager so adding board support for it to the IDE is going to be very difficult.

Is there any reason why you can't run a newer version of the IDE? I've not tested it myself but 1.8.9 is supposed to be the latest version reported to work with XP and that version includes the board manager. Also if you download the zip version instead of the installer it will run alongside your current 1.0.6 install. Here is a direct link to the zip version:

https://downloads.arduino.cc/arduino-1.8.9-windows.zip
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

RetroBoy
Posts: 64
Joined: Sat Feb 26, 2022 11:29 am
Location: U.K.

Re: LG8F328P mini EVB 5V Arduino Nano replacement development board - HCDVBD0038

Post by RetroBoy » Thu Jun 16, 2022 6:53 pm

Hi,
Where do I start ? OK:-

i) Got IDE v1.8.9 onto the PC ... works but V.SLOW.
ii) I say it works, compiles everything that comes with 1.8.9, but throws verify/compile errors on everything I've done in 1.0.6.
ERRORS are so many and stupid I cannot believe it. The only way I can get anything to compile is to Cut'n'Paste code into a new FOO.ino ( even when FOO is the same original name -STUPID ).
iii) Everytime I use an #include I have to re-import the file into the 1.8.9 structure. Which when I use the v1.0.6 throws errors for multiple definitions. I'm what you might call V.CONFUSED. My job was a Analyst/Programmer ( VAXBASIC, etc ) but this is completely defeating me.
iv) No problem, I keep on trying.

Thanks for the responce and advice.

andrew
Site Admin
Posts: 1276
Joined: Sun Aug 05, 2012 4:15 pm

Re: LG8F328P mini EVB 5V Arduino Nano replacement development board - HCDVBD0038

Post by andrew » Fri Jun 17, 2022 8:57 am

ii) I say it works, compiles everything that comes with 1.8.9, but throws verify/compile errors on everything I've done in 1.0.6.
Ok well, if it’s running things like the basic blink sketch then that’s a good starting point. Any errors from that point are likely to do with library and sketch compatibility errors.


ERRORS are so many and stupid I cannot believe it.
This may or may not be as bad as it seems, you only need one error in c++ to create a cascade of other errors. Alway look at the first reported error in the list.


iii) Everytime I use an #include I have to re-import the file into the 1.8.9 structure. Which when I use the v1.0.6 throws errors for multiple definitions
I’ve never used any version of the IDE with XP but I assume it will be the same as later versions of Windows…

All libraries should be placed in your Documents/Arduino/Libraries/ folder. They should each be in their own folder within the Libraries folder and most importantly, there should only ever be one copy of a library inside the libraries folder or any sub folder. Multiple copies of the same library will cause the IDE to report errors even if your sketch isn’t using that library.

I would first suggest having a look through the libraries folder to see if you have any multiple copies of the same library.

Failing that, another slightly more extreme option would be to make a backup copy of your libraries folder, then remove all the libraries and then add them back one by one as you need them. It may help you to pin down which ones are causing problems.


but this is completely defeating me.
iv) No problem, I keep on trying.
If you’re still having issues you can always paste some of the errors you're seeing and I’ll have a look. Maybe I’ll be able to spot a clue.


My job was a Analyst/Programmer ( VAXBASIC, etc )
First place I worked for in the beginning of the 90’s was still using a VAX (can’t remove which model) that ran all the stock control and ordering system in BASIC. As I knew BASIC one of my jobs was going to be to transfer it over to run on a PC. It would have been an interesting learning experience but that job never went ahead for various reasons.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

RetroBoy
Posts: 64
Joined: Sat Feb 26, 2022 11:29 am
Location: U.K.

Re: LG8F328P mini EVB 5V Arduino Nano replacement development board - HCDVBD0038

Post by RetroBoy » Fri Jun 17, 2022 7:58 pm

Thanks for the responce, I'll give it a go.

I know this is not the place, but as you know of the VAX a brief insight to my previous life.
My main role was STATISTICS SOFTWARE - you either love maths or hate it ( you can guess my preference, and it took me to so many Countries in the World - nearest France, furthest H.Kong ).
So the company I worked for was asked to come up with a solution to a problem, which involved Stats - in part.
Take the Orders from a VAX SYSTEM, pass it to a NETWARE4.11 SYSTEM, let a user running WINXP grab that data, update a WIN2000 system for the factory to process, get the WIN2000 data back to the NETWARE4.11, and grab it onto the VAX to update the Orders and finally Print an invoice whereby the STATS would be updated to respect the ORDER ( PHEW - I think that's succint enough ). Not really a STATS JOB but heyho.
The hardest part was waiting for the 'other' company, who wrote the WIN2000 Factory system, to get their act into gear. I'd already created a DOS PARTITION on the VAX, pushing/pulling data to/from the NW4.11 system, all they had to do was get the data onto the 4.11 in a CSV FORMAT for me to work with ( days turned to weeks, weeks turned to - another plane ticket being put on my desk -------- OK ENOUGH SAID). I had to go and tell their Software guys how to do it.
Strangely enough, WIN2000, as with most if not all WIN OS cannot 'multi-task/function'; writing the data to 4.11 meant they could not write it to a CSV, don't ask I do not know.
Just wish I could work with VAXBASIC on the ARDUINO; TRUE FUNCTIONS, TRUE, DOUBLES, TRUE FLOATS, No MEMORY Issues, etc, and True Multi-tasking --- BLISS.

Maybe you could/should cut'n'paste this to your 'private' eMail and not leave it here.

I have posted a new issue to do with MEMORY if you get chance would you take a look.

andrew
Site Admin
Posts: 1276
Joined: Sun Aug 05, 2012 4:15 pm

Re: LG8F328P mini EVB 5V Arduino Nano replacement development board - HCDVBD0038

Post by andrew » Mon Jun 20, 2022 9:09 am

Take the Orders from a VAX SYSTEM, pass it to a NETWARE4.11 SYSTEM, let a user running WINXP grab that data, update a WIN2000 system for the factory...
It's amazing think businesses where still using these systems that recently. They wanted me to look at porting the software as they where terrified it was doing to die at some point and they'd be left with no stock control. No idea what they did about it as I left that place in the late 90's.

Maybe you could/should cut'n'paste this to your 'private' eMail and not leave it here.
Nothing is off topic in the general discussions section but I can remove it from here if you like.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

RetroBoy
Posts: 64
Joined: Sat Feb 26, 2022 11:29 am
Location: U.K.

Re: LG8F328P mini EVB 5V Arduino Nano replacement development board - HCDVBD0038

Post by RetroBoy » Sat Aug 06, 2022 3:21 pm

Good Afternoon Andrew,

I received the following ERROR ... don't know if it's Good or Bad. This sketch, NMEA.ino, is the 1st sketch in the NeoGPS Examples ( from NeoGPS-4.2.9 Library ). Simply trying to get more space, and time improvements, compared to TinyGPS++. I would add that All the sketchs' verify OK using a NANO.
Arduino: 1.8.9 (Windows XP), Board: "LGT8F328, Default (64), Internal, 32 MHz, 328P-LQFP32 (e.g. MiniEVB nano-style and WAVGAT)"

C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\arduino-builder -dump-prefs -logger=machine -hardware C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\hardware -hardware C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages -tools C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\tools-builder -tools C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\hardware\tools\avr -tools C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages -built-in-libraries C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries -libraries C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries -fqbn=LGT8fx Boards:avr:328:arduino_isp=disable,clock_source=internal,clock=32MHz,variant=modelP -vid-pid=04D9_B534 -ide-version=10809 -build-path C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_build_15399 -warnings=default -build-cache C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_cache_100254 -prefs=build.warn_data_percentage=75 -verbose C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\NeoGPS-4.2.9\examples\NMEA\NMEA.ino
C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\arduino-builder -compile -logger=machine -hardware C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\hardware -hardware C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages -tools C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\tools-builder -tools C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\hardware\tools\avr -tools C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages -built-in-libraries C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries -libraries C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries -fqbn=LGT8fx Boards:avr:328:arduino_isp=disable,clock_source=internal,clock=32MHz,variant=modelP -vid-pid=04D9_B534 -ide-version=10809 -build-path C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_build_15399 -warnings=default -build-cache C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_cache_100254 -prefs=build.warn_data_percentage=75 -verbose C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\NeoGPS-4.2.9\examples\NMEA\NMEA.ino
Using board '328' from platform in folder: C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages\LGT8fx Boards\hardware\avr\1.0.6
Using core 'lgt8f' from platform in folder: C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages\LGT8fx Boards\hardware\avr\1.0.6
Detecting libraries used...
"C:\\Documents and Settings\\Pc-User\\My Documents\\arduino-1.8.9\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DSERIAL_RX_BUFFER_SIZE=64 -DCLOCK_SOURCE=1 -DF_CPU=32000000L -DARDUINO=10809 -DARDUINO_AVR_LARDU_328E -DARDUINO_ARCH_AVR "-IC:\\Documents and Settings\\Pc-User\\Local Settings\\Application Data\\Arduino15\\packages\\LGT8fx Boards\\hardware\\avr\\1.0.6\\cores\\lgt8f" "-IC:\\Documents and Settings\\Pc-User\\Local Settings\\Application Data\\Arduino15\\packages\\LGT8fx Boards\\hardware\\avr\\1.0.6\\variants\\lgt8fx8p" "C:\\DOCUME~1\\Pc-User\\LOCALS~1\\Temp\\arduino_build_15399\\sketch\\NMEA.ino.cpp" -o nul
"C:\\Documents and Settings\\Pc-User\\My Documents\\arduino-1.8.9\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DSERIAL_RX_BUFFER_SIZE=64 -DCLOCK_SOURCE=1 -DF_CPU=32000000L -DARDUINO=10809 -DARDUINO_AVR_LARDU_328E -DARDUINO_ARCH_AVR "-IC:\\Documents and Settings\\Pc-User\\Local Settings\\Application Data\\Arduino15\\packages\\LGT8fx Boards\\hardware\\avr\\1.0.6\\cores\\lgt8f" "-IC:\\Documents and Settings\\Pc-User\\Local Settings\\Application Data\\Arduino15\\packages\\LGT8fx Boards\\hardware\\avr\\1.0.6\\variants\\lgt8fx8p" "-IC:\\Documents and Settings\\Pc-User\\My Documents\\arduino-1.8.9\\libraries\\libraries\\libraries\\NeoGPS-4.2.9\\src" "C:\\DOCUME~1\\Pc-User\\LOCALS~1\\Temp\\arduino_build_15399\\sketch\\NMEA.ino.cpp" -o nul
Using cached library dependencies for file: C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\NeoGPS-4.2.9\src\DMS.cpp
Using cached library dependencies for file: C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\NeoGPS-4.2.9\src\GPSTime.cpp
Using cached library dependencies for file: C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\NeoGPS-4.2.9\src\Garmin\GrmNMEA.cpp
Using cached library dependencies for file: C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\NeoGPS-4.2.9\src\Location.cpp
Using cached library dependencies for file: C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\NeoGPS-4.2.9\src\NMEAGPS.cpp
Using cached library dependencies for file: C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\NeoGPS-4.2.9\src\NeoTime.cpp
Using cached library dependencies for file: C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\NeoGPS-4.2.9\src\Streamers.cpp
Using cached library dependencies for file: C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\NeoGPS-4.2.9\src\ublox\ubxGPS.cpp
Using cached library dependencies for file: C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\NeoGPS-4.2.9\src\ublox\ubxNMEA.cpp
Using cached library dependencies for file: C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\NeoGPS-4.2.9\src\ublox\ubxmsg.cpp
Generating function prototypes...
"C:\\Documents and Settings\\Pc-User\\My Documents\\arduino-1.8.9\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DSERIAL_RX_BUFFER_SIZE=64 -DCLOCK_SOURCE=1 -DF_CPU=32000000L -DARDUINO=10809 -DARDUINO_AVR_LARDU_328E -DARDUINO_ARCH_AVR "-IC:\\Documents and Settings\\Pc-User\\Local Settings\\Application Data\\Arduino15\\packages\\LGT8fx Boards\\hardware\\avr\\1.0.6\\cores\\lgt8f" "-IC:\\Documents and Settings\\Pc-User\\Local Settings\\Application Data\\Arduino15\\packages\\LGT8fx Boards\\hardware\\avr\\1.0.6\\variants\\lgt8fx8p" "-IC:\\Documents and Settings\\Pc-User\\My Documents\\arduino-1.8.9\\libraries\\libraries\\libraries\\NeoGPS-4.2.9\\src" "C:\\DOCUME~1\\Pc-User\\LOCALS~1\\Temp\\arduino_build_15399\\sketch\\NMEA.ino.cpp" -o "C:\\DOCUME~1\\Pc-User\\LOCALS~1\\Temp\\arduino_build_15399\\preproc\\ctags_target_for_gcc_minus_e.cpp"
"C:\\Documents and Settings\\Pc-User\\My Documents\\arduino-1.8.9\\tools-builder\\ctags\\5.8-arduino11/ctags" -u --language-force=c++ -f - --c++-kinds=svpf --fields=KSTtzns --line-directives "C:\\DOCUME~1\\Pc-User\\LOCALS~1\\Temp\\arduino_build_15399\\preproc\\ctags_target_for_gcc_minus_e.cpp"
Compiling sketch...
"C:\\Documents and Settings\\Pc-User\\My Documents\\arduino-1.8.9\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DSERIAL_RX_BUFFER_SIZE=64 -DCLOCK_SOURCE=1 -DF_CPU=32000000L -DARDUINO=10809 -DARDUINO_AVR_LARDU_328E -DARDUINO_ARCH_AVR "-IC:\\Documents and Settings\\Pc-User\\Local Settings\\Application Data\\Arduino15\\packages\\LGT8fx Boards\\hardware\\avr\\1.0.6\\cores\\lgt8f" "-IC:\\Documents and Settings\\Pc-User\\Local Settings\\Application Data\\Arduino15\\packages\\LGT8fx Boards\\hardware\\avr\\1.0.6\\variants\\lgt8fx8p" "-IC:\\Documents and Settings\\Pc-User\\My Documents\\arduino-1.8.9\\libraries\\libraries\\libraries\\NeoGPS-4.2.9\\src" "C:\\DOCUME~1\\Pc-User\\LOCALS~1\\Temp\\arduino_build_15399\\sketch\\NMEA.ino.cpp" -o "C:\\DOCUME~1\\Pc-User\\LOCALS~1\\Temp\\arduino_build_15399\\sketch\\NMEA.ino.cpp.o"
Compiling libraries...
Compiling library "NeoGPS-4.2.9"
Using previously compiled file: C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_build_15399\libraries\NeoGPS-4.2.9\GPSTime.cpp.o
Using previously compiled file: C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_build_15399\libraries\NeoGPS-4.2.9\DMS.cpp.o
Using previously compiled file: C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_build_15399\libraries\NeoGPS-4.2.9\Location.cpp.o
Using previously compiled file: C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_build_15399\libraries\NeoGPS-4.2.9\NMEAGPS.cpp.o
Using previously compiled file: C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_build_15399\libraries\NeoGPS-4.2.9\NeoTime.cpp.o
Using previously compiled file: C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_build_15399\libraries\NeoGPS-4.2.9\Streamers.cpp.o
Using previously compiled file: C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_build_15399\libraries\NeoGPS-4.2.9\Garmin\GrmNMEA.cpp.o
Using previously compiled file: C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_build_15399\libraries\NeoGPS-4.2.9\ublox\ubxNMEA.cpp.o
Using previously compiled file: C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_build_15399\libraries\NeoGPS-4.2.9\ublox\ubxGPS.cpp.o
Using previously compiled file: C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_build_15399\libraries\NeoGPS-4.2.9\ublox\ubxmsg.cpp.o
Compiling core...

Using precompiled core: C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_cache_100254\core\core_d58b9d500b3d1324be972048e049414b.a

Linking everything together...
"C:\\Documents and Settings\\Pc-User\\My Documents\\arduino-1.8.9\\hardware\\tools\\avr/bin/avr-gcc" -Os -g -flto -fuse-linker-plugin -Wl,--gc-sections -mmcu=atmega328p -o
"C:\\DOCUME~1\\Pc-User\\LOCALS~1\\Temp\\arduino_build_15399/NMEA.ino.elf"
"C:\\DOCUME~1\\Pc-User\\LOCALS~1\\Temp\\arduino_build_15399\\sketch\\NMEA.ino.cpp.o"
"C:\\DOCUME~1\\Pc-User\\LOCALS~1\\Temp\\arduino_build_15399\\libraries\\NeoGPS-4.2.9\\DMS.cpp.o"
"C:\\DOCUME~1\\Pc-User\\LOCALS~1\\Temp\\arduino_build_15399\\libraries\\NeoGPS-4.2.9\\GPSTime.cpp.o"
"C:\\DOCUME~1\\Pc-User\\LOCALS~1\\Temp\\arduino_build_15399\\libraries\\NeoGPS-4.2.9\\Garmin\\GrmNMEA.cpp.o"
"C:\\DOCUME~1\\Pc-User\\LOCALS~1\\Temp\\arduino_build_15399\\libraries\\NeoGPS-4.2.9\\Location.cpp.o"
"C:\\DOCUME~1\\Pc-User\\LOCALS~1\\Temp\\arduino_build_15399\\libraries\\NeoGPS-4.2.9\\NMEAGPS.cpp.o"
"C:\\DOCUME~1\\Pc-User\\LOCALS~1\\Temp\\arduino_build_15399\\libraries\\NeoGPS-4.2.9\\NeoTime.cpp.o"
"C:\\DOCUME~1\\Pc-User\\LOCALS~1\\Temp\\arduino_build_15399\\libraries\\NeoGPS-4.2.9\\Streamers.cpp.o"
"C:\\DOCUME~1\\Pc-User\\LOCALS~1\\Temp\\arduino_build_15399\\libraries\\NeoGPS-4.2.9\\ublox\\ubxGPS.cpp.o"
"C:\\DOCUME~1\\Pc-User\\LOCALS~1\\Temp\\arduino_build_15399\\libraries\\NeoGPS-4.2.9\\ublox\\ubxNMEA.cpp.o"
"C:\\DOCUME~1\\Pc-User\\LOCALS~1\\Temp\\arduino_build_15399\\libraries\\NeoGPS-4.2.9\\ublox\\ubxmsg.cpp.o"
"C:\\DOCUME~1\\Pc-User\\LOCALS~1\\Temp\\arduino_build_15399/..\\arduino_cache_100254\\core\\core_d58b9d500b3d1324be972048e049414b.a"
"-LC:\\DOCUME~1\\Pc-User\\LOCALS~1\\Temp\\arduino_build_15399" -lm

C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages\LGT8fx Boards\hardware\avr\1.0.6\cores\lgt8f\Print.h: In member function 'availableForWrite':

C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages\LGT8fx Boards\hardware\avr\1.0.6\cores\lgt8f\Print.h:63:49: internal compiler error: Segmentation fault

virtual int availableForWrite() { return 0; }

^

Please submit a full bug report,

with preprocessed source if appropriate.

See <http://gcc.gnu.org/bugs.html> for instructions.

lto-wrapper.exe: fatal error: C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\hardware\tools\avr/bin/avr-gcc returned 1 exit status

compilation terminated.

c:/documents and settings/pc-user/my documents/arduino-1.8.9/hardware/tools/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed

collect2.exe: error: ld returned 1 exit status

Using library NeoGPS-4.2.9 at version 4.2.9 in folder: C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\NeoGPS-4.2.9
exit status 1
Error compiling for board LGT8F328.
NOTE: The Carat SB pointing to the ';' in { return 0; }

The NeoGPS library came from the link on Arduino.cc website ( sent me to Github ).

Is it Me, the LG Board, or simply that LG Boards do not like 32bit OS Systems?

Regards S.

andrew
Site Admin
Posts: 1276
Joined: Sun Aug 05, 2012 4:15 pm

Re: LG8F328P mini EVB 5V Arduino Nano replacement development board - HCDVBD0038

Post by andrew » Sun Aug 07, 2022 8:37 am

internal compiler error: Segmentation fault

I’ve seen the segmentation fault error occur when compiling sketches that are perfectly fine and for some weird reason just compiling the code again fixes the problem.

Have you tried just compiling it again? Failing that, if you give the link to the library your using I’ll check to see if I can replicate the error.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

RetroBoy
Posts: 64
Joined: Sat Feb 26, 2022 11:29 am
Location: U.K.

Re: LG8F328P mini EVB 5V Arduino Nano replacement development board - HCDVBD0038

Post by RetroBoy » Mon Aug 08, 2022 8:47 pm

Hi Andrew,

You know I'm beginning to think I'm jinxed! So, once again, I re-ran Verify GREAT it now loads OK. BUT ...

I have added the HCMatrixKeypad Library in readiness for my last Order ... guess what
Arduino: 1.8.9 (Windows XP), Board: "LGT8F328, Default (64), Internal, 32 MHz, 328P-LQFP32 (e.g. MiniEVB nano-style and WAVGAT)"

C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_modified_sketch_720876\Relay_Control.ino:66:0: warning: "C1" redefined

#define C1 2 /* DIO for keypad column 1 */

^

In file included from C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages\LGT8fx Boards\hardware\avr\1.0.6\variants\lgt8fx8p/pins_arduino.h:36:0,

from C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages\LGT8fx Boards\hardware\avr\1.0.6\cores\lgt8f/Arduino.h:267,

from sketch\Relay_Control.ino.cpp:1:

c:\documents and settings\pc-user\local settings\application data\arduino15\packages\lgt8fx boards\hardware\avr\1.0.6\variants\standard\pins_arduino.h:120:0: note: this is the location of the previous definition

#define C1 15

^

C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_modified_sketch_720876\Relay_Control.ino:67:0: warning: "C2" redefined

#define C2 3 /* DIO for keypad column 2 */

^

In file included from C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages\LGT8fx Boards\hardware\avr\1.0.6\variants\lgt8fx8p/pins_arduino.h:36:0,

from C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages\LGT8fx Boards\hardware\avr\1.0.6\cores\lgt8f/Arduino.h:267,

from sketch\Relay_Control.ino.cpp:1:

c:\documents and settings\pc-user\local settings\application data\arduino15\packages\lgt8fx boards\hardware\avr\1.0.6\variants\standard\pins_arduino.h:121:0: note: this is the location of the previous definition

#define C2 16

^

C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_modified_sketch_720876\Relay_Control.ino:68:0: warning: "C3" redefined

#define C3 4 /* DIO for keypad column 3 */

^

In file included from C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages\LGT8fx Boards\hardware\avr\1.0.6\variants\lgt8fx8p/pins_arduino.h:36:0,

from C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages\LGT8fx Boards\hardware\avr\1.0.6\cores\lgt8f/Arduino.h:267,

from sketch\Relay_Control.ino.cpp:1:

c:\documents and settings\pc-user\local settings\application data\arduino15\packages\lgt8fx boards\hardware\avr\1.0.6\variants\standard\pins_arduino.h:122:0: note: this is the location of the previous definition

#define C3 17

^

C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_modified_sketch_720876\Relay_Control.ino:69:0: warning: "C4" redefined

#define C4 5 /* DIO for keypad column 4. */

^

In file included from C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages\LGT8fx Boards\hardware\avr\1.0.6\variants\lgt8fx8p/pins_arduino.h:36:0,

from C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages\LGT8fx Boards\hardware\avr\1.0.6\cores\lgt8f/Arduino.h:267,

from sketch\Relay_Control.ino.cpp:1:

c:\documents and settings\pc-user\local settings\application data\arduino15\packages\lgt8fx boards\hardware\avr\1.0.6\variants\standard\pins_arduino.h:123:0: note: this is the location of the previous definition

#define C4 18

^

C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_modified_sketch_720876\Relay_Control.ino:70:0: warning: "C5" redefined

#define C5 6 /* DIO for keypad column 5. */

^

In file included from C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages\LGT8fx Boards\hardware\avr\1.0.6\variants\lgt8fx8p/pins_arduino.h:36:0,

from C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages\LGT8fx Boards\hardware\avr\1.0.6\cores\lgt8f/Arduino.h:267,

from sketch\Relay_Control.ino.cpp:1:

c:\documents and settings\pc-user\local settings\application data\arduino15\packages\lgt8fx boards\hardware\avr\1.0.6\variants\standard\pins_arduino.h:124:0: note: this is the location of the previous definition

#define C5 19

^

c:\documents and settings\pc-user\local settings\application data\arduino15\packages\lgt8fx boards\hardware\avr\1.0.6\variants\standard\pins_arduino.h:120:12: error: expected ',' or '...' before numeric constant

#define C1 15

^

C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\HCMatrixKeypad/HCMatrixKeypad.h:44:38: note: in expansion of macro 'C1'

HCMatrixKeypad(byte Debounce, byte C1, byte C2, byte C3, byte C4, char Row_Marker,

^

c:\documents and settings\pc-user\local settings\application data\arduino15\packages\lgt8fx boards\hardware\avr\1.0.6\variants\standard\pins_arduino.h:120:12: error: expected ',' or '...' before numeric constant

#define C1 15

^

C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\HCMatrixKeypad/HCMatrixKeypad.h:48:38: note: in expansion of macro 'C1'

HCMatrixKeypad(byte Debounce, byte C1, byte C2, byte C3, byte C4, char Row_Marker,

^

In file included from C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_modified_sketch_720876\Relay_Control.ino:48:0:

C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\HCMatrixKeypad/HCMatrixKeypad.h:48:3: error: 'HCMatrixKeypad::HCMatrixKeypad(byte, byte)' cannot be overloaded

HCMatrixKeypad(byte Debounce, byte C1, byte C2, byte C3, byte C4, char Row_Marker,

^

C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\HCMatrixKeypad/HCMatrixKeypad.h:44:3: error: with 'HCMatrixKeypad::HCMatrixKeypad(byte, byte)'

HCMatrixKeypad(byte Debounce, byte C1, byte C2, byte C3, byte C4, char Row_Marker,

^

In file included from C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages\LGT8fx Boards\hardware\avr\1.0.6\variants\lgt8fx8p/pins_arduino.h:36:0,

from C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages\LGT8fx Boards\hardware\avr\1.0.6\cores\lgt8f/Arduino.h:267,

from sketch\Relay_Control.ino.cpp:1:

c:\documents and settings\pc-user\local settings\application data\arduino15\packages\lgt8fx boards\hardware\avr\1.0.6\variants\standard\pins_arduino.h:120:12: error: expected ',' or '...' before numeric constant

#define C1 15

^

C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\HCMatrixKeypad/HCMatrixKeypad.h:52:38: note: in expansion of macro 'C1'

HCMatrixKeypad(byte Debounce, byte C1, byte C2, byte C3, char Row_Marker,

^

In file included from C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_modified_sketch_720876\Relay_Control.ino:48:0:

C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\HCMatrixKeypad/HCMatrixKeypad.h:52:3: error: 'HCMatrixKeypad::HCMatrixKeypad(byte, byte)' cannot be overloaded

HCMatrixKeypad(byte Debounce, byte C1, byte C2, byte C3, char Row_Marker,

^

C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\HCMatrixKeypad/HCMatrixKeypad.h:44:3: error: with 'HCMatrixKeypad::HCMatrixKeypad(byte, byte)'

HCMatrixKeypad(byte Debounce, byte C1, byte C2, byte C3, byte C4, char Row_Marker,

^

In file included from C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages\LGT8fx Boards\hardware\avr\1.0.6\variants\lgt8fx8p/pins_arduino.h:36:0,

from C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages\LGT8fx Boards\hardware\avr\1.0.6\cores\lgt8f/Arduino.h:267,

from sketch\Relay_Control.ino.cpp:1:

c:\documents and settings\pc-user\local settings\application data\arduino15\packages\lgt8fx boards\hardware\avr\1.0.6\variants\standard\pins_arduino.h:120:12: error: expected ',' or '...' before numeric constant

#define C1 15

^

C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\HCMatrixKeypad/HCMatrixKeypad.h:56:38: note: in expansion of macro 'C1'

HCMatrixKeypad(byte Debounce, byte C1, byte C2, byte C3, byte C4, byte C5, byte C6, char Row_Marker,

^

In file included from C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_modified_sketch_720876\Relay_Control.ino:48:0:

C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\HCMatrixKeypad/HCMatrixKeypad.h:56:3: error: 'HCMatrixKeypad::HCMatrixKeypad(byte, byte)' cannot be overloaded

HCMatrixKeypad(byte Debounce, byte C1, byte C2, byte C3, byte C4, byte C5, byte C6, char Row_Marker,

^

C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\HCMatrixKeypad/HCMatrixKeypad.h:44:3: error: with 'HCMatrixKeypad::HCMatrixKeypad(byte, byte)'

HCMatrixKeypad(byte Debounce, byte C1, byte C2, byte C3, byte C4, char Row_Marker,

^

In file included from C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages\LGT8fx Boards\hardware\avr\1.0.6\variants\lgt8fx8p/pins_arduino.h:36:0,

from C:\Documents and Settings\Pc-User\Local Settings\Application Data\Arduino15\packages\LGT8fx Boards\hardware\avr\1.0.6\cores\lgt8f/Arduino.h:267,

from sketch\Relay_Control.ino.cpp:1:

c:\documents and settings\pc-user\local settings\application data\arduino15\packages\lgt8fx boards\hardware\avr\1.0.6\variants\standard\pins_arduino.h:120:12: error: expected ',' or '...' before numeric constant

#define C1 15

^

C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\HCMatrixKeypad/HCMatrixKeypad.h:60:38: note: in expansion of macro 'C1'

HCMatrixKeypad(byte Debounce, byte C1, byte C2, byte C3, byte C4, char Row_Marker,

^

In file included from C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_modified_sketch_720876\Relay_Control.ino:48:0:

C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\HCMatrixKeypad/HCMatrixKeypad.h:60:3: error: 'HCMatrixKeypad::HCMatrixKeypad(byte, byte)' cannot be overloaded

HCMatrixKeypad(byte Debounce, byte C1, byte C2, byte C3, byte C4, char Row_Marker,

^

C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\HCMatrixKeypad/HCMatrixKeypad.h:44:3: error: with 'HCMatrixKeypad::HCMatrixKeypad(byte, byte)'

HCMatrixKeypad(byte Debounce, byte C1, byte C2, byte C3, byte C4, char Row_Marker,

^

Relay_Control:75:70: error: no matching function for call to 'HCMatrixKeypad::HCMatrixKeypad(int, int, int, int, int, int, int, char, int)'

HCMatrixKeypad Keypad(DEBOUNCE, C1, C2, C3, C4, C5, C6, ROWMARKER, R1); /* 6x1 keypad */

^

In file included from C:\DOCUME~1\Pc-User\LOCALS~1\Temp\arduino_modified_sketch_720876\Relay_Control.ino:48:0:

C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\HCMatrixKeypad/HCMatrixKeypad.h:44:3: note: candidate: HCMatrixKeypad::HCMatrixKeypad(byte, byte)

HCMatrixKeypad(byte Debounce, byte C1, byte C2, byte C3, byte C4, char Row_Marker,

^

C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\HCMatrixKeypad/HCMatrixKeypad.h:44:3: note: candidate expects 2 arguments, 9 provided

C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\HCMatrixKeypad/HCMatrixKeypad.h:40:7: note: candidate: constexpr HCMatrixKeypad::HCMatrixKeypad(const HCMatrixKeypad&)

class HCMatrixKeypad

^

C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\HCMatrixKeypad/HCMatrixKeypad.h:40:7: note: candidate expects 1 argument, 9 provided

C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\HCMatrixKeypad/HCMatrixKeypad.h:40:7: note: candidate: constexpr HCMatrixKeypad::HCMatrixKeypad(HCMatrixKeypad&&)

C:\Documents and Settings\Pc-User\My Documents\arduino-1.8.9\libraries\libraries\libraries\HCMatrixKeypad/HCMatrixKeypad.h:40:7: note: candidate expects 1 argument, 9 provided

exit status 1
no matching function for call to 'HCMatrixKeypad::HCMatrixKeypad(int, int, int, int, int, int, int, char, int)'

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Compiles everytime on a NANO but never with the LGT8F328, is it me, my m/c, my OS, or is it simply just not meant to be!

Regards S.

andrew
Site Admin
Posts: 1276
Joined: Sun Aug 05, 2012 4:15 pm

Re: LG8F328P mini EVB 5V Arduino Nano replacement development board - HCDVBD0038

Post by andrew » Tue Aug 09, 2022 8:35 am

The library is quite old now and it looks like the LG8F board files are using the C1....C4 & R1...R5 definition for its own purpose.

I've now changed the name of these definition in the HCMatrixKeypad library to remove this conflict. You'll need to redownload the library (V1.0) and replace the old V0.1 files in your libraries folder. To do this either delete your current HCMatrixKeypad library folder and copy the new one in its place, or replace the HCMatrixKeypad.cpp, HCMatrixKeypad.h and HCMatrixKeypad_Example1.ino files with the new V1.0 ones.

Also, you'll need to change anywhere in your sketch where it uses the C1, C2, C3, C4, R1, R2, R3, R4, or R5 definitions to something like PIN_C1, PIN_C2, PIN_C3, PIN_C4, PIN_R1, PIN_R2, PIN_R3, PIN_R4, or PIN_R5. See updated library sketch for an example.

Link to new library:

download/file.php?id=804
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

Post Reply

Return to “General Discussion”