Upload sketch to AVR using FPGA as ISP via command line


mathers

Recommended Posts

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
Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.