When program link to sdram, download failed

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

When program link to sdram, download failed

Jump to solution
971 Views
huijieshen
Contributor II

Dear :

 

I use  MCUExpresso which run Linux to debug my RT1052 board. I use on DAPlink to connect my linux computer to the RT1050 board. The problem is as followings:

    I can download the my program to RT1052 when I link the code to FlexRAM D-TCM. And I can also debug my code in this case.

    But when I link the code to SDRAM, I downloaded the code to the board, no error reported. But the code doesn't work at all. Of couse I can't debug use the DAPLink yet. 

    I think the problem may lies in the SDRAM is not initialed. (? Am I correct) .  So I try to merge the dcd.c register contents to RT1052_connect.scp. But When I read the dcd. I find it seems that the dcd.c is not just register writing.  I can't know code means like 

/* #8, command: check_any_bit_set, address: SEMC_INTR, value: 0x01, size: 4 */
0xCF, 0x00, 0x0C, 0x1C, 0x40, 0x2F, 0x00, 0x3C, 0x00, 0x00, 0x00, 0x01, 

   So I think I need help to make me success in downloading code to RT1052 SDRAM.

 

Best Regards

 

Labels (2)
0 Kudos
1 Solution
930 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi huijieshen,

There is a RT1050_SDRAM_init.scp. You can download from here.

https://community.nxp.com/t5/MCUXpresso-Community-Articles/Overview-of-using-the-MIMXRT1050-EVK-B-wi...

 

Regards,

Jing

View solution in original post

0 Kudos
3 Replies
959 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi huijieshen,

Please refer to this link.

https://community.nxp.com/t5/i-MX-RT/RT1020-SDRAM-and-SWD-debugging-problems/m-p/1057852

 

Regards,

Jing

0 Kudos
952 Views
huijieshen
Contributor II

Thank you for your information.

The problem is that I use RT1052 instead of RT1020 so the 1020 connect script is unusable to me.

Some time I can download the code to SDRAM, but when the code runs, the hardware fault will bounce out of the IDE. It will says I will try to access memory address such as 0xfffffffe. So I think the main reason should be in SDRAM is not initialed, So  I need a way of transform dcd to connect script.  

I need to know how to process the things as following when I writing connect script :

/* #2, command: check_any_bit_set, address: SEMC_INTR, value: 0x01, size: 4 */
0xCF, 0x00, 0x0C, 0x1C, 0x40, 0x2F, 0x00, 0x3C, 0x00, 0x00, 0x00, 0x01,

can I just ignore them.

 

Best Regards

Tags (1)
0 Kudos
931 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi huijieshen,

There is a RT1050_SDRAM_init.scp. You can download from here.

https://community.nxp.com/t5/MCUXpresso-Community-Articles/Overview-of-using-the-MIMXRT1050-EVK-B-wi...

 

Regards,

Jing

0 Kudos