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.

Flash memory

Other Parts Discussed in Thread: TMS320F28035, CCSTUDIO

I m using TMS320F28035, CCS 3 and while running a program in Flash it is generating following error:

data verification failed at address 0x3f6569, please verify target memory and memoty map.

please suggest the solution.

  • Nihal,

    Have you already programmed the code into the flash? This doesn't look like a runtime error. This looks more like a load error. Are you trying to "load" the code into flash instead of programming it?

    Regards,
    Dave Foley

     

  • I am trying to load the program into Flash memory. do i need to make some changes...? I am using TMS320F28035 and trying to load a demo program of "Flashing LED" in flash memory.

  • Nihal,

    I'm assuming you have a demo that currently runs out of RAM correctly and now you want to put it into flash and run it from there. You have to change the linker command file (.cmd) so that the address of the code (.text) is located in flash memory. Then recompile your project. Then you have to program the code into an erased flash. You can do this with the flash plugin for CCS. There are also several different stand alone tools that can do this. Let me know if this helps.

    Regards,
    Dave Foley

     

  • I have tried to load the program into Flash on some other Computer and acc. to your suggestion, i have got the correct result and its being loaded into the flash. But, with my PC some error is there and i m not able to rectify it inspite of compiling  the .cmd file for Flash. Error is same "verify the target memory and memory map. " do i need to install the CCStudio_v3.3 again.

  • Nihal,

    Do you get the error when you try to program or when you try to run after programming? You may have the wrong memory map. Try disabling your memory map (Options->Memory Map) and then try it. If that fixes it I suspect you are loading the wrong GEL file (the memory map is set in the GEL file). Check to make sure your configuration is set for the correct device.

    Regards,
    Dave Foley

     

  • The demo program for Flashing Led is now running successfully in Flash. But, when i try to use the IQMATH for some computation in the program it does not give the o/p and neither shows any error. The same program gives correct result in Ram but in falsh mode the pogram is not been loaded. Do, Flash does not work with IQMATH...?

    do i need to make some changes in the program..??? Please help.

  • Nihal,

    IQMath should work with internal Flash. Again, you will need to relink to flash, just like for the LED demo code. I'm confused by your statement that "in flash mode the program has not been loaded". It sounds like you are saying there was a programming error, but in another sentence you are complaining that it is not running correctly. Which is it? Did it program correctly? Can you see the code in the flash when you look at those addresses in CCS?

    Regards,
    Dave Foley

     

  • I have relink to flash. the instructions without the use of IQ-Math are working properly.

    like:

       Toggling of port and On/Off of the Led. These code runs successfully.

     

    but in the same program instruction using _IQ are not giving the correct o/p. i am using _IQ 24.

    On changing the value of IQ, still o/p is not correct. On Loading the program into the Flash, it does not generate any error.

    I am using ADC for reading the data, EPWM and PID.

    The program runs in the RAM.

    If you want to have a look to the Program, i'll send you. Please reply....

    Please suggest the solution.

     

  • This could be a linker problem with the linking of the IQ libraries.  Are you able to post your linker command file to help verify if it is or not?

     

    Thanks

     

    Tim

  • I have linked the IQ library also.. still the same problem. IQ is of 32-bit, is there any memory mapping problem between Flash and IQ-Math.???

     

  • Nihal,

    There is no compatibility issue with running your code from Flash and using the on-chip IQMath functions contained in the boot ROM. Are you embedding the IQMath symbol library (TMS320x2803x_iqfuncs.cmd) in your project? I see in an earlier post you mentioned using _IQ. If this means you are calling the function from the C environment using the leading "_", this is probably your problem. Leave the underscore out. The C compiler puts that in for you.

    Regards,
    Dave Foley

     

  • Yes, i am using C environment and i'll work on your recommendation. I'll tell u later, if that was the problem.