This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Ading a flash table

Hi

i want to put a table data at flash (at specific address). How can i save it to the compiled output file?
The FLASH.INI file do this? How?

Thanks a lot.

Parents
  • "its seems a little complex"

    Only because of the fixed address - hence the question, why do you (think you) need it at a fixed address?
    If you explain what you're trying to achieve, somebody may be able to suggest a less complex way of doing it...

    "If i want to fill the memory with some code like 'jump to ###', what is the most easiest way to do this?"

    How about a table of function pointers?
    (although, of course, that would be calls rather than jumps)

    Again, if you explain what you're trying to achieve, somebody may be able to suggest a simpler and/or more appropriate way of doing it...

Reply
  • "its seems a little complex"

    Only because of the fixed address - hence the question, why do you (think you) need it at a fixed address?
    If you explain what you're trying to achieve, somebody may be able to suggest a less complex way of doing it...

    "If i want to fill the memory with some code like 'jump to ###', what is the most easiest way to do this?"

    How about a table of function pointers?
    (although, of course, that would be calls rather than jumps)

    Again, if you explain what you're trying to achieve, somebody may be able to suggest a simpler and/or more appropriate way of doing it...

Children
  • "try this to understand what i need"

    That doesn't say anything about why you think that you need to fix this table at an absolute address.

    Of course, you may well have very good reasons; but if it isn't really necessary to your application, then you can make your life a whole lot easier by removing the unnecessary restriction!

    So, again, if you say what you're actually trying to achieve then people may be able to suggest alternative ways to do it without having to resort to fixed, absolute addresses - thus saving you all this grief with scatter loading, etc!

  • Of course, you may well have very good reasons; but if it isn't really necessary to your application, then you can make your life a whole lot easier by removing the unnecessary restriction!

    Anybody said to you that my life is not easy because of a fixed address??
    Maybe this restriction is unnecessary to you... think about it.

    So, again, if you say what you're actually trying to achieve then people may be able to suggest alternative ways to do it without having to resort to fixed, absolute addresses - thus saving you all this grief with scatter loading, etc!

    Mr. Sudivh already helped me with the answers that i was looking for. If i want some alternative to what i want to do, ill post a thread with this title: "Help, i need a alternative to do..."

  • 90% of the users who get into troubles with absolute addresses, jump tables etc are trying to solve the wrong problem.

    How do we know that you are not among those 90%? That is a reason why a well defined question normally mentions the reason behind the problem. Even if you think your indended solution is the best, you might be wrong.

  • "Anybody said to you that my life is not easy because of a fixed address??"

    Yes: you did!

    On 28-Sep-2007 at 07:37 you yourself said, "its seems a little complex"

    As I said at the time, it is the fixed address that makes it "complex" - it would be a lot simpler it it weren't for the fixed address!

    But, if you're happy with a "complex" solution where a simple one may well be sufficient - then, of course, you don't need any more suggestions!

    "If you see every problem as a nail, then you will always propose a hammer as the solution"

    Or, as Hans-Bernhard Broeker once said,

    "This ... only proves that if you absolutely insist, you can drive a 10-inch nail into concrete using a fine-tip soldering iron, even if you have a perfectly usable hammer at hand. It spectacularly fails to answer the actual question, though: why the heck would anyone want to do such a thing?"
    http://www.keil.com/forum/docs/thread10430.asp