I am designing a custom PCB with a DA14580 and another ARM microcontroller which drives the entire system. I've been looking at many solutions for programming, debugging, production testing, etc. I am confused by all the options!
我看到总体发展模式扫描rnal SPI/UART/I2C devices, then downloads code from one of these devices into RAM, then runs the code. If no external devices are present, it switches into JTAG/SWD mode.
1. Once it is in SWD mode, can I then connect with an SWD header, push code to the device's RAM, and then debug that way?
2. Is there anything I lose by using SWD instead of, for example, SPI?
Then, when ready for production, it looks like I can use SmartSnippets to program the OTP via SWD.
3. Is this true? (can I program OTP via SWD?)
I would write my own test/programming routine (which would use SmartSnippets CLI) and include it along with other unrelated system test routines.
4. Can I do this, or is it required to use prodtest.exe (discussed in AN-B-020) or equivalent?
5. Can I skip the XTAL Trimming step if I choose high-tolerance (10ppm) crystals?
Finally, say that everything I'm suggesting here is possible:
6. Does this mean that I don't need to break out any UART pins, at all?
Thank you for your time.

Thank you MT_dialog, I've learned a lot from your posts, both here and elsewhere :)
I hope to use SWD for both debugging and then programming the OTP. So it sounds like I don't need the UART interface except for the production tests via prod_test.exe.
Can prod_test.exe use any interface other than the UART?
Thank you,
Jon
Hi jfolsom,
No, the production test tool is using only the UART interface, no other interface is available. If you found the above post helpfull, please mark it as accepted.
Thanks MT_dialog
Thanks again :)