HyperRAM - HyperBus

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

cross mob
GoKo_4683011
Level 1
Level 1
5 sign-ins 5 questions asked First reply posted

Hello,

We are using the STM32L4R5 (Nucleo-144, L4R5ZI-P) to implement HyperRAM memory (S27KL0642) under hyperbus protocol. There is a problem between OCTOSPI and serial communication. Sometimes, when the OCTOSPI is being activated the serial port doesn't work.

Any help will be appreciated. 

 

 

 

0 Likes
8 Replies
PradiptaB_11
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 replies posted

Hi,

We will need more information to understand the issue better. 

1) Can you pass on your schematics for this application for the HyperRAM device.

2) Are you able to read the device ID. If not then the connections are not proper. 

3) If you are able to read device ID then do provide scope shots of read and write operations.

Thanks,

Pradipta.

Hi,

Here is the schematic we followed for the HyperRAM device wich is provided in datasheet:

Stark38_0-1626679836205.png

About the device ID, we can't read it but the memory drives RWDS. Maybe the timing specifications are wrong.

Stark38_2-1626680069061.jpeg

It seems that the motherboard keep waiting an answer from the device.

 

Thanks,

Stark

0 Likes
PradiptaB_11
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 replies posted

Hi,

The connections or timing specifications may be faulty if you are unable to read the device ID. We will need more inputs from your side to debug this together. Can you share the timings used for this. 

If you are not comfortable on sharing the data on public forum (due to confidentiality) we can  move to a case support.

Thanks,

Pradipta.

0 Likes

Hi,

I have an update: I can read the device ID. For the device S27KL0642, I read 0x0C81.

IMG_2927 - Copie (2).jpg

For the timing specifications, I used:

  • Frequency = 60 MHz
  • Trwr = 6
  • Tacc = 6
  • CS Bound = 15 (higher value also work)
  • CS# = H = 1

But reading the device ID didn't relsove the memory reading operation.

I tried to write a specific data (0xAB) to an address:

Command sequence:Command sequence:Frame shape:Frame shape:Data sequence:Data sequence:

And when I try to read, this is what I have:

Command sequence:Command sequence:frame shape:frame shape:Data sequence:Data sequence:

If I can access the device ID without issues, shouldn't I be able to access the memory ?

Thanks,

Stark

 

0 Likes
PradiptaB_11
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 replies posted

Hi Stark,

1) Can you kindly provide the complete screen shots from the logic analyzer. In some snaps the labels are not visible and in very few of them we can see the time co-ordinate. It is difficult to infer much info from partial snaps.

2) Please provide a snap of all the timing parameters for the simulation. 

3) As now you are able to read the device ID we can rule out any error in the schematics. So mostly it is the timing settings which may be leading to these errors.

Thanks,

Pradipta.

0 Likes

Hi Pradipta,

I'm sorry I don't have the logic analyser anymore. About the labels, the first is DQ[7..0], the second is CS, the third is CLK and the fourth is RWDS.

Maybe we can talk about the parameters I used:

  • Frequency = 60 MHz
  • Trwr = 6
  • Tacc = 6
  • CS Bound = 15 (higher value also work)
  • CS# = H = 1

Do you think they are correct?

Kind regards,

Stark

 

0 Likes
PradiptaB_11
Moderator
Moderator
Moderator
500 replies posted 250 solutions authored 250 replies posted

Hi 

On the parameters 

60 MHz is ok to use

Trwr = It should around 50-60 ns or higher

Tacc= It should around 50-60 ns or higher

Chip Select HIGH Between Transactions = >10 ns

can you kindly confirm all the parameters are as per above.

Thanks,

Pradipta

 

0 Likes

Hello,

My colleague answered your questions.

Any help will be appreciated.

0 Likes