Reading the DEFLASH on K40.

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

Reading the DEFLASH on K40.

Jump to solution
1,369 Views
srinivasanganji
Contributor II

I am using a K40 Kinetis chip. I am trying to read from the DEFLASH. I am using the READ8 macro supplied by Freescale after I do a FlashInit(...).

I get a hard fault exception.

Labels (1)
1 Solution
1,271 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi

Thanks for the information!! I have implemented your code on my TWR-K40X256 which has a PK40X256VMD100 mounted. The code runs well on my side, so I think maybe your issue is a code issue, please try the attached project and kindly let me know if the problem is still there.

1.PNG

Hope that helps,

B.R

Kan

View solution in original post

0 Kudos
Reply
7 Replies
1,271 Views
Monica
Senior Contributor III

Hello Srinivasan,

how's the project going? Any breakthroughs?

Please keep us posted :smileywink:

Best regards,

Monica.

0 Kudos
Reply
1,271 Views
srinivasanganji
Contributor II

Well it's going on fine. I am able to read and write to the DEFLASH.

Thank You.

Regards

GRS

(G.R.Srinivasan

Cascademic Solutions Ltd.)

1,271 Views
Monica
Senior Contributor III

Great!

0 Kudos
Reply
1,271 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi,

Would you please provide information about the part number of the K40 device? if you could give a code snippet regarding READ8 issue, that would be better.

Thanks for your patience!!

B.R

Kan

0 Kudos
Reply
1,271 Views
srinivasanganji
Contributor II

FYI

Regards

Srinivasan Ganjigunte

Cascademic Solutions pvt. ltd.

0 Kudos
Reply
1,272 Views
Kan_Li
NXP TechSupport
NXP TechSupport

Hi

Thanks for the information!! I have implemented your code on my TWR-K40X256 which has a PK40X256VMD100 mounted. The code runs well on my side, so I think maybe your issue is a code issue, please try the attached project and kindly let me know if the problem is still there.

1.PNG

Hope that helps,

B.R

Kan

0 Kudos
Reply
1,271 Views
srinivasanganji
Contributor II

Thanks Kan. The part # is: PK40X256VLQ100. The READ8 macro is defined in the Freescale file

SSD_FTFx_Common.h as:

#define READ8(address)             

((UINT8)(*(VUINT8*)(address)))

I do a FlashInit(... ) which returns no error. After that I try to read the D-Flash at the base (
#define FLASH_BLOCK1_BASE   0x10000000   // Data flash - NVM


0 Kudos
Reply