Can the SD card example for RT1052 use mimxrt1052xxxxx_flexspi_nor_sdram.icf?

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

Can the SD card example for RT1052 use mimxrt1052xxxxx_flexspi_nor_sdram.icf?

Jump to solution
2,015 Views
1914795885
Contributor II

Hello

I wanted to use the sd card function of RT1052, but found that mimxrt1052xxxxx_flexspi_nor_sdram.icf was not used in the example.When using mimxrt1052xxxxx_flexspi_nor. icf, the sd card can work normally, but when using mimxrt1052xxxxx_flexspi_nor. icf, the sd card cannot work.

Below is the print information using mimxrt1052xxxxx_flexspi_nor.icf

Freq : 47999999 HZ

Card inserted.

Make file system......The time may be long if the card capacity is big.

Create directory......

Create a file in that directory......

Create a directory in that directory......

List the file in that directory......
General file : F_1.TXT.
Directory file : DIR_2.

Write/read file until encounters error......

Write to above created file.
Read from above created file.
Compare the read/write content......
The read/write content is consistent.

Input 'q' to quit read/write.
Input other char to read/write file again.

Below is the print information using mimxrt1052xxxxx_flexspi_nor_sdram.icf

Freq : 23999999 HZ

Card inserted.

Make file system......The time may be long if the card capacity is big.

Create directory......
Make directory failed.

Create a file in that directory......
Open file failed.

Create a directory in that directory......
Directory creation failed.

List the file in that directory......
Open directory failed.

Write/read file until encounters error......

Write to above created file.
Write file failed.
Set file pointer position failed.
Read from above created file.
Read file failed.
Compare the read/write content......
Compare read/write content isn't consistent.
The read/write content is consistent.

Input 'q' to quit read/write.
Input other char to read/write file again.

Best regards

Labels (1)
0 Kudos
1 Solution
1,665 Views
jorge_a_vazquez
NXP Employee
NXP Employee

Hi main i

No, this example code is not included in the SDK software, but you can find it associated with the application note:

https://www.nxp.com/docs/en/application-note-software/AN12110SW.zip 

Hope this helps

Regards

View solution in original post

0 Kudos
8 Replies
1,665 Views
jorge_a_vazquez
NXP Employee
NXP Employee

Hi main i

Are you using the latest SDK (v2.5)? I have checked the example code that you mentioned, but there isn't any  mimxrt1052xxxxx_flexspi_nor_sdram.icf. I only see the mimxrt1052xxxxx_flexspi_sdram.icf which works correctly in my side.

I also checked the other ICF files from the IAR SDK package and all of them work correctly.

Best regards

Jorge Alcala

0 Kudos
1,665 Views
1914795885
Contributor II

Hi Jorge Alcala

 

Can you send me the file mimxrt1052xxxxx_flexspi_sdram.icf ? 

I want to use spifalsh and sdram in the SD card example.

 

Best regards

main i

0 Kudos
1,665 Views
jorge_a_vazquez
NXP Employee
NXP Employee

Hi main

Sorry, the name of the .icf that I put was incorrect, the .icf that is included in the example is  mimxrt1052xxxxx_sdram.icf. This example code will run in RAM ITCM, but it will use the SDRAM for data memory, including STACK, HEAP, ZI, and RW memories, this example does not boot in the SDRAM. You can find the example in the latest SDK 2.5.

Could you clarify what you need? do you need that the code run in a NOR flash and uses the external SDRAM for data memory?

Regards

Jorge Alcala

0 Kudos
1,665 Views
1914795885
Contributor II

Hi Jorge Alcala

 

I wanted to make a video recorder application that could save video to a local sd card, so I needed NOR flash and external sdram. Can it be achieved by modifying XXX. Icf?

Best regards

main i

0 Kudos
1,665 Views
jorge_a_vazquez
NXP Employee
NXP Employee

Hi main i

Ok, thanks for the clarification. So you actually don't need to boot from SD, you can actually boot from the external hyperflash or NOR memory and then save the image in the SD using the SDRAM as data memory. This application is actually in the AppNote;

Developing a Camera Application with i.MXRT Series

https://www.nxp.com/docs/en/application-note/AN12110.pdf 

It was developed in IAR, but it should be a straightforward migration to a new IDE.

Hope this could help you, Please let me know if you have any other question.

Regards

0 Kudos
1,665 Views
1914795885
Contributor II

Hi Jorge Alcala

Thank you very much, this is very helpful to me, but I did not find this source code in sdk_2.5.0_evkb-imxrt1050, can you send me the source code in a document?

QQ图片20190226103046.png

Best regards

main i

0 Kudos
1,666 Views
jorge_a_vazquez
NXP Employee
NXP Employee

Hi main i

No, this example code is not included in the SDK software, but you can find it associated with the application note:

https://www.nxp.com/docs/en/application-note-software/AN12110SW.zip 

Hope this helps

Regards

0 Kudos
1,665 Views
1914795885
Contributor II

Hi Jorge Alcala

I wanted to make a video recorder application that could save video to a local sd card, so I needed NOR flash and external sdram. Can it be achieved by modifying XXX. Icf?

Best regards

main i

0 Kudos