SPI boot/pin mux config question

chrisz
Posts: 4
Joined: Mon Jan 04, 2016 4:45 pm

SPI boot/pin mux config question

Postby chrisz » Mon Sep 05, 2016 1:49 am

Can the ESP32 boot off of any SPI interface other than SPI (e.g. HSPI, VSPI)? The reason that I ask is that if not, and maybe I'm missing something here, it doesn't appear that there's a pin config that support SPI boot, SD, and JTAG access.

Using the function 5 values for SD_*, MTDI is shared with SD_DATA2 on the alternate function and MTMS is shared with SD_CLK.

So is the aforementioned config possible (SPI boot, SD, and JTAG simultaneously)?

ESP_Sprite
Posts: 9708
Joined: Thu Nov 26, 2015 4:08 am

Re: SPI boot/pin mux config question

Postby ESP_Sprite » Mon Sep 05, 2016 7:51 am

It can boot from HSPI as well, if I recall correctly. Plus, you have the option of remapping pins after boot. I think you can even remap some _before_ boot, by using the efuses, but that's not documented yet.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: SPI boot/pin mux config question

Postby WiFive » Mon Sep 05, 2016 8:50 am

ESP_Sprite wrote:It can boot from HSPI as well, if I recall correctly. Plus, you have the option of remapping pins after boot. I think you can even remap some _before_ boot, by using the efuses, but that's not documented yet.
So there are more strapping pins? Are we also going to get some details/quantifications on the effect of gpio matrix routing on high speed signals?

chrisz
Posts: 4
Joined: Mon Jan 04, 2016 4:45 pm

Re: SPI boot/pin mux config question

Postby chrisz » Mon Sep 05, 2016 1:14 pm

ESP_Sprite wrote:It can boot from HSPI as well, if I recall correctly. Plus, you have the option of remapping pins after boot. I think you can even remap some _before_ boot, by using the efuses, but that's not documented yet.
I'm hoping for VSPI here -- HSPI gets in the way of JTAG. VSPI doesn't interfere with anything I care about. According to Greg, VSPI should work.

ESP_Sprite
Posts: 9708
Joined: Thu Nov 26, 2015 4:08 am

Re: SPI boot/pin mux config question

Postby ESP_Sprite » Mon Sep 05, 2016 2:06 pm

It's configurable by efuses. The effect of routing high-speed signals over the GPIO matrix is a latency of 2 clock cycles, iirc. It's somewhere in the techdocs, if memory serves.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

Re: SPI boot/pin mux config question

Postby WiFive » Mon Sep 05, 2016 10:05 pm

ESP_Sprite wrote:It's configurable by efuses. The effect of routing high-speed signals over the GPIO matrix is a latency of 2 clock cycles, iirc. It's somewhere in the techdocs, if memory serves.
Ah OK so program the efuse over serial first. I'm not sure if the docs specify the clock cycles, so thanks.

Who is online

Users browsing this forum: Bing [Bot] and 131 guests