Studio 4 bugs

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

Hi,

I had to switch from studio 3.53 to 4.10 a few months ago. I was avoiding this because of many bugs and annoyances. Some of these items are probably my fault or can be solved easily:
- assembler2 hangs up on this (faulty) asm line (and others): ld r16,y+4
- the editor keeps erasing auto indent spaces (only trailing spaces in a line should be removed, not spaces/tabs in a line consisting of whitspace only)
- registers in register view are ordered in a weird way when more than one column
- changing memory locations is a pain with ice200. You can't go back with arrow key. If you type too fast, random numbers will appear
- in studio 3 there was a mouse over in mem view showing the address. Feature removed (or not implemented) in studio 4
- there should be an F-key for start debugging
- breakpoints sometimes don't allow to erase themselves using F9, because the description of location in breakpoint view sometimes is in upper, sometimes in lower case
- parameters for assembler2 are not saved. Have to readjust them manually
- the window settings (arrangement, positions) should be saved in the project file, so that they can be different for each project
- is there a processor view like in studio 3 where i can measure the time?
- how can i set the program counter to a specific program location?
- how can i find out an address of a symbolic ram location (except for listfile)?
Hope one studio developer (- Trym?) will read this thread and some of you guys share my needs to support me.

Thanks for providing free tools

Jürgen

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

FYI, the latest version of AVR Studio is now 4.11.

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

Studio 4.11 works great with the ICE200 now. Remember that you can still use the old assembler if you wish, either switch to v1 assembler in the assembler option or copy your favorite assembler into the assembler folder. I still use v1.75 as others give me some problems. Also if you are using a real com port (com1-com4 from the motherboard) you may get quite a few problems with the ICE200 but using an UNREAL port like USB to RS232 or a port from a PCI card fixes a lot of problems...at least that was my experience with over a year of headaches with 3 different computers and 2 different O/S. In fact I would appreciate if you could confirm my theory of the serial port problem, just plug the ICE200 in say com 1-com4 on either 0x03f8, 0x02f8,0x03e8 or 0x02e8 and see what happens. I haven't been able to get anyone to check this, not too many people with ICE200 still around it seems :-)

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Ok, I wasn't up to date concerning studio versions. Downloaded and installed 4.11 now. Assembler2 doesn't hang up any more and the breakpoint thing seems to be fixed. BUT there are a few more problems:

- I'm getting this warning on some rjmp's with AT90S8535:
f:\projects\\avr\main.asm(601): warning: Wrap relative jmp for device with > 4096 words flash gives incorrect result
- When starting debugging it keeps asking me for device (ICE200)
- parameters for asm2 don't work at all!!!

I will skip 4.11 hoping for 4.12 to be better.

@John:
I can't tell _any_ difference in how Studio 4.10 and 4.11 cooperate with ICE200. I am running three instances of Studio 4.10 at the same time, two with ICE200 and one with JTAG ICE mkII, all using onboard RS232 and USB. Do you also have this problem changing memory locations? Have you tried dis/enabling FIFO buffer and changing send/receive buffer size for your RS232?

Jürgen

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

Quote:
I can't tell _any_ difference in how Studio 4.10 and 4.11 cooperate with ICE200
Studio 4.11 has had some bug fixes for ICE200 (read about it in the release note). The main one that was causing problems for me was that studio would 'forget' some of the settings for the ice like which type of clock was being used or which chip was being used. This has been fixed and it has been working really well, I have only been getting some occasional timeout error message.
Quote:
Have you tried dis/enabling FIFO buffer and changing send/receive buffer size for your RS232?
YEP had tried for more than a year with many different version of studio 4, none of them worked rerliably or at all.
Quote:
all using onboard RS23
Out of curiosity can you please find out the addresses of your onboard serial ports? I still have problems with both my laptop and my new desktop if I attempt to use real serial ports, works well with USB/RS232 or serial ports on a PCI card (the card has some drivers and do not seem to use the usual port address or interrupts). By the way I have reverted to assembler V 1.75 (from studio 4.09?) and don't seem to have any troubles. V 2 assembler has some issues that have been discussed with atmel and will probably be fixed next version. Untill then.....

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

com1: 3f8 irq4
com2: 2f8 irq3
fifo on, buffers @maximum
board: soyo dragon II
system: Windows XP Home SP1

anyone any comments on my other problems?

Jürgen

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

ant wrote:
- I'm getting this warning on some rjmp's with AT90S8535:
f:\projects\\avr\main.asm(601): warning: Wrap relative jmp for device with > 4096 words flash gives incorrect result

My guess is this being caused by your program missing a .include "8535def.inc" directive.
That file contains information about the device that the assembler needs Check if your Studio Build window has a line resembling this:

C:\Work\test\regs.asm(1): Including file 'C:\Program Files\Atmel\AVR Tools\AvrAssembler2\Appnotes\8535def.inc'

ant wrote:
- parameters for asm2 don't work at all!!!

Please explain. AVR Studio 4.11 stores assembler options per-project (in the project file), while 4.10 and earlier stored them globally. This may explain some differences in behaviour, you may need to use the "set default" button to affect all your assembler projects, but we are quite certain that it works..

--
Roland Kruse
Atmel AVR Tools

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

Quote:
com2: 2f8 irq3
fifo on, buffers @maximum

Well....it must be something about the south magnetic pole that affect the ICE200. I have just tested it with exactly the same setup as yours and IT DOES NOT work! Works perfectly on Com4 which is not a real (old fashioned?) com port and this problem exists on 3 differnt computers and 2 different O/S win98se and WinXP SP2. But I'm happy that it finally works with the other ports.Hmmm I guess I'll have to bring my laptop in at the Atmel seminar next week because I need to show somebody or I'll go NUTTIER. It seems that no one else has experienced this problem.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

@Roland:
I found the problem: I copied 8535def.inc into the project folder. Even though there's not any difference, it seems to not like it. Now it also saves the asm2 parameters - but it still does ignore them!!! I've used -c and -l main.lst. Neither it creates main.lst nor it cares for case. In the avrbuild.bat the command is listed with parameters.

@all:
Could you please comment these items of my first post?
- the editor keeps erasing auto indent spaces (only trailing spaces in a line should be removed, not spaces/tabs in a line consisting of whitspace only)
- registers in register view are ordered in a weird way when more than one column
- changing memory locations is a pain with ice200. You can't go back with arrow key. If you type too fast, random numbers will appear
- in studio 3 there was a mouse over in mem view showing the address. Feature removed (or not implemented) in studio 4. Have to count for a specific location.
- there should be an F-key for start debugging
- the window settings (arrangement, positions) should be saved in the project file, so that they can be different for each project
- is there a processor view like in studio 3 where i can measure the time?
- how can i set the program counter to a specific program location?
- how can i find out an address of a symbolic ram location (except for listfile)?

Thanks for your help!
Jürgen

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

ant wrote:
@Roland:
I found the problem: I copied 8535def.inc into the project folder. Even though there's not any difference, it seems to not like it. Now it also saves the asm2 parameters - but it still does ignore them!!! I've used -c and -l main.lst. Neither it creates main.lst nor it cares for case. In the avrbuild.bat the command is listed with parameters.

To create list file, use the "Create list file" checkbox in the upper left part of the assembler options window, not "-l file" in the addtional options field.

The -c option works for me. :)

--
Roland Kruse
Atmel AVR Tools