SPRABJ8D September 2022 – May 2025 AM2612 , AM2631 , AM2631-Q1 , AM2632 , AM2632-Q1 , AM2634 , AM2634-Q1 , AM263P2 , AM263P2-Q1 , AM263P4 , AM263P4-Q1
The following pins are configured in the device boot ROM to enable boot from the OSPI (or QSPI) flash device. These pins must be used in the connection between the AM261x MCU and flash device.
| Package Name | Function Name | GPIO # | PinMux Mode # |
|---|---|---|---|
| OSPI0_CSn0 | OSPI0_CSn0 | 0 | 0 |
| OSPI0_CLK0 | OSPI0_CLK0 | 2 | 0 |
| OSPI0_D0 | OSPI0_D0 | 3 | 0 |
| OSPI0_D1 | OSPI0_D1 | 4 | 0 |
| OSPI0_D2 | OSPI0_D2 | 5 | 0 |
| OSPI0_D3 | OSPI0_D3 | 6 | 0 |
| MCAN0_RX | OSPI0_D4 | 7 | 2 |
| MCAN0_TX | OSPI0_D5 | 8 | 2 |
| MCAN1_RX | OSPI0_D6 | 9 | 2 |
| MCAN1_TX | OSPI0_D7 | 10 | 2 |
| Package Name | Function Name | GPIO # | PinMux Mode # |
|---|---|---|---|
| EPWM9_B | OSPI0_CSn0 | 62 | 6 |
| MCAN1_TX | OSPI0_CLK0 | 10 | 5 |
| OSPI0_CLK | OSPI0_D0 | 2 | 4 |
| PR1_PRU0_GPIO9 | OSPI0_D1 | 70 | 6 |
| MCAN0_RX | OSPI0_D2 | 7 | 5 |
| PR1_PRU0_GPIO2 | OSPI0_D3 | 69 | 2 |
| UART1_TXD | OSPI0_D4 | 76 | 2 |
| PR1_PRU0_GPIO0 | OSPI0_D5 | 67 | 2 |
| MCAN0_TX | OSPI0_D6 | 8 | 2 |
| PR1_PRU0_GPIO1 | OSPI0_D7 | 68 | 2 |
Booting from an OSPI flash requires the flash to be reset before loading data to the AM261x device. Directly connecting PORz or WARMRESETn from the AM261x MCU to the flash device makes sure that the flash is reset upon system power-on, as PORz, WARMRESETn are LOW during boot and drive HIGH once power supplies are stable. Make sure that PORz or WARMRESETn are at the correct IO voltage level as the flash device.
Figure 6-7 Resetting OSPI Flash Using
PORz or WARMRESETnThis implementation is recommended because there are both hardware and software reset options, and does not require an additional buffer. Any of the AM261x GPIOs listed in Table 6-9 can be used post-boot as reset inputs to the OSPI flash reset logic, per the device data sheet pin mux. Make sure that the voltage levels of the reset logic inputs and output align with the flash device IO voltage. The suggested implementation is shown in Figure 6-8.
Figure 6-8 Resetting OSPI Flash Using
OSPI0_RESET_OUT0 and PORz, WARMRESETn| GPIOx | PinMux Mode # |
|---|---|
| GPIO18(1) | 4 |
| GPIO20 | 1 |
| GPIO54 | 3 |
| GPIO64(2) | 2 |
| GPIO66(1) | 0 |
GPIO61 can still be used to reset the OSPI flash by software as OSPI0_RESET_OUT0. This signal must be connected to an AND gate with PORz, WARMRESETn as the other input to drive the reset input to the flash device. However, the GPIO61 signal must be buffered at boot to prevent the LOW signal from propagating to the OSPI reset logic. This can be done by configuring the buffer output enable pin with a pull-down resistor and driving the output enable using any GPIO on the AM261x device. Make sure that the voltage levels of the reset logic inputs and output align with the flash device IO voltage.
Figure 6-9 Resetting OSPI Flash using
Buffered GPIO61 and PORz, WARMRESETn