Hello,
I'm working on a design where I want the device to boot from a Slave SPI memory.
Therefore the P0_5 pin is connected to the MISO as indicated in AN-B-001.
I want to use this pin (P0_5) also as UART RX in order to program the SPI Memory (or to the SysRAM with SmartSnippet) and to do usual UART logging (Printf, etc..).
Is there any problem to share those two functionalities on the P0_5 pin?
如果这是好的,DA14580如何管理it during SPI memory programming via UART interface?
Do I need to drive the memory pin /CS high before using UART logging functions?
Thanks for your help,
Andrea
Device:
Hi Andrea,
When the 580 boots up (bootloader runs) it will use the predefined pins and will boot from the available external peripherals. After you code boots up you can alter the GPIO peripherals in whatever function you want and that way you can use the pins as a UART interface. About programming your SPI memory though UART when using smart snippets the tool donwloads a firmware on the 580 (flash_programmer located in the utilities folder in the SDK - you can check it out) that configures the ports accordingly.
Thanks MT_dialog