import a image or a video in lpc54628 board and store it inside the flash memory, how to?

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

import a image or a video in lpc54628 board and store it inside the flash memory, how to?

1,976 Views
suraj78725
Contributor I

hi, i am suraj,

i am working on spi flash memory and i want to store an video inside the flash memory and make to display it in the run time, how to import an image or video in the case of that and make it visible??

with regards

suraj

0 Kudos
Reply
7 Replies

1,874 Views
suraj78725
Contributor I

thanks for the response

0 Kudos
Reply

1,867 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

 

Do you use NXP LPCXpresso54628 demo board? the demo board use winbond 25Q128, if you use different, the command is different. 

LPC54 has onchip FROHF96M, why not use it as SPIFI flash input. thus the environment can be eaier for you to test your spifi driver.

 

 

0 Kudos
Reply

1,968 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

HI 

You need to use graphics library.

Segger emWin is recommended. It is free to use for NXP customers.

https://www.nxp.com/design/software/embedded-software/nxp-emwin-libraries:EMWIN-GRAPHICS-LIBRARY

MCUXpresso SDK integrates the demo code. see

{SDK folder}\boards\lpcxpresso54608\emwin_examples

 

Have a nice day,

Jun Zhang

0 Kudos
Reply

1,963 Views
suraj78725
Contributor I

hi zhang,

thanks for the reply, i need a data to be stored in flash and view its device id, i too referred the datasheet given that is given in the files section. i need a reference guide 

should i want to use the lpcopen spifilibrary or some other thing.

with regards

suraj

0 Kudos
Reply

1,959 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi

To implement spifi flash for LPC546xx, please refer SDK demo code

{SDK install folder}\boards\lpcxpresso54608\driver_examples\spifi

lpcopen is not for LPC546xx.

 

Have a nice day

Jun Zhang

0 Kudos
Reply

1,875 Views
suraj78725
Contributor I

please do check the code which i have done.

in my board the crystal oscillator of producing frequency range 48 to 96, has been damaged and so i had to use to use the 12 mega hertz crystal oscillator 

can i do it so or any other things that associated with that crystal oscillator cannot be done without that one.

if so please do tell me a reply message.

i have attached the code for further reference

#include <stdio.h>
#include "board.h"
#include "peripherals.h"
#include "pin_mux.h"
#include "clock_config.h"
#include "LPC54628.h"
#include "fsl_debug_console.h"
#include"fsl_spifi.h"
int main(void) {

BOARD_BootClockFRO12M();
CLOCK_AttachClk(kFRO12M_to_MAIN_CLK);
CLOCK_AttachClk(kFRO12M_to_FLEXCOMM0);
CLK_GATE_DEFINE(AHB_CLK_CTRL0, 13);
CLK_GATE_DEFINE(AHB_CLK_CTRL0, 10);

SPIFI0->ADDR=0X9F;
SPIFI0->CMD=0X90984000;
SPIFI0->CTRL=0X488EFFFE;
SPIFI0->DATA=000000;

IOCON->PIO[0][24] = 0X00000106;
IOCON->PIO[0][25] = 0X00000106;
IOCON->PIO[0][26] = 0X00000106;
IOCON->PIO[0][27] = 0X00000106;
IOCON->PIO[0][28] = 0X00000106;
IOCON->PIO[0][23] = 0X00000106;
SPIFI0->CMD=0X9098C000;

return 0 ;
}

with regards

suraj

0 Kudos
Reply

1,932 Views
suraj78725
Contributor I

hi zhang,

ive tried the code and made it one of it 

for the basic one i need the device id, it is been showed a different one and frankly speaking i dont understand what is happening. 

can u please help me, i have uploaded the code pic for further reference.

0 Kudos
Reply