mathers Posted June 5, 2015 Report Share Posted June 5, 2015 Hello, Is there any way to send an arduino sketch to the AVR using the FPGA as ISP via command line ? Thanks,Guillaume Quote Link to comment Share on other sites More sharing options...
Jack Gassett Posted June 5, 2015 Report Share Posted June 5, 2015 Here is a capture of the commands used from the DesignLab IDE:Executing C:\DesignLab-1.0.6b/hardware/tools/avr/bin/avr-size -A C:\Users\Jack\AppData\Local\Temp\build8976464332928223593.tmp/sprites256.cpp.elfSketch uses 30,256 bytes (92%) of program storage space. Maximum is 32,768 bytes.Global variables use 44 bytes (1%) of dynamic memory, leaving 2,516 bytes for local variables. Maximum is 2,560 bytes.C:\DesignLab-1.0.6b/hardware/tools/papilio/papilio_loader/bin/papilio-prog.exe -f C:\DesignLab-1.0.6b/hardware/arduino/avr/bootloaders/caterina/Papilio_DUO_ArduinoISP.bit JTAG chainpos: 0 Device IDCODE = 0x24001093 Desc: XC6SLX9Created from NCD file: top_avr_core_v8.ncd;UserID=0xFFFFFFFFTarget device: 6slx9tqg144Created: 2014/09/08 22:13:31Bitstream length: 2724832 bitsUploading "C:\DesignLab-1.0.6b/hardware/arduino/avr/bootloaders/caterina/Papilio_DUO_ArduinoISP.bit". DNA is 0x999f151e4ebe7dfeUsing built-in device listC:\DesignLab-1.0.6b/hardware/tools/avr/bin/avrdude -CC:\DesignLab-1.0.6b/hardware/tools/avr/etc/avrdude.conf -v -v -v -v -patmega32u4 -cstk500v1 -PCOM6 -b57600 -Uflash:w:C:\Users\Jack\AppData\Local\Temp\build8976464332928223593.tmp/sprites256.cpp.hex:i -Ulock:w:0x2F:m avrdude: Version 6.0.1, compiled on Apr 3 2014 at 23:12:16 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2009 Joerg Wunsch System wide configuration file is "C:\DesignLab-1.0.6b/hardware/tools/avr/etc/avrdude.conf" Using Port : COM6 Using Programmer : stk500v1 Overriding Baud Rate : 57600avrdude: Send: 0 [30] [20] C:\DesignLab-1.0.6b/hardware/tools/papilio/papilio_loader/bin/papilio-prog.exe -r JTAG chainpos: 0 Device IDCODE = 0x24001093 Desc: XC6SLX9Triggering a reconfiguration of the FPGA.Using built-in device listC:\DesignLab-1.0.6b/hardware/tools/papilio/papilio_loader/bin/papilio-prog.exe -c JTAG chainpos: 0 Device IDCODE = 0x24001093 Desc: XC6SLX9ISC_Done = 0ISC_Enabled = 0House Cleaning = 0DONE = 0Using built-in device list Quote Link to comment Share on other sites More sharing options...
mathers Posted June 6, 2015 Author Report Share Posted June 6, 2015 Thanks for your quick answer ! I guess files in C:\DesignLab-1.0.6b/hardware/tools/avr/bin/avr-size -A C:\Users\Jack\AppData\Local\Temp\build8976464332928223593.tmp are generated during the build stage ? Is it possible to automate this stage too ? Quote Link to comment Share on other sites More sharing options...
mkarlsson Posted June 6, 2015 Report Share Posted June 6, 2015 The files in C:\Users\Jack\AppData\Local\Temp\build8976464332928223593.tmp are built by the Arduino build system. What you see at the top in Jack's capture is the tail end of the build (reporting the size of the executable).For more info, this SparkFun article talks about the Arduino build system: https://www.sparkfun.com/news/1810 Are you asking if it's possible to compile and upload a sketch from the command line instead of using the Arduino GUI? If so then maybe the Arduino forum is a better place to ask. Magnus Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.