About AT Mega328p with CH340G board.
I can see it, in device manager under Ports (Com & LPT) as USB Serial CH340 (COM9)
I am using Arduino 1.8.5 for Windows XP (SP23)
I made these settings :
In Tools/Port i choose COM 9
In Tools/Board i choose "Atmel atmega 328p Xplained mini"
In Tools/Programmer i choose Atmel-ICE(AVR)
When i open the "blink" scetch from Examples/Basics, i receive this error message :
File > Preferences > Show verbose output during: > compilation (check) > OK
Sketch > Verify/Compile
After the compilation fails you'll see a button on the right side of the orange bar "Copy error messages". Click that button.
Paste the error messages in a reply here USING CODE TAGS (</> button on the toolbar).
krakadoros:
In Tools/Board i choose "Atmel atmega 328p Xplained mini"
Please post a link to where you got the files to add support for that board to the Arduino IDE. Use the chain links icon on the toolbar to make the link clickable.
Arduino: 1.8.5 (Windows XP), Board: "Atmel atmega328p Xplained mini"
C:\Program Files\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files\Arduino\hardware -hardware C:\Documents and Settings\ΤΕΟ\Local Settings\Application Data\Arduino15\packages -tools C:\Program Files\Arduino\tools-builder -tools C:\Program Files\Arduino\hardware\tools\avr -tools C:\Documents and Settings\ΤΕΟ\Local Settings\Application Data\Arduino15\packages -built-in-libraries C:\Program Files\Arduino\libraries -libraries C:\Documents and Settings\ΤΕΟ\Τα έγγραφά μου\Arduino\libraries -fqbn=atmel-avr-xminis:avr:atmega328p_xplained_mini -ide-version=10805 -build-path C:\DOCUME~1\ΤΕΟ\LOCALS~1\Temp\arduino_build_319554 -warnings=none -build-cache C:\DOCUME~1\ΤΕΟ\LOCALS~1\Temp\arduino_cache_757724 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\Arduino\hardware\tools\avr -verbose C:\Program Files\Arduino\examples\01.Basics\Blink\Blink.ino
C:\Program Files\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files\Arduino\hardware -hardware C:\Documents and Settings\ΤΕΟ\Local Settings\Application Data\Arduino15\packages -tools C:\Program Files\Arduino\tools-builder -tools C:\Program Files\Arduino\hardware\tools\avr -tools C:\Documents and Settings\ΤΕΟ\Local Settings\Application Data\Arduino15\packages -built-in-libraries C:\Program Files\Arduino\libraries -libraries C:\Documents and Settings\ΤΕΟ\Τα έγγραφά μου\Arduino\libraries -fqbn=atmel-avr-xminis:avr:atmega328p_xplained_mini -ide-version=10805 -build-path C:\DOCUME~1\ΤΕΟ\LOCALS~1\Temp\arduino_build_319554 -warnings=none -build-cache C:\DOCUME~1\ΤΕΟ\LOCALS~1\Temp\arduino_cache_757724 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avr-gcc.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Program Files\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files\Arduino\hardware\tools\avr -verbose C:\Program Files\Arduino\examples\01.Basics\Blink\Blink.ino
Using board 'atmega328p_xplained_mini' from platform in folder: C:\Documents and Settings\ΤΕΟ\Local Settings\Application Data\Arduino15\packages\atmel-avr-xminis\hardware\avr\0.6.0
Using core 'arduino' from platform in folder: C:\Program Files\Arduino\hardware\arduino\avr
Detecting libraries used...
"C:\Program Files\Arduino\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 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_ATMEL_ATMEGA328P_XMINI -DARDUINO_ARCH_AVR "-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Documents and Settings\ΤΕΞ?\Local Settings\Application Data\Arduino15\packages\atmel-avr-xminis\hardware\avr\0.6.0\variants\atmega328p-xmini" "C:\DOCUME~1\ΤΕΞ?\LOCALS~1\Temp\arduino_build_319554\sketch\Blink.ino.cpp" -o "nul"
"C:\Program Files\Arduino\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 -DF_CPU=16000000L -DARDUINO=10805 -DARDUINO_AVR_ATMEL_ATMEGA328P_XMINI -DARDUINO_ARCH_AVR "-IC:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" "-IC:\Documents and Settings\ΤΕΞ?\Local Settings\Application Data\Arduino15\packages\atmel-avr-xminis\hardware\avr\0.6.0\variants\atmega328p-xmini" "C:\DOCUME~1\ΤΕΞ?\LOCALS~1\Temp\arduino_build_319554\sketch\Blink.ino.cpp" -o "C:\DOCUME~1\ΤΕΞ?\LOCALS~1\Temp\arduino_build_319554\preproc\ctags_target_for_gcc_minus_e.cpp"
avr-g++: error: C:\DOCUME~1\Τ: No such file or directory
avr-g++: error: Ο\LOCALS~1\Temp\arduino_build_319554\sketch\Blink.ino.cpp: No such file or directory
avr-g++: error: Ο\LOCALS~1\Temp\arduino_build_319554\preproc\ctags_target_for_gcc_minus_e.cpp: No such file or directory
avr-g++: warning: '-x c++' after last input file has no effect
avr-g++: fatal error: no input files
compilation terminated.
exit status 1
Error compiling for board Atmel atmega328p Xplained mini.
About, where i got the files to add support for the board Atmel AtMega328P : I do not know the link. I just click on :
Tools/Board/Boards Manager /Atmel AVR Xplained-minis by Atmel Univercity France >>> more info >>> 0.6.0 Install
Please any help, because i am in a procedure to return the board to the seller (it is useless to me without the Arduino IDE)
OK, I hadn't noticed that Atmel University France package. The problem has absolutely nothing to do with the board or even the Atmel University France package. You will have this problem with any AVR based Arduino board (Uno, Mega, Leonardo, etc.) and quite possibly with any board at all. You can verify this by selecting other boards from the Arduino IDE's Tools > Board menu and then attempting to compile a minimal sketch for them.
The problem is caused by some characters in your username, or rather how some part of the software is handling those characters. These are causing the path C:\DOCUME~1\ΤΕΞ?\LOCALS~1\Temp\arduino_build_319554\sketch\Blink.ino.cpp to be seen as two separate strings, C:\DOCUME~1\Τ and Ο\LOCALS~1\Temp\arduino_build_319554\sketch\Blink.ino.cpp. If you create a user with a name that doesn't contain any "special" characters (sorry, I know that's not the right term but you know what I mean) the problem will go away.
The compilation recipe does quote the path, which would prevent this sort of issue with a normal path, such as one that contained spaces. Somehow the "special" characters in your user name are causing the path string to be split even with the quotes. I don't know whether the problem is with the Arduino software or avr-g++.
Problem solved. Pert, you were absolutely right. The problem, caused by one of the letters of my user name folder's name. Probably it was in a, different than English, alphabet (all thought it was, visually, the same). When i changed the name of this folder, in something that has only English letters, it works. For somebody having the same problem, i changed the user name in "User's Accounts" window, specifically, the User name for "Debugger Users; Administrators" Group. If somebody try to change name of the User Name file, inside the Document and Settings file,Windows will not allow it.
tHANKS
to reach the "User's Accounts" window in Win XP : start/run and type Control userpasswords2
That's interesting. I assumed you had intentionally used a non-english letter. The tools should certainly be able to handle other character sets as that's likely to be a common thing but I haven't seen this specific problem before so maybe it was just a very odd character in your user name.
I have seen other user name related issues but they tend to be not such show-stoppers as yours.
I'm glad it's working for you now!
I'm tempted to buy an ATmega328PB Xplained-mini since the price is really good considering it has an onboard debugger. I actually had it in my shopping cart and my credit card out an hour ago but I had second thoughts because it looks like the only real choice for debugging that chip is Atmel Studio and I really don't feel like using that IDE just for the sake of debugging. I guess I'm sticking to using serial prints.