About advanced usage of C programming

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

About advanced usage of C programming

502 Views
童子松下
Contributor I

Hello, everyone:

  I am participating in a development project on MPC5644A, and I encountered a problem while I was reading a example about the mode of flash memory.This is specific:


typedef void(* flash_fuc_type_ptr_t)(void);
typedef unsigned long int uint32_t;

uint32_t FlashArray1OptData[]=
{
0x3C60C3FB,0x80030000,0x60000001,
0x3C60C3FB,0x90030000,0x3C60C3FB,
0x80030000,0x5400056A,0x2C000000,
0x4182FFF0,0x4E800020
};

#if 1
(*((flash_fuc_type_ptr_t)FlashArray1OptData))();

I want to understand the effect of the last sentence will be executed?

(add another point:  the example is the mode of flash memory on MPC5634M. )

Tags (1)
1 Reply

395 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

Hi, it is apparently configuration of FLASH module that must be running from RAM. Could you specify what's your issue?