- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello. This is my first question here. I am using xmc1100 for the first time. I want to erase and download program to xmc1100 using SWD protocol. But I read in relevant manuals that default and after-factory setting for boot mode is ASC_BSL. And to use SWD, we should change BMI or boot mode index to User mode with debug enabled (UMD). My question is that can I erase and download program to xmc1100 without changing BMI? Some previously designed xmc1100 boards are being used by customers and there is not any access to UART port for reprogramming through ASC_BSL mode and there is just a connector for access through SWD?
Many thanks for your time.
Solved! Go to Solution.
- Labels:
-
XMC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
ASC BSL in XMC1100 is selected by a single BMI value but it allows to download user code/data via several variants of pins, modes and USIC0 channels:
• Channel 0
– full duplex mode with RxD at P0.14 and TxD at P0.15
– half duplex mode with RxD/TxD at P0.14
• Channel 1
– full duplex mode with RxD at P1.3 and TxD at P1.2
– half duplex mode with RxD/TxD at P1.3
Note: The above set of pins also accommodate all the assignments for SWD/SPD(debug) interfaces.
So you will have to change the BMI using the UART interface an then use SWD interface.
Best Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
ASC BSL in XMC1100 is selected by a single BMI value but it allows to download user code/data via several variants of pins, modes and USIC0 channels:
• Channel 0
– full duplex mode with RxD at P0.14 and TxD at P0.15
– half duplex mode with RxD/TxD at P0.14
• Channel 1
– full duplex mode with RxD at P1.3 and TxD at P1.2
– half duplex mode with RxD/TxD at P1.3
Note: The above set of pins also accommodate all the assignments for SWD/SPD(debug) interfaces.
So you will have to change the BMI using the UART interface an then use SWD interface.
Best Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Many thanks @Vasanth for the answer. As I understand from your answer, using j-link, xmc-link and other programmers supporting SWD, will not also work if related BMI bit for SWD is not changed? Is it correct? Thanks again.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Yes. If debug system must be enabled - start-up mode with debug support is selected in Boot
Mode Index. The device startup software takes care of this. So the BMI register value should be set in such a way that debug interface is enabled. The BMI register has bits corresponding to which of the pins to be used as SWD/SPD interface. This also needs to be set according to your previous hardware design.
Best Regards,
Vasanth