cancel
Showing results for 
Search instead for 
Did you mean: 

OctoSPI delay block code unnecessarily generated

tzijnge
Associate II

Hi Everyone,

I noticed that CubeMX (version 6.14.0) generates a call to HAL_OSPI_DLYB_SetConfig in octospi.c even though I have configured the OctoSPI to bypass the delay block.

  1. Is it safe to just remove any Delay Block related code?
  2. Is this a bug in CubeMX? It increases the code size, so I would like it to be removed if it's not necessary

My target is a Nucleo-U5A5.

 

Thanks!

Timon Zijnge

 

1 REPLY 1
KDJEM.1
ST Employee

Hello @tzijnge,

 

Thank you for bringing this issue to our attention.

I reported it internally.

• Bypassed if DLYBYP = 1 (no phase shift effect on DQS signal strobe). You can remove the delay Block related code.
• Used if DLYBYP = 0 to phase-shift DQS if unit delays are enabled and configured.

Internal ticket number: 205608 (This is an internal tracking number and is not accessible or usable by customers).

 

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.