AM263P4-Q1: µC behaviour during flashing with Uniflash

Part Number: AM263P4-Q1
Other Parts Discussed in Thread: UNIFLASH

Tool/software:

Hey Experts,

ive a question regarding the µC behaviour during flashing with Uniflash.
Iam using:
CCS 12.8.1.00005
SDK 10_00_00_35
Uniflash 8.8.1.4983

When i connect my XDS110 debugging probe to my costum PCB via JTAG, the µC resets, runs for a bit and is then stoped. Also during flashing with Uniflash my µC resets and stats running for some time. He even does this several times during flashing. 

Where do i find options to set the behaviour of µC during flashing? I want the µC to be in a safe state during flashing, like in reset so nothing unpredictable can happen during flashing.

Best regards

Marcel

  • Also during flashing with Uniflash my µC resets and stats running for some time. He even does this several times during flashing. 

    In the case of this uC where there is no internal flash, the flasher writer (e.g. am263px_cc_flasher.out) is executed by the uC itself in RAM. There is no low level access to the OSPI flash by JTAG. When the flasher is running in uC RAM, it receives the application (or SBL) file from the UniFlash tool then writes it to the OSPI flash. So if the uC is resetting then it is unlikely to be completing the flashing correctly.

    Where do i find options to set the behaviour of µC during flashing? I want the µC to be in a safe state during flashing, like in reset so nothing unpredictable can happen during flashing.

    The behaviour during flashing is determined by the design of the UnifFlash flasher program (e.g. am263px_cc_flasher.out). 

    I guess the first question is: Does your custom PCB use the same OSPI flash IC as the development boards: am263px-cc or am263px-lp? If yes then you can use the flasher program that is supplied with UniFlash.

    If not, then you probably need to make a custom flasher: AM263Px MCU+ SDK: Uniflash Custom Flash Writer

  • I use an adapted version of am263px_lp_flasher.out (same flash ic with 64mb instead of 256, therfor i only changed the flash settings).
    The am263px_lp_flasher doesn't invoke any reset. What happens after the flasher has finished?

  • This question has changed from "µC behaviour during flashing with Uniflash" to "What happens after the flasher has finished?".

  • Depends on the definition of flashing. 
    My definition of the flashing is: 
    -conntecting debug probe
    -run Uniflash and hit flash botton
    -after uniflash says  [SUCCESS] Program Load completed successfully. unplug debug probe.

    Now i could observe that during the time uniflash is outputting this:

    the µC resets and starts the application a few times. My indication for this is that i output a PWM in the application. This inflicts a noise in my HW which i can hear.

    So iam not sure if the flash process is alinged with the info text i can see in uniflash or not. I can just tell you that it happens during this info text is written.

  • Found out that it was an HW issue. TRST was connected to reset of µC instead of nRST.