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.

Question about UniFlash programmer

Other Parts Discussed in Thread: UNIFLASH

Hi, 

I want to prgram  my 28335, but does not perform erase flash (because this program store in another sector). I want to test my jump command. When chip execute entire frist program then jump to second program and execute it.

Do you think my chip will be ok. I only have a 28335 so i don't want it die. )

Thanks.

  • Phien,

    You can do this.  Easiest way is to do 'Erase/Program/Verify' when you program your first program, and then just do 'Program/Verify' when you program your second program:

     

    Alternately, you can use the 'Erase Sector Selection' to control which sectors are erased.

    Regards,

    David

  • Hi David,

    When I programd first program i check "Erase, program, verify", but when i programmed second i checked " program, verify"  program it noticed (I clicked on program button in tree menu and loaded file .out):

    ERROR >> C28xx: Flash Programmer: Error encountered when writing to flash memory

    ERROR >> C28xx: GEL: File:...

    I think i happened because the second program may be overlap. Although, I make sure that first only use flashA and flashD, second only use flashE. I've already checked it in .map

    Thanks and best regards 

  • Phien,

    You must have some overlap in the two programs.  I just tested, no problem.  All you really need to do is list and select the two programs in Uniflash, and then hit the 'Program' button.  Uniflash will erase the flash once, and then program the two .out files.

    I forced overlap to occur in the two programs, and then I get the same error message as you.  Unfortunately, Uniflash does not report the address at which the failure occured.  But I really think there must be some overlap in your programs.  Double check your map files.

    Another thing to do is confirm that Uniflash will flash each program individually (i.e., check the selection box for only one program at a time, and click 'Program').  If Uniflash does this without error, then the problem is overlap.  If Uniflash has an error with one (or both) of the programs, then something else is wrong (such as a wrong address in the linker command, say for flash that does not exist).

    One the side, why are your splitting up the flash sectors that your programs are going in?  The bootloader should go in sector A, and if it needs more flash use B, then C, and so on.  The main app should also be allocated to contiguous sectors.  You don't have to do it this way, but I don't see any advantage to leaving unused sectors in the middle of your flash.

    Regards,

    David