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.

F28035 serial flash programming issue

Other Parts Discussed in Thread: CONTROLSUITE

Hi

I have managed to boot from SCI/BOOT ROM of F28035, the problem is after restart - not booting from the newly written flash.

The SCI booting works - the first project tried was sci_echoback from controlSUITE\device_support\f2803x\v127\DSP2803x_examples_ccsv5\sci_echoback

Followed the steps from here and the upload worked well using a small serial software. The echo works back on the serial which indicates the sci_echoback is working well for SARAM based firmware.

In the second step I used the flash_f28035 (controlSUITE\device_support\f2803x\v127\DSP2803x_examples_ccsv5\flash_f28035) project which is a flash based project. Following the same steps upload is successful but after reset the new program does not starts. 

GPIO37 is set to 1 and GPIO34 is also 1 and TRST is also 0 to be in Mode 3, the chip was never programmed so the OTP values should be for flash (default one).

All I can see XRST is toggling time to time with ~55uS which seems to be the watchdog restart.

Checked the flash_f28035 project (didn't modified it at all, just compile) - for me it seems fine, entry point is defined at 0x3F7FF6 which is the flash's entry point. Linker commands are flash ones. The watchdog is disabled in the first lines (WD_DISABLE .set 1) so it shouldn't restart the MCU.

Is there anything I omitted? The ROM Boot doesn't writes the flash?

  • The ROM bootloaders do not have the capability of programming the Flash. It is not equipped with the Flash API. So, the ROM bootloaders can only load into RAM.

    If you are wishing to program the flash over SCI please see the serial_flash_programmer and flash kernels in controlSUITE. And read through the Application Notes which details the tools and the algorithm.

    www.ti.com/lit/sprabv4

    sal
  • TY for the answer - You-re right.

    I just write down my steps since the original forum entry is misleading (which comes up 1st to any boot-loader search in Google so that's 1st what users read):

    - the ROM boot-loader needs a bridge first which is completely RAM based. This is the f2803x_flash_kernel project from controlSuite examples.

    - after that is uploaded can handle any flash based project in 400 byte chunks (as example I used flash_f28035)

    As starting point the serial_flash_programmer can be used from controlSuite utilities. I didn't used the programmer directly since I need to control other pins as well together with the serial but managed to reuse parts of it and I can upload my code with it fine.

    TY again.