This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TM4C1292NCPDT: 07/12/2017

Part Number: TM4C1292NCPDT

Hi,

To store a variable in flash memory and to update the variable, I used the following code.

  

The image is to be executed based on the variable in flash memory. But while using writePermanentsToFlash(), the image is not executing. If I comment it, then the first image executes. What will be the problem? Should I change anything inside the function? Please give me a suggestion.

Thanks & Regards

Sandra

  • May I suggest that your "Subject/Title" provides NO insight into your topic - which may reveal a lack of care/consideration for your readers.

    Now your post "is" nicely detailed - yet I believe you'd fare better by making (some) effort to SELL your post - and that (must) begin with a clear framing of your subject...

    In support of my belief - consider those who, "Share your curiosity - or issue" (or whom may have recently experienced - and SOLVED - that very issue!)       The barrenness of your subject fails to signal your post's content - thus (predictably) - most effectively FAILS to capture the attention of those most motivated & interested to assist...

    A "more effective" (i.e. (somewhat) communicating) Subject is embedded w/in the "Tag" line - for your consideration.       Your posts are good - it is their "Selling or Presentation" - which demands re-think...

  • Out of curiosity, what's the significance of the date Dec 7 such that you would make it your subject?

    sandra george78 said:
    But while using writePermanentsToFlash(), the image is not executing. If I comment it, then the first image executes

    I think more details are needed before anyone could approach an answer. In particular what does "the image is not executing. If I comment it, then the first image executes" mean?

    However I see several potential issues

    • attribute may not be supported by your (unnamed) compiler
    • You don't appear to have erased the flash

    Robert

  • The date was a mistake.

    I have to execute two images from boot code. The boot code and the two images are stored in flash memory. A variable has to be stored in the flash memory and according to the variable, switching between images has to be taken place on resetting. I used the above program to store variable and update it in flash memory. But write to flash function did not work properly. What can I do to make it work?

    Regards
    Sandra
  • sandra george78 said:
    But write to flash function did not work properly. What can I do to make it work?

    Did you read the rest of my message?

    Robert

  • Did poster not note - "date" (although hallmark of such posts) was a "mistake?" (yet always present)

    Might the (still) unaddressed "subject lapse" lead to (other) lapses?    (i.e. failure to properly respond)

  • Yes, It was a mistake.