mega128 flash

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

hi
i have a problem with atmega128A that when i program flash over 25% it does not work,any idea?

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

Prorammer?
Programming Software?
Programming Language?
What's happening in that 25%+ ?

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

The ATmega128 comes with the M103C fuse programmed, effectively making it an ATmega103 until you un-program that fuse. Have you done that?

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

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

stk 500
codevision
c
it behavior like reset & its clock is internal 8MHZ
thanks

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

JohanEkdahl wrote:
The ATmega128 comes with the M103C fuse programmed, effectively making it an ATmega103 until you un-program that fuse. Have you done that?

yah i know that and it works when it flash is lower than 25%

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

Johan,

Given that as soon as CALL/RET is used the M103C rears its ugly head it would have to one humungous linear program to fill 32K of memory and not use a CALL/RET even once! ;-)

Cliff

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

Controller:ATMEGA128

 

i have same problem, please help me.

L.Sethu

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

Did you read the thread (which is over 5 years old)?

Have you disabled the M103C fuse?

David (aka frog_jr)

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

Thanks for reply..

 

Yes,Disabled the M103C Fuse Bit.

 

We completed the previous project around 27KB with ATMEGA128A. It worked fine.

 

Now added more data using Lookup Table for GLCD Display (Now Memory Exceeds 42KB).

 

GLCD Part was checked separately and it was ok. 

 

We triple checked and found that it works fine only when the flash memory was under 32K and when it exceeds this limit, it is haywire.

 

 

 

 

L.Sethu

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

You are not providing nearly enough detail. Are you talking about C? If yes then which C compiler? And can we take it you are using some mechanism like __flash or PROGMEM to hold the LUT in flash? Is this an array of data that is >32K. Did you know that you cannot have an array with more than INT_MAX elements in it and if the elements are larger than bytes the size of the while thing cannot be more than INT_MAX  bytes? For AVR the value of INT_MAX is 32767 so if you are trying to a single array larger than this it won't work.

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

 Using AVR GCC

 

All my GLCD data loaded into flash memory using PROGMEM.

 

Split all  my LUT  to hold MAX 5KB.

 

My whole LUT accounts for about 30KB.

 

 

 

 

L.Sethu

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

Can't use external eeprom to hold the LUT?
.
MG

I don't know why I'm still doing this hobby