AS7 -> MCS7 = odd !

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


My AS7 is behaving oddly (it won't let me switch to an Asm view when simulating) so I thought I'd simply update and, of course, the latest update is the one that switches it from AS7 to MCS7 but the curious thing about that is:

 

 

I know this is probably because I already have a copy but it seems they just can't quite shake off that "Atmel" name completely! devil

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

I have a fresh install - and it's in C:\Program Files (x86)\Atmel\Studio\7.0

 

Although its start menu location is C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microchip Studio

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This is very intentional, to keep compatibility with 3rd parties etc. Unfortunately some does not look in registries etc for the install location but goes directly to an assumed path...

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

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


Morten,

 

Even after the updated the simulator is NOT working right. if I take any perfectly legitimate code, build and then while simulating right click and say "Goto Disassembly" (which I would usually do about 90% of the time as I feel more comfortable looking at Asm) all I ever see now is:

 

 

It's like one of the simulator/debugger's main features is completely broken :-(

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

If you go straight to the disassembly view, how does it look there?

 

We changed default Optimization from O1 to Og for new projects, wondering if that has something to do with this?

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

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

That menu option (also Alt-8) works.

 

Actually someone else was saying about "it behaving" odd in another thread in the last few days.

 

I just tried stepping (source level) what looks like perfectly valid code (that happens to use itoa()) and after that it then switched to dis-asm even though I didn't ask it to that time ?!?

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

The only change that I'm aware of at least is the change of the default O level for new projects... No other changes to the debug systems...

:: Morten

 

(yes, I work for Microchip, yes, I do this in my spare time, now stop sending PMs)

 

The postings on this site are my own and do not represent Microchip’s positions, strategies, or opinions.

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

Oh now that is interesting. Yes I see it is "-Og" now. I'll try -O1 and see if anything changes...

 

BTW in case there was some "legacy nastiness" in the project I always re-use I created a brand new one and it shows the same odd behaviour.

 

EDIT: nope, fraid I get the same error with "Goto Disassembly" whether it was built -Og or -O1 so it's not that.

Last Edited: Thu. Feb 4, 2021 - 03:55 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

A bit of a long shot, but could you try to delete (or move) %appdata%\Atmel\AtmelStudio\7.0\ and %localappdata%\Atmel\AtmelStudio\7.0\? Studio will recreate them when it starts.

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

je_ruud wrote:

A bit of a long shot, but could you try to delete (or move) %appdata%\Atmel\AtmelStudio\7.0\ and %localappdata%\Atmel\AtmelStudio\7.0\? Studio will recreate them when it starts.

No dice I'm afraid :-(