simulating memory outside the 64K range

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

Hi Guys,

Just trying to test a program for an atmega128 in avrstudio4.

 

Avrstudio4 does not display the upper 64K program memory.

 

(at least I can't find out how to do this)

 

Anyone?

 

 

 

This topic has a solution.
Last Edited: Wed. Jan 16, 2019 - 10:07 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

AS4 has been long since archived in favor of AS7.  You might want to try using that.  But I wonder why you want to view the program memory?

 

JIm

If you want a career with a known path - become an undertaker. Dead people don't sue! - Kartman

Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB user

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

I don't remember such a limitation. It's tempting to download an ancient copy of 4.19 to see what you mean!

 

(the simulator in AS7 is effectively a late development of Sim2 from 4.19 in fact - so it's really the same sim).

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

clawson wrote:
I don't remember such a limitation. It's tempting to download an ancient copy of 4.19 to see what you mean!
Perhaps Studio 4 displays the program memory with word addresses?

Stefan Ernst

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

I remember AS7 being like 1GB install or something foolish like that.

I don't use it often and I don't want it on my computer.

 

Avrstudio4 is PERFECT for what I need.

 

I wanted to test some spm commands for a bootloader I am doing in an atmega128.

Everything is working perfectly EXCEPT for the upper 64K.

 

I know it's working because I can read the atmega128 afterwards but it would be a lot easier to and way faster to simulate first.

 

thanks

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

I've downloaded AS4 (4.19) and run the installer and my Win10 taskbar is showing an icon but it seems to have gone into "background mode" with no visible UI :-(

 

EDIT: retried and get the same result so I'm afraid I have to conclude that I cannot run the AS4 installer on this Win10 - ho hum.

Last Edited: Tue. Jan 15, 2019 - 10:58 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

i am using win7 x64 with:

AVR Studio		4.12.460  
GUI Version		4, 12, 0, 460

Operating System
Major			5
Minor			1
PlatformID		2
Build			2600
Service Pack 3

Plugins:

AvrPluginAvrAsmObject	1, 0, 0, 43
AvrPluginavrgccplugin	1, 0, 0, 4
Stk500Dll		1, 0, 0, 58

 

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

Wow not only AS4 but an astronomically out of date version. Why on earth are you using 4.12? I forget when it happened but at some stage the ELF support in AS4 switched from 16 bit to 32 bit. I am pretty sure that occurred at AS4.13. At least get AS4.18 or AS4.19  and try that!

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

Like i said before it works for what I need.

 

I don't use it for programming, just the odd time as a simulator.

 

If the newer versions would display the full 128K program memory then I would install it.

Last Edited: Tue. Jan 15, 2019 - 11:26 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

But the actual issue you are reporting could very well be because of the age of the version you use. Why not try 4.19 and see? As far as I remember it was possible to have more than one version installed.

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

I have a 4.18 on my computer (win 7), now I can't remember what it is but something is broken in 4.19.

 

And when you simulate it show instructions in word, so there is no problems with a 128.

 

Make sure to use a newer C compiler than the org. The last winAVR 20100110 (and that make in many cases better code than newer versions).

 

The background 

I have a place where I started the project (mega16 later mega324) in studio 4, and I don't change compiler for something that is already in the field, when I only need small updates.

 

 

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

sparrow2 wrote:
what it is but something is broken in 4.19.
That is the link to avr-gcc. For 4.19 it no longer auto-detects WinAVR so you have to set the paths manually each time you create a new project.

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

newbie123 wrote:
Like i said before it works for what I need.

 

But maybe in this case it doesn't?

 

The size difference between the version you have and 4.18/4.19 is nothing considering the capacities of hard drives in the last ten years or so.

 

As Sparrow has said the instructions are shown in words so you should be ok anyway.

 

Jim

If you want a career with a known path - become an undertaker. Dead people don't sue! - Kartman

Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB user

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

But the size difference could be the reason to keep studio 4, 

 

In many cases the Microsoft studio is a overkill

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

I always used 4.18, as something changed/broke in 4.19...

Jim

 

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274

 

 

 

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

Yup, as I say the thing "broken" in 4.19 was this...

 

https://www.avrfreaks.net/forum/...

 

but who knows what other deltas there were between 4.18 and 4.19, there may have been fixes worth having. (unless the whole raison d'etre was all about making it prefer Atmel Toolchain to WinAVR?)

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

clawson wrote:
... but it seems to have gone into "background mode" with no visible UI :-(
Likely AVR Studio into a Windows 7 mode.

Mike's procedure :

https://www.avrfreaks.net/forum/win10-drivers-avrisp-and-avr-studio-419#comment-2401961

clawson wrote:
... on this Win10 - ho hum.
Indeed

WaaS is a WiP

 


Make older programs compatible with this version of Windows - Windows Help

 

"Dare to be naïve." - Buckminster Fuller

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OK, I tried version 4.19. Everything seems to be working now.

Thanks to everyone who responded to my question.

Last Edited: Wed. Jan 16, 2019 - 10:07 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

As I say this is almost certainly to do with the 16 to 32 bit ELF switch that I believe happened at the 4.12 to 4.13 transition.