Studio sometimes ostensibly program

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

I have notice, that sometimes Studio leaves the old code inside the chip but claims there's the new one.

For ex. I fire up the studio, assemble and run the code, program the flash choosing: Use Current Simulator/Emulator FLASH Memory. Everything works so far. Code inside the AVR is what it should be. Then I make changes to program and again: assemble and run the code, program the flash. Studio verify that the code inside the chip is a same as in Studio... but it's not actually there?

This happens very rarely... or do I forget run the code before programming?

Regards
heguli

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

More likely you're forgetting to compile before loading your code onto the AVR. I've made this mistake a couple of times myself. Studio does not seem to check that the hex file is newer than all the associated source.

"Now, wait a minute, I changed that code!"

Stu (That's my story and I'm sticking to it! :wink: )

Engineering seems to boil down to: Cheap. Fast. Good. Choose two. Sometimes choose only one.

Newbie? Be sure to read the thread Newbie? Start here!

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

Quote:
More likely you're forgetting to compile before loading your code onto the AVR. I've made this mistake a couple of times myself. Studio does not seem to check that the hex file is newer than all the associated source.
Next time Atmel make's the user survey have to mention this issue... if I remember? :)

Regards
heguli

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

Remember what? ;)