help with arduino X axies October 21, 2019 06:29AM |
Registered: 4 years ago Posts: 10 |
Re: help with arduino X axies October 21, 2019 07:56AM |
Admin Registered: 13 years ago Posts: 7,004 |
Re: help with arduino X axies October 21, 2019 07:58AM |
Registered: 4 years ago Posts: 10 |
Re: help with arduino X axies October 21, 2019 08:28AM |
Admin Registered: 13 years ago Posts: 7,004 |
Re: help with arduino X axies October 21, 2019 08:42AM |
Registered: 4 years ago Posts: 10 |
Quote
Dust
to upload a hex file you will need to use avrdude on the command line
something along the lines of avrdude -B 1 -V -p m328p -c arduino -P {your com port} -U flash:w:{file.hex}:i -U
where you have replaced {} with your machine specifics
This makes the assumption there is a bootloader installed in the 328p
If there is no bootloader you need a second bit of hardware called an avrisp and you use that to either upload a bootloader or put the code directly on the 328p
Re: help with arduino X axies October 21, 2019 08:44AM |
Admin Registered: 13 years ago Posts: 7,004 |
Re: help with arduino X axies October 21, 2019 08:45AM |
Registered: 4 years ago Posts: 10 |
Re: help with arduino X axies October 21, 2019 08:46AM |
Admin Registered: 13 years ago Posts: 7,004 |
Re: help with arduino X axies October 21, 2019 08:49AM |
Registered: 4 years ago Posts: 10 |
Quote
Dust
Its in the file name grbl_v0_8a_edge_328p_16mhz_9600_build20120310.hex
9600 baud
Re: help with arduino X axies October 21, 2019 08:54AM |
Registered: 4 years ago Posts: 10 |
Re: help with arduino X axies October 21, 2019 09:10AM |
Admin Registered: 13 years ago Posts: 7,004 |
avrdude -B 1 -V -p m328p -c arduino -P /dev/ttyACM0 -U flash:w:grbl_v0_8a_edge_328p_16mhz_9600_build20120310.hex:i -C avrdude.conf
avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1e950f (probably m328p) avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed To disable this feature, specify the -D option. avrdude: erasing chip avrdude: reading input file "grbl_v0_8a_edge_328p_16mhz_9600_build20120310.hex" avrdude: writing flash (21738 bytes): Writing | ################################################## | 100% 3.48s avrdude: 21738 bytes of flash written avrdude: safemode: Fuses OK (E:00, H:00, L:00) avrdude done. Thank you.
Grbl 0.8a '$' to dump current settings
Re: help with arduino X axies October 21, 2019 09:13AM |
Admin Registered: 13 years ago Posts: 7,004 |
Re: help with arduino X axies October 21, 2019 09:16AM |
Registered: 4 years ago Posts: 10 |
Sketch uses 444 bytes (1%) of program storage space. Maximum is 32256 bytes. Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes. E:\documenti\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CE:\documenti\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf -v -patmega328p -carduino -PCOM5 -b115200 -D -Uflash:w:C:\Users\Adriano\AppData\Local\Temp\arduino_build_899097/sketch_oct21a.ino.hex:i avrdude: Version 6.3-20190619 Copyright (c) 2000-2005 Brian Dean, [www.bdmicro.com] Copyright (c) 2007-2014 Joerg Wunsch System wide configuration file is "E:\documenti\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf" Using Port : COM5 Using Programmer : arduino Overriding Baud Rate : 115200 AVR Part : ATmega328P Chip Erase delay : 9000 us PAGEL : PD7 BS2 : PC2 RESET disposition : dedicated RETRY pulse : SCK serial program mode : yes parallel program mode : yes Timeout : 200 StabDelay : 100 CmdexeDelay : 25 SyncLoops : 32 ByteDelay : 0 PollIndex : 3 PollValue : 0x53 Memory Detail : Block Poll Page Polled Memory Type Mode Delay Size Indx Paged Size Size #Pages MinW MaxW ReadBack ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- --------- eeprom 65 20 4 0 no 1024 4 0 3600 3600 0xff 0xff flash 65 6 128 0 yes 32768 128 256 4500 4500 0xff 0xff lfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 hfuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 efuse 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 lock 0 0 0 0 no 1 0 0 4500 4500 0x00 0x00 calibration 0 0 0 0 no 1 0 0 0 0 0x00 0x00 signature 0 0 0 0 no 3 0 0 0 0 0x00 0x00 Programmer Type : Arduino Description : Arduino Hardware Version: 3 Firmware Version: 4.4 Vtarget : 0.3 V Varef : 0.3 V Oscillator : 28.800 kHz SCK period : 3.3 us avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1e950f (probably m328p) avrdude: reading input file "C:\Users\Adriano\AppData\Local\Temp\arduino_build_899097/sketch_oct21a.ino.hex" avrdude: writing flash (444 bytes): Writing | ################################################## | 100% 0.19s avrdude: 444 bytes of flash written avrdude: verifying flash memory against C:\Users\Adriano\AppData\Local\Temp\arduino_build_899097/sketch_oct21a.ino.hex: avrdude: load data flash data from input file C:\Users\Adriano\AppData\Local\Temp\arduino_build_899097/sketch_oct21a.ino.hex: avrdude: input file C:\Users\Adriano\AppData\Local\Temp\arduino_build_899097/sketch_oct21a.ino.hex contains 444 bytes avrdude: reading on-chip flash data: Reading | ################################################## | 100% 0.17s avrdude: verifying ... avrdude: 444 bytes of flash verified avrdude done. Thank you.
Quote
Dust
Ok I just tred this on a standard UNO (this is on my linux machine)
avrdude -B 1 -V -p m328p -c arduino -P /dev/ttyACM0 -U flash:w:grbl_v0_8a_edge_328p_16mhz_9600_build20120310.hex:i -C avrdude.conf
the results
avrdude: AVR device initialized and ready to accept instructions Reading | ################################################## | 100% 0.00s avrdude: Device signature = 0x1e950f (probably m328p) avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed To disable this feature, specify the -D option. avrdude: erasing chip avrdude: reading input file "grbl_v0_8a_edge_328p_16mhz_9600_build20120310.hex" avrdude: writing flash (21738 bytes): Writing | ################################################## | 100% 3.48s avrdude: 21738 bytes of flash written avrdude: safemode: Fuses OK (E:00, H:00, L:00) avrdude done. Thank you.
now I load up monitor and select the correct com port @ 9600 baud and I get
Grbl 0.8a '$' to dump current settings
Re: help with arduino X axies October 21, 2019 09:30AM |
Admin Registered: 13 years ago Posts: 7,004 |
E:\documenti\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -B 1 -V -p m328p -c arduino -P COM5 -U flash:w:grbl_v0_8a_edge_328p_16mhz_9600_build20120310.hex:i -C E:\documenti\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf
Re: help with arduino X axies October 21, 2019 09:40AM |
Registered: 4 years ago Posts: 10 |
Quote
Dust
Your not uploading the hex file..
Your compiling a random version of grbl you found somewhere which generates its own hex file that is then uploaded.
Open the command prompt [www.howtogeek.com]
from what you have provided you need the command
E:\documenti\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -B 1 -V -p m328p -c arduino -P COM5 -U flash:w:grbl_v0_8a_edge_328p_16mhz_9600_build20120310.hex:i -C E:\documenti\ArduinoData\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf
This presumed the file grbl_v0_8a_edge_328p_16mhz_9600_build20120310.hex is in the directory you run this command from.
Re: help with arduino X axies October 21, 2019 09:44AM |
Admin Registered: 13 years ago Posts: 7,004 |
Re: help with arduino X axies October 21, 2019 10:27AM |
Registered: 4 years ago Posts: 10 |
Re: help with arduino X axies October 21, 2019 10:29AM |
Admin Registered: 13 years ago Posts: 7,004 |
Re: help with arduino X axies October 21, 2019 10:36AM |
Registered: 4 years ago Posts: 10 |