Using SWD and and SPI on a PSoC 4 XT/XR BLE module is impossible?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I'm trying to build a device which has a single device SPI plus I2C devices. I want to use the CYBLE-224116-01 module (BLE 4.2 + PA/LNA) -- but what I say below also applies to the BLE 4.1 version, CYBLE-224110-00. I'd like to have SWD available for programming and debugging.

   

But I don't see how to make it work. Because:

   

1. SCLK 0 is only available on p0.7, which is needed for SWD, or p1.7, which doesn't come out of the module.

   

2. And you can't use SPI on SCB1 at all, since SCB1 MOSI does not seem to come out of the module on ANY pin.

   

To get around this, I'd have to add jumpers for "programming mode" in order to program, and wouldn't be able to use the debugger while keeping SPI live. This seems like a serious oversight, and will both make production programming and development more annoying than necessary.

   

Could things really be this screwed up? 

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Welcome in the forum.

   

Use the UDB based SPIM (v 2.50). This design will fit.

   

 

   

Bob

View solution in original post

0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Welcome in the forum.

   

Use the UDB based SPIM (v 2.50). This design will fit.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Thanks! Seems goofy of them to not support it, but I guess I can use the other SCB for UART now. 

0 Likes