Bug Reports for Astudio 4

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello everybody especially the Astudio 4 development team,

Did some experimentation with Astudio 4 over the weekend, and came across some interesting problems. I believe that Dag said that this community should not beta-test the software - maybe you ought to reconsider after reading these lines...

All of these problems were done with an AMD Duron 850MHz 256MB Ram Machine running Windows 98 SP2. Applicable part is the ATmega128-ES.
---------------------------------------------------
Problem A1:

The Customise Toolbars option has a Icon for Help/Queries - This has no effect whatsoever for any of the tabs in the toolbar customise window - in material if you select a option, and then hit the icon, or try to drag the icon to a query, etc.
---------------------------------------------------
Problem A2:

The Indentation tool works perfectly for trying to increase indent text, but when
text has already been written, the decrease indent option does not work. The decrease indentation only works when selecting multiple text lines.
---------------------------------------------------
Problem A3:

The Simulator options under the Debug Drop-down Menu during normal code development (I'm not in the debug screen yet) allows the selection of different clock frequencies for simulation, yet the summary on the right of this selection informs of a different speed setting i.e. 12MHz. There is also no entry for 16MHz, which I believe is the high-end frequency setting of the new Mega devices. When trying to enter this value manually, Astudio informs that maximum frequency allowable is 12MHz.

Once I have entered a value less than 12MHz i.e. 10MHz, I cannot change this value again in the normal code development environment, unless I enter the Debug session, and then enter a value again - but again only a maximum of 12MHz is allowed.
---------------------------------------------------
Problem A4:

Dragging to Mouse downwards to select Text across multiple lines in a source file e.g. 50 lines results in the bar slider not updating. When scrolling then upwards by depressing the scroll buttons, only then does the bar slider jump to the correct position.

The next few problems were sporadic, and I'm trying to get reliable continous results, but then again were not supposed to be doing beta-testing :)....
---------------------------------------------------
Problem B1:

Upon hitting the Debug Icon, and loading the Register option, the first time Astudio will crash, then after loading Astudio again (without rebooting), again selecting Debug Icon, and then selecting the Register option from the View Drop-down Selection Window, the Register option will load correctly. Once the register window is selected, even after closing the Register window, exiting Debug Window, modify code, and then reenter Debug Window, the Register window keeps reappearing. Only when physical exiting Astudio, and then reopening the project does this
annoying feature stop reappearing. At one stage I had 4 register windows littered around screen.
---------------------------------------------------
Problem B2:

The following problem ocurred after the first crash of studio due to the Register option - although subsequently I cannot continously re-create the problem.

I managed to simulate the problem below at least twice:

The Yellow Arrow indicating the status of the line being simulated is 3/4/5 instructions ahead of the actual data being implemented as indicated in the I/O Window e.g. the "out PORTB,BL" status in the I/O Window only updates on the line "clr AL". Also sometimes blank lines are skipped as they should be, but mostly they are executed by the Yellow Arrow. Then the next actual instruction on the following line is skipped. I cannot actually say how many lines ahead the Yellow Arrow is, if the Blank Lines/Non-Blank Lines are also part of the equation.
---------------------------------------------------
Problem B3:

The following errors(?) I managed to continously simulate with EXP1.asm and EXP2.asm:

The ATmega128 requires the 'LDS' and 'STS' instructions for accessing the Extended I/O space, but when I use this instructions also for normal I/O space i.e the normal PORTA to PORTE, the simulator will not update e.g. the Port Status when I single-step through the code. EXP1.asm does not show consistancy in functional simulation of I/O output for PORTG and PORTF between EXP1.asm and EXP2.asm

Granted that these Instructions are 16 Bit wide, and currently I'm not doing any adjusting for this fact, but then again I want to see if the simulator/assembler would pick this up. Refer to the Zip File and run these 2 different source codes to see for yourself.

Source File EXP2.asm updates the PORTF and PORTG I/O windows as "FF". The register AL is changed by the Simulator to read "FF" when it was programmed actually as "00". The resultant windows in I/O are updated for PORTF and PORTG, but when stepping further though the code, the PIN buffers on Port F Pin status indicates "FF", but for Port G Pin status indicates "00". The register contents of AL are changed when executing the code for PORTE from "FF" to "00" !!!???!!!
---------------------------------------------------
Problem B4:

Lastly, the option 'Open Object File" can cause some very unexpected results - None of which I managed to repeat with consistancy. The first time I used this option, it crashed Astudio. The next time I used this option, it informed that the object file was already in use (I was debugging at the time), I selected no not to continue with the operation, but Studio when ahead anyway with the loading of this file.
---------------------------------------------------
Problem B5:

After opening an object file, Studio indicates on opening the dialog box "Welcome to AVR Studio 4", the normal project file as well as the object file. Deleting this object project file then though Explorer while studio is active, results in Studio
scrambling windows for the workspace, output window, and letting the watch window disappear.
---------------------------------------------------
Problem B6:

Another thing that concerns me sometimes is that "Create Folder" on the "Welcome to AVR Studio 4" doesn't appear to work consistantly. I still have to investigate this a bit further.
---------------------------------------------------
Request C1:

Can we have a under "Open File" the option of selecting .asm, .c, etc files.
---------------------------------------------------

The UNKNOWN Issue:

One thing that absolutely scares the living daylights out of me, is that when opening a new project, the output window after building the project, and then hitting the debug window, informs that the object file is being loaded, but a few lines latter informs that the previous project object file is being loaded, but then again a few lines latter, the current object file for simulation is being loaded again. I only praying that the simulator does not go on ballistic path of some sort.

It appears (I cannot prove this) that Mega128 is not really supported since I couldn't get any of my source file (i.e. EXP1.asm and EXP2.asm) to be dumped consistantly into the Mega128 on the STK501, and for the first time ever when I tried a erase device on its own of the Mega128 just to ensure that no garbage is loaded into the device from the simulator, the erase cycle took more than 30 seconds???? I already was anxiously looking for a stop erase button since, but couldn't find one :) The progress indicator was advancing though extremely slowly.
Can we please get Hex File creation back so that I can use the alternative method of programming AVR devices instead of trusting the simulator to do the job.
---------------------------------------------------

I tried attaching the source code, but it gets messy. I'll be happy to email it to anybody. Target directory is C:\Projects\AVR.
---------------------------------------------------
By the way, what service should I be using; avrbeta@atmel.com or this website forum, or both since I don't know how fast the actual development team actually responds to those emails - if they ever get to see those emails in time like it is the case in company where I only see a reply 3 weeks later.

Regards, Arno.

P.S. Just trying to help, hope you guys didn't get offended too much.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Add on !

I use the Imagecraft C Compiler and tried to use AVR Studio4 with COF files.

1. Emulationmode (103 on 128) results in incorrect ram area declaration (103 below address 100 is ram not extended io)

2. dragging variable into watch window wont work with variables assigned to addresses below 100.
The content of variable shown in watch window is wrong!

Regards
Michael

admin's test signature