MPC5744P Flash

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

MPC5744P Flash

5,333 Views
eautopower
Contributor IV

Hi:

   How do I implement FLASH read, write, and erase?

    I read datasheet. Is the address code downloaded to FLASH 0X01000000-0X01FFFFFF?

pastedImage_2.png

if i want to do CAN bootloadr, I wrote the application layer in Simulink,How to change the interrupt vector?

Tags (1)
23 Replies

3,412 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

On our web site there is complete flash SSD driver for MPC5744P.

http://www.nxp.com/downloads/en/device-drivers/C55_JDP_SSD.exe 

Documentation is attached to driver.

After reading it you should have no issues to work with flash.

Peter

0 Kudos

3,406 Views
liuushiquan
Contributor I

Hi Peter,

  About SSD driver,  Could you give me a demo project (S32DS,  MPC5746R), many thanks.

0 Kudos

3,406 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

There is no example project in S32DS for MPC5746R.

But the SSD package is driver. So I see no issue here to use it with S32DS.

Peter

3,406 Views
bjrajendra
Senior Contributor I

Hi Peter,

Good Morning.

I'm importing the code from CCW to S32DS. As I'm using the SSD drivers of CCW, Can I  use the same source and headers in S32Ds also, as I doubt the compiler is different now.

Also, there is one confusion. I had a few folders which one to be used in the below folders for CW, Diab & GHS?

Also, it includes subfolders.

C:\Program Files (x86)\Freescale\Standard Software Driver v1.0.3\xPC56xx_C90LC\Driver\XX\vle

C:\Program Files (x86)\Freescale\Standard Software Driver v1.0.3\xPC56xx_C90LC\Driver\XX\BookE

Should I go for vle or BookE

Kindly help in choosing the right folder for using these drivers in S32DS.

Thanks in advance,

Raju

0 Kudos

3,408 Views
eautopower
Contributor IV

look this program:

pastedImage_1.png

why the C55FMC.LOCK0.R = 0X00000200 is unlock mid block 0x00FB_8000 - 0x00FB_FFFF?

pastedImage_2.png

pastedImage_4.png

datasheet no any information.

0 Kudos

3,412 Views
eautopower
Contributor IV

Peter:

   i have already see the Documentation,but i still unknow about  Flash block  select .

like:

 pastedImage_1.png

the datasheet say middle block number  is six:
pastedImage_2.png
if i want erase the 0x00FD000-0XFDFFFF block, the MIDSEL[3] =1? 
0 Kudos

3,412 Views
my_souls
Contributor III

There is an official interface to the Flash API.

I do the CAN boot loader, APP is divided into two projects, APP HEX data written to Flash.

0 Kudos

3,412 Views
eautopower
Contributor IV

Hi:

 Can you give me the read, write and erase FLASH  for reference?

0 Kudos

3,412 Views
my_souls
Contributor III

http://www.nxp.com/downloads/en/device-drivers/C55_JDP_SSD.exe 

Download and extract, there are C55 FLASH manual and demo.

The following is the interrupt vector table sections.ld file.

.intc_vector_table : ALIGN(4096)
{
*(.intc_vector_table)
} > m_text

You can add an interrupt vector table to the code that links to the flash
Const uint32_t __attribute __ ((section (". Intc_vector_table"))) IntcIsrVectorTable [] = {};
You can then operate on the register.

// Initialize the core IVPR
Xcptn_xmpl ();

// Select software (HVEN = 0) or hardware (HVEN = 1) vector mode
INTC_0.BCR.R = 0x00000000;

// Set the INTC ISR vector table base address.
INTC_0.IACKR0.R = (uint32_t) & IntcIsrVectorTable [0];

These files, the new project will automatically generate this code.

pastedImage_2.png

3,412 Views
sami_unlu
Contributor I

Dear Kun Liu

Can you share the MPC5744P bootloader with source file, and if you have can bootloader can you share too ?

sami.unlu@ortem.com.tr

Thank you very much

feigao

kunliu

0 Kudos

3,412 Views
eautopower
Contributor IV

Hi kun:

thank you for your reaply.

  Can you provide examples of your C code about flash erase and write to me?

For MPC5744P, I'm a beginner,I read the API you gave me, I don't know very well.

 thank you very much,

0 Kudos

3,412 Views
my_souls
Contributor III

Mail me to leave one, I sent you in the past.

0 Kudos

3,412 Views
fangzanbin
Contributor II

I am a beginner,Can you send the c code to me,thank you very much.  757661410@qq.com

0 Kudos

3,412 Views
youj
Contributor I

could you send the c code example to me, many thanks

my mail youjie0426@163.com

0 Kudos

3,412 Views
liushiquan
Contributor II

Hi Liu Kun,

   I also need the c code examples, could you send it to me? Many thanks.

   my mail: liushiquan@sh-henergy.com

0 Kudos

3,412 Views
bhavaniananda
Contributor II

Hi Kun Liu,

I have read this thread and it will be very helpful if you mail me that c code examples as I am also in need of one.

my email address: ananda21.bhavani@gmail.com

0 Kudos

3,412 Views
my_souls
Contributor III

Already sent.

3,412 Views
feigao
Contributor I

I'm doing the CAN Bootloader,I want a Flash driver example code for MPC5744P,could you sent to me,many thanks!

my email address: 379068517@qq.com

0 Kudos

3,412 Views
feigao
Contributor I

I'm also working on MPC5744P CAN Bootloader,could you send the c code example to me, many thanks

my mail: 379068517@qq.com

0 Kudos

3,412 Views
bhavaniananda
Contributor II

Thank you!

0 Kudos