LPC54018JxM : IMG_BAUDRATE definition

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPC54018JxM : IMG_BAUDRATE definition

508 Views
belmontbob59
Contributor IV

When running firmware directly from internal flash (XIP), the startup code defines the following for the image header  for "spi_clock_freq" at offset 0x1C

IF :DEF: IMG_BAUDRATE
      DCD IMG_BAUDRATE;(0x1C) image baudrate
ELSE
      DCD 0 ; (0x1C) reserved
ENDIF

However, IMG_BAUDRATE is not defined anywhere in the SDK when compiling any example in XIP. 

What is the value to set IMG_BAUDRATE when running in XIP mode for best performance ?

Thank you 

Labels (1)
0 Kudos
3 Replies

412 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Bob,

Thank you for your interest in NXP Semiconductor products and
for the opportunity to serve you.
Actually, a good clock frequency is mainly determined by the QSPI flash chip you use.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

412 Views
belmontbob59
Contributor IV

pastedImage_11.png

LPC54018JxM does not have  QSPI external flash chip, it has QSPI internal flash, chosen by NXP.  What is the value to use for IMG_BAUDRATE for NXP's internal flash connected to

LPC54018JxM's QSPI for optimum performances ?

0 Kudos

412 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Bob,

Thanks for your reply.
Q1) What is the value to use for IMG_BAUDRATE for NXP's internal flash connected to LPC54018JxM's QSPI for optimum performances?
-- It'd better not exceed the system clock frequency in the application code, meanwhile, close to the system clock.
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos