SNAP News update October 2006

snapburner@comcast.net

AVR Studio Stack Underflow Error when executing icall (and eicall)

I am using AVR Studio 4 version 4.12 SP 4 Build 497, writing asm. programs for several clients. When running a debugging session in Studio and icall is executed, the simulator appears to not push and pop the Z address and an error appears. The actual .asm file compiles without errors or warnings and runs as expected on actual hardware. This error also occurs when using GCC in Studio. I called the local Atmel field engineer and he sent me an unofficial quick fix with installation instructions. He also stated that the next release of Studio will have this problem fixed....if you prefer to wait. If you want to fix it now here is the file:

Download AVR Studio 4 Stack Underflow Error Fix (ZIP:48kB)

After downloading, rename to "AVRSimCoreV2.zip" and unzip the file

Change the suffix from .ddd to .dll

Copy the file into C:\Program Filees\Atmel\AVR Tools\AvrStudio4\dll\ directory

Restart Studio.

Please note this is an unofficial release and neither I nor Atmel are responsible for any problems you might encounter using it. It did remove the bogus error messages when I installed it on my copy of Studio.

July 2005 - Free AVR Codeless Language Module for BBEdit

I have been building a Stirling engine controller based on an AVR microprocessor, written in assembler and want the flexibility to view/review/edit/print my code on my Mac....I use TextWrangler for that function. The module is written to look like AVR Studio. It will work with either BBEdit 8.x or TextWrangler 2.x.

TextWrangler by Bare Bones Software is a free text editor for the Mac OS X platform. BBEdit is their professional HTML & text editor.

Download AVR codeless language module for BBEdit (ZIP:1kB)

To install this module:

1. Quit BBEdit 8.x or TextWrangler 2.x

2. Place the 'AVR.plist' file inside:

Users/~yourUserName/Library/Application Support/BBEdit/Language Modules (if the Language Modules folder doesn't exist then create one)

3. Open BBEdit/TextWrangler

4. Go to BBEdit/TextWrangler preferences/languages. If you haven't already got '.asm' in your suffix mappings then 'add' it and select AVR from the pulldown

5. Enjoy!!!

July 2005 - Changes around SNAP and the SNAP website.

SNAP2002 is discontinued! The replacement: SNAP 2.0 is based on SNAPpro's interface, graphing and store/import routines. It is strictly for kinematic engines and does not include the genetic algorithm, reporting sheet, new burner sheet or free-piston dynamics section.

A new Burner/Recuperator sheet has been added to SNAPpro 2.0 which allows the proposed heat input system to be analyzed. It models a fully pre-mixed burner as a heat exchanger. See the screenshot below.

A Stirling resources and files page has been added...something that will hopefully prove useful. It concentrates on technical information particularly relevant to simulation and thermodynamic design of Stirling engines.

I am again available to do consulting on Stirling engine design among other things, please see my new Consulting Services page for information.