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

Flash read and write with dyanamic condition

I need technical support for the following:
i am using KEIL3 and infineon XC161CJ microcontroller . i am facing a problem that i have to write dyanamic data using serial232 port from computer to microcontroller. this data should go in flash memory area online , sothat when it is powerd off this data will not be lost. again on poweron this data should be avalable.
i am unable to define a dyanamic variable in flash memory for this purpose. kindly suggest c program to define a variable in flash area which will be available after power off condition.
how to write, delete. erase this dyanamic variable?
waiting for early reply...
thanks and regards..
kamlesh verma
Defence research and development organization
ministry of defence
government of india

Parents
  • thanks for reply.
    you are absouletly right. i need to store tank calibration data. card is not having external ROM due to size constraints. i can store data defining constant data types and then i can fuse into onchip flash with the help of emulator tool i am using to download my program as well.
    but, in field this has to be done without emulator. by pressing a switch, microncontroller calculates value and NOW IT IS TO BE STORED IN FLASH. so that after power off and again poweron, this location will be read and executed. NOW HOW TO STORE???
    can i get C language code for this.
    kamlesh

Reply
  • thanks for reply.
    you are absouletly right. i need to store tank calibration data. card is not having external ROM due to size constraints. i can store data defining constant data types and then i can fuse into onchip flash with the help of emulator tool i am using to download my program as well.
    but, in field this has to be done without emulator. by pressing a switch, microncontroller calculates value and NOW IT IS TO BE STORED IN FLASH. so that after power off and again poweron, this location will be read and executed. NOW HOW TO STORE???
    can i get C language code for this.
    kamlesh

Children
No data