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.

CCS/LAUNCHXL-F28379D: Will LAUNCHXL-F28379D: support to boot from external SPI flash

Part Number: LAUNCHXL-F28379D

Tool/software: Code Composer Studio

If I hook a SPI flash on GPIO 58,59,60,61 to use SPIA boot do I need to change the Z1-BOOTCTRL register? If so... what do I change it to? Is there something else I need to do?

I simply want to read the program out of external flash and execute.

  • Wade,

    In standalone boot mode: You need to program Z1-BOOTCTRL register (0x7801E) as shown below. This assumes that you don't wish to change the default boot mode pins (GPIO 72 / 84). If you wish to change you can program OTP_BOOTPIN0/1 bit field as well.

    *(unsigned long *) 0x7801E  = 0xFFFF 045A

    In Emulation boot mode: You need to write 0x045A in 0xD00 to use SPI boot mode option which uses GPIO58 / 59 / 60 / 61.

    Regards,

    Manoj

  • Wade,

    In standalone boot mode: You need to program Z1-BOOTCTRL register (0x7801E) as shown below. This assumes that you don't wish to change the default boot mode pins (GPIO 72 / 84). If you wish to change you can program OTP_BOOTPIN0/1 bit field as well.

    *(unsigned long *) 0x7801E  = 0xFFFF 045A

    In Emulation boot mode: You need to write 0x045A in 0xD00 to use SPI boot mode option which uses GPIO58 / 59 / 60 / 61.

    Regards,

    Manoj

  • What if you don't want to use a GPIO pin to select boot mode... always SPI boot in my case. What would you set the OTP_BOOTPIN0/1 values to?

    Thanks.

  • Wade,

    BOOTROM code relies on boot pins to decide on boot modes. You don't have the option of have 0 boot mode pins on this device.

    If you always wish to always boot from SPI, you can get both your boot mode pins (default boot mode pins GPIO72 and GPI84 =1) pulled high. If you don't wish to use GPIO72 and 84, you can change that by programming bits 16:23 and bits 24:31 of Z1-BOOTCTRL register to GPIOs you wish to use. But, effectively you can have any GPIO's which are already pulled high in your device and configure your boot mode pins to that GPIO. This way from a system perspective it would look like a zero boot pins.

    Regards,

    Manoj