Dear Sir,
In our customized board can we use following Pins for GPIO purpose
1. P2.0,
2. P2.3,
3. P2.4,
4. P2.9.
In UM-B-049 Doc, It is mentioned that those pins for internal SPI flash. My doubt is, how internal SPI flash memory will affect the external Pin. So Can't we use those pin as GPIO pins. Kindly suggest the solution.
Device:
Hi Karthikeyan S,
You can change the functionality of your pins during runtime, but what you should consider about those pins is the activity during booting. As the datasheet indicates those 4 pins should not be used for any other purpose during the booting procedure since they are used in order to access the SPI flash.
Thanks MT_dialog
Dear MT_Dialog,
In the code (User_Peripheral_Init.c) we configured Ext SPI interface details in Port 2 . Until the processor executes the code(While in bootup) it will not come to know that there is an external SPI interface in port 2. So our ext SPI interface will not affect the internal SPI boot up activity. Is it correct? . By default if code is not there in OTP, It will take from Internal SPI in case of DA14583 and boot from SPI. So this procedure will happen by default as per the code written in boot loader or Do we need to configure Port 2.0,2.3,2.4,2.9 anywhere in the code in order to boot from internal SPI.
For Example: Suppose if some GPIOs are connected to LEDs for LED blinking Program in Port 2.0,2.3,2.4,2.9. LED will not start to blink until code will be copied from Internal SPI to
SRAM内存。所以它会影响procedu引导re and same thing is applicable if I connect Ext SPI flash for data storing not for Booting. Please suggest the solution.
Hi Karthikeyan S,
The bootloader of the 583 will go though the booting procedure and will eventually, after the advanced bootloader and the UART, scan for the internal memory and a valid image to the specified pins. On a second thought i think that there will be a problem in the booting procedure, since most of the SPI flash are active low and when booting the GPIOs of the 580 are pull down i dont think that you will be able to boot from the internal flash since you will have two active modules over one bus, and since you can't control the CS of the external memory you wont be able to boot. An easy solution would be to use different SPI pins for your external flash.
Thanks MT_dialog
Dear Sir,
Can I connect Ext SPI flash to PORT 0 (Pin P0.0,P0.3,P0.5,P0.6) and will configure those pin as SPI interface but already i configured Port 2.0,2.3,2.4,2.9 as SPI interface to boot from Internal SPI flash So Would not become a two SPI interface, if i configure Port 0 also?
One more confirmation Should I configure Port 2.0,2.3,2.4,2.9 Pin as a SPI to boot from internal SPI flash? Please let me know.
Hi Karthikeyan S,
The Pins that connect to the 583 internal flash dont require any configuration since the allready burned secondary bootloader will configure them in order for the 583 to boot. Yes you can configure other ports as SPI flash ports and connect to your external flash.
Thanks MT_dialog
Dear MT_Dialog,
We are struggle on this now we will proceed further. Thanks for your valuable suggestion.
Dear Sir,
Can we interface some GPIO in PORT 2.0,2.3,2.4,2.9 which are interfaced with Internal SPI flash. Will it affect the GPIO functionality. If it affects, suggest me what are all the pins can be used in PORT 2.
Awaiting for your suggestion....
Hi Karthikeyan S,
As i ve indicated before, the pins are capable of different configurations, even the ones that are on the 583 and interface with the SPI flash. The bootloader of the 583 will configure those pins in order to boot, after that you can reconfigure the pins to whatever functionallity you need. But you have to make sure when the device boots whatever you have on those pins not to affect the booting procedure.
Thanks MT_dialog