Other Parts Discussed in Thread: UNIFLASH,
Tool/software:
Hello everyone,
I am having an issue with UniFlash when trying to program my TMS320F280049 using an Olimex XDS100-v2. I have a firmware locked with DCSM. My problem is that I need to create a batch file since I cannot use UniFlash manually; I can only run the batch file to program the boards.
The operations I perform with UniFlash are:
- Erase flash (entire FLASH)
- Set CSMPSWD passwords (Program Password)
- Set the GRABSECT/RAM (program GRABSECT/RAM)
- Set OTPSECLOCK (program OTPSECLOCK)
- Load the binary file with Binary Option checked and address 0x80000
- Finish
When I follow this procedure manually using the UniFlash GUI, everything works perfectly. However, when I generate the batch file directly from UniFlash, it seems not to work properly.
Let me explain in more detail: I don't get any error messages; in fact, it says it has been programmed successfully. The problem is that by observing the board's current consumption, it remains as if it was never programmed. With a virgin board, the current consumption is 8-10mA. During programming, it increases to 25mA. Once programmed with the UniFlash GUI, I get 40mA, which is correct. But if I use the batch file, the consumption goes from 8-10mA to 25mA during programming, and then remains at 8-10mA once it finishes.
It seems like nothing is being programmed. The batch file hasn't been modified or anything; it just doesn't seem to work correctly. From a virgin board, with the UniFlash GUI, everything works perfectly. If I switch to another virgin board and run the batch file, I get the following: "C28xx_CPU1: Warning: Failed unlocking device (zone 1) after reset." But from the GUI, everything works fine.
I can't understand what's happening because if I follow the same procedure in the GUI, it works perfectly, but the batch file generated by UniFlash does not.
Can someone help me?