14.3.7 QUADSPI memory-mapped mode
เมื่อถูกกำหนดค่าใน memory-mapped mode, the external SPI device จะถูกมองว่าเป็น an internal memory
ห้ามมิให้เข้าถึง QUADSPI Flash bank area ก่อนที่จะมีการกำหนดค่าอย่างเหมาะสมและเปิดใช้งาน the QUADSPI peripheral.
ไม่มากกว่า 256MB สามารถระบุที่อยู่ถึงแม้ว่า the Flash memory capacity จะมากกว่าก็ตาม.
ถ้าการเข้าถึงถูกทำไปยัง an address ภายนอกของ the range ที่กำหนดโดย FSIZE แต่ยังคงอยู่ภายใน the 256MB range, ดังนั้น a bus error จะถูกให้. ผลของ error นี้จะขึ้นอยู่กับ the bus master ที่ถูกพยายามเข้าถึง:
• ถ้ามันคือ the Cortex® CPU, bus fault exception จะถูกสร้างเมื่อเปิดใช้งาน (หรือ a hard fault exception เมื่อ bus fault ถูก
ปิดใช้งาน)
• ถ้ามันคือ a DMA, a DMA transfer error จะถูกสร้างและ the corresponding DMA channel จะถูกปิดใช้งานโดยอัตโนมัติ.
Byte, halfword, and word access types ถูกรองรับทั้งหมด.
รองรับสำหรับปฏิบัติ in place (XIP) operation ถูกจัดให้มีใช้, โดยที่ the QUADSPI จะคาดการณ์ the next microcontroller access และโหลดล่วงหน้า the byte ที่ the address ที่ตามมา. ถ้าการเข้าถึงในภายหลังถูกทำจริงๆที่ address ที่ต่อเนื่องกัน, the access จะเสร็จสมบูรณ์เร็วขึ้นเนื่องจาก the value ถูกดึงไว้ล่วงหน้าแล้ว.
โดยค่าเริ่มต้น, the QUADSPI ไม่เคยหยุด prefetch operation ของมัน, โดยจะเก็บ the previous read operation แอคทีฟด้วย nCS เก็บรักษา low ไว้, ถึงแม้ว่าไม่มีการเข้าถึงไปยัง the Flash memory เกิดขึ้นเป็นเวลายาวนาน. เนื่องจาก Flash memories มีแนวโน้มที่จะบริโภคมากขึ้นเมื่อ nCS ถูกยึด low, the application อาจต้องการทำให้ทำงาน the timeout counter (TCEN = 1, bit 3 of QUADSPI_CR) ดังนั้น that nCS จะถูกปลดปล่อยหลังจาก a period of TIMEOUT[15:0] (QUADSPI_LPTR) cycles ได้ผ่านไปโดยไม่มีการเข้าถึงใดๆเนื่องจากเมื่อ the FIFO กลายมาเป็นเต็มด้วย prefetch data.
BUSY ไปเป็น high ทันทีที่ the first memory-mapped access เกิดขึ้น. เพราะว่า the prefetch operations, BUSY จะไม่ตกจนกว่าจะมี a timeout, มี an abort, หรือ the peripheral ถูกปิดใช้งาน.