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
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.
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
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
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