Author Topic: J-Link Pro to program 3 wire SPI ???  (Read 1397 times)

0 Members and 1 Guest are viewing this topic.

Offline luudeeTopic starter

  • Frequent Contributor
  • **
  • Posts: 274
  • Country: th
J-Link Pro to program 3 wire SPI ???
« on: October 04, 2023, 07:52:20 am »


Hi Guys,

I have a J-Link Pro, and am wondering if it can program SPI flashes with DI & DO (MISO & MOSI) tied together ?

The controller requires that we connect the MISO and MOSI together, it has a single SDIO pin, but does in
it's data sheet specify a standard FLASH (W25X05CLS) with 4 pin SPI interface.

I can't find anything in the Segger/J-Link documentation ....

Any pointers appreciated.

Best Regards,
rudi
 

Offline ajb

  • Super Contributor
  • ***
  • Posts: 2607
  • Country: us
Re: J-Link Pro to program 3 wire SPI ???
« Reply #1 on: October 04, 2023, 03:33:21 pm »
I doubt it can program them directly, but don't know for sure.  You can use J-Flash to program external memories connected to a supported MCU--it loads a small application into RAM, then it passes data to the application to be written to the memory.  I haven't used that feature and don't know what the limitations are, but might be worth looking at. 
 

Offline GromBeestje

  • Frequent Contributor
  • **
  • Posts: 280
  • Country: nl
Re: J-Link Pro to program 3 wire SPI ???
« Reply #2 on: October 04, 2023, 06:03:23 pm »
You can connect an SPI flash directly to a J-Link and program it. However, I never heard of SPI flash operation with the DI and DO connected together.
 

Offline DavidAlfa

  • Super Contributor
  • ***
  • Posts: 5912
  • Country: es
Re: J-Link Pro to program 3 wire SPI ???
« Reply #3 on: October 04, 2023, 08:01:11 pm »
Most SPI slaves will work fine with SDI/SDO joined together, as SDO is Hi-Z when receiving and SDI is "don't care" when transmitting.
(This should be checked in the datasheet).

But the master must tristate SDO, either manually by disabling the pin, or using SPI 1-pin half-duplex mode, where the same pin does both functions depending if receiving or transmitting.
« Last Edit: October 04, 2023, 08:03:47 pm by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 
The following users thanked this post: luudee

Offline luudeeTopic starter

  • Frequent Contributor
  • **
  • Posts: 274
  • Country: th
Re: J-Link Pro to program 3 wire SPI ???
« Reply #4 on: October 21, 2023, 02:44:01 am »

Just as a follow up:

I talked to tech support at Segger. They say it doesn't directly support it,
but I could use their DPK(?) to create a custom protocol.

Cheers,
rudi
 
The following users thanked this post: newbrain


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf