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.

Boot ROM problem - tms320f28377D from SCI

hello,

We are trying to remote update flash with SCI with C2Prog.

our SCI connected to SCI-Boot1(SCITXDA: GPIO28,SCIRXDA: GPIO29) and not to default SCI.

we tried to change the OTPBOOTCTRL to 0x0000815A with an on-chip Flash toll (RMS320C28XX) from Code Composer Studio Version: 6.1.1.00022.

it let us to program this only once, as mentioned in data sheet, but it didn't help

in C2prog we passed the first phase when i guess it uploads the api flash program and it stuck. 

we tried to update flash with Jtag, and its doesnt run from flash anymore.

what do you suggest to do and how do we change to SCI-Boot1?

tnx

  • Hi,

    Did you check if the value you programmed in OTPBOOTCTRL location is correct. Also the ECC values for the same programmed as expected? You should be able to view this location via CCS memory watch window.

    we tried to update flash with Jtag, and its doesnt run from flash anymore.

    Are you able to programmed the flash correctly via JTAG (I assume it's via CCS flash plugin) but code execution does not jumps to Flash or programming itself is not happening?

    what do you suggest to do and how do we change to SCI-Boot1?

    Updating the value in OTPBOOTCTRL location is correct method to change the BOOT options.

    Regards,

    Vivek Singh

  • hi, thank you for your reply

    Vivek Singh said:
    Did you check if the value you programmed in OTPBOOTCTRL location is correct. Also the ECC values for the same programmed as expected? You should be able to view this location via CCS memory watch window.

    yes, the value is as same as i wrote. is there any way to change it ?

    Vivek Singh said:
    Are you able to programmed the flash correctly via JTAG (I assume it's via CCS flash plugin) but code execution does not jumps to Flash or programming itself is not happening?

    i guess the flash programmed correctly, the CCS is erased and programmed all flash areas. but code execution does not jumps to Flash 

    Vivek Singh said:
    Updating the value in OTPBOOTCTRL location is correct method to change the BOOT options.

    is there any wat to change that value after I programmed once, it return errors.

    how properly to update value in OTPBOOTCTRL , beside using Jtag and CodeComposser studio

    tnx again

  • Hi,

    is there any wat to change that value after I programmed once, it return errors.

    It's OTP (One Time Programmable) location and can not be changed once programmed.

    how properly to update value in OTPBOOTCTRL , beside using Jtag and CodeComposser studio

    For Ist time programming these locations are just like other normal flash locations hence any flash programing tool can be used to program it. Only difference is that once these locations are programmed, it can not be erased.

    On execution not jumping to Flash, where does PC points to after programming is done. CCS should force the PC to program entry point after programming and that should work.

    Regards,

    Vivek Singh

  • hi,
    1. it doenst start from flash. what do you suggest to do/check?
    2. wht does c2prog can't program flash ? what do you suggest to do/check? if we programed correct to sci-boot option 1, not to default.
  • Hi Vivek.
    any ideas ?
    tnx
  • Hi Alan,

    Sorry for late reply.

    Could you provide answer to following query in my earlier post -

    >>>>>On execution not jumping to Flash, where does PC points to after programming is done. CCS should force the PC to program entry point after programming and that should work.

    2. wht does c2prog can't program flash ? what do you suggest to do/check? if we programed correct to sci-boot option 1, not to default.

    I did not understand the issue. I thought you were able to program the flash properly. Is that not the case?

    Regards,

    Vivek Singh 

  • hi,

    The issue is that we can't program flash from c2prog with sci boot option 2.

    we can program flash with jtag, from CCS but the code doesn't run from flash after a reboot.

    so there are 2 issues.

    thank you.

  • Alon,

    Both issues are realted. If you are not able to program flash with SCI boot option then it means that boot option is not working hence execution will not jumps to flash (which happens at the end of boot process). Could you check the value in NMISHDFLG register after you try to boot via SCI option 2?

    Regards,
    Vivek Singh