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
已解决! 转到解答。
Hi huijieshen,
There is a RT1050_SDRAM_init.scp. You can download from here.
Regards,
Jing
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
Hi huijieshen,
There is a RT1050_SDRAM_init.scp. You can download from here.
Regards,
Jing