Guest earl

Burn SPI Flash directly from Arduino IDE for custom core designs

Recommended Posts

Guest earl

Kudos - This is a really worthwhile project! The tutorials made it easy to get started experimenting with FPGAs and VHDL coding using the Papilio One board.

I've been trying out some custom user core VHDL changes with the Arduino IDE and it gets tedious copying bit files and using the loader to burn the SPI flash after making Arduino code changes. A small mod to the Makefile and the boards.txt file allows you to burn the SPI Flash directly from the Arduino IDE for custom user core designs.

It adds these board options to the IDE choices:

Gadget Factory Papilio Custom 250K Board (Burn)

Gadget Factory Papilio Custom 500K Board (Burn)

The Makefile mod is to insert the following at line 439:

papilio_custom250Burn: hex mem pcustom bf_programBurn250K
papilio_custom500Burn: hex mem pcustom bf_programBurn500K

The boards.txt mod is to insert the following at line 130:


papilio_Custom250burn.name=Gadget Factory Papilio Custom 250K Board (Burn)
papilio_Custom250burn.upload.command=../utils/bin/make.exe
papilio_Custom250burn.upload.using=papilio_custom250burn
papilio_Custom250burn.upload.maximum_size=16384
papilio_Custom250burn.build.mcu=atmega103
papilio_Custom250burn.build.f_cpu=16000000L
papilio_Custom250burn.build.core=arduino
##############################################################
##############################################################
papilio_Custom500burn.name=Gadget Factory Papilio Custom 500K Board (Burn)
papilio_Custom500burn.upload.command=../utils/bin/make.exe
papilio_Custom500burn.upload.using=papilio_custom500burn
papilio_Custom500burn.upload.maximum_size=16384
papilio_Custom500burn.build.mcu=atmega103
papilio_Custom500burn.build.f_cpu=16000000L
papilio_Custom500burn.build.core=arduino
##############################################################
##############################################################

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now