DA14580 circuit for booting from external SPI flash

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
andoridfm2013
Offline
Last seen:5 months 4 days ago
加入:2017-04-07 05:11
DA14580 circuit for booting from external SPI flash

Hi dialog,
I have some question about the circuit design about using external SPI flash in DA14580
my project need to use ADC, so I put the SPI flash to P0_ 0 3 5 6, but can I still use serial port P0_4 and 5 to program the external SPI flash? since it have
冲突的销P0_5,谢谢

Device:
PM_Dialog
Offline
Last seen:2 hours 4 min ago
Staff
加入:2018-02-08 11:03
Hi andoridfm2013,

Hi andoridfm2013,

Yes, you have conflict in the P0_5 when you use the serial port and the SPI flash, but you are able to override it by using a three way jumper. So, you will have to connect both SPI flash and UART with P0_5. But, could you please explain why you have referred the ADC? Be aware that the ADC GPIOs in the DA14580 chip are in P 0_0, P0_1, P0_2, P0_3 and not in P0_5. For more information, please take a look into the Table 1: Pin Description of the Da14580 datasheet.

Regards, PM_Dialog

andoridfm2013
Offline
Last seen:5 months 4 days ago
加入:2017-04-07 05:11
thank you for you reply,

thank you for you reply,

the reason I referred the ADC because when I check with datasheet, external SPI flash boot is only available at P 0_0, P0_1, P0_2, P0_3 or P 0_0, P0_3, P0_5, P0_6, as the first mapping will use up all the ADC, so I have to use second mapping, but it will have conflict in the P0_5. I am not quit understand what is "three way jumper" can you explain a bit more?

But now I think of it, is it ok I put the flash at P 0_0, P0_1, P0_2, P0_3 and use the ADC? since 14580 will load the program to ram then it will not access flash any more as I remember. Thank you for your help

PM_Dialog
Offline
Last seen:2 hours 4 min ago
Staff
加入:2018-02-08 11:03
Hi andoridfm2013,

Hi andoridfm2013,

With the “three way jumper” I mean a jumper that connects three pins in order to USE both ADC and SPI flash in the P0_5 GPIO. Could you please clarify if you want to boot from SPI flash? According toTable 1: Pin assignment and booting sequence from external devicesofthe DA14580/581/583 Booting from serial interfaces (AN-B-001)document, the DA14580 uses standard GPIOs (P0_0 , P0_3, P0_5, P0_6) to boot from SPI flash. Regarding the ADC, you have to use it in one of the P 0_0, P0_1, P0_2, P0_3 as I have mentioned in my previous comment.

Thanks, PM_Dialog