Execute .bin file in OCRAM

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Execute .bin file in OCRAM

跳至解决方案
1,220 次查看
torbenlüdeking
Contributor II

Hello everyone,

At this time i'm trying to get an .bin file to run in the OCRAM. I'm writing this File to the OCRAM by using the Serial Downloader.

Writing works without any problems. But when i send the JUMP_ADDR cmd it seems to work (no more responses from Serial Downloader).

Actually it isn't, I started thinking maybe i have a Problem in the Code so i made a really simple example which contains just a few Commands to light up the two LED's on my board. This code works perfectly fine, when it is transfered and executed vie CrossStudio and JTAG. Now i'm a bit curious what could be wrong am i missing some register settings bevore i can execute the Code after it has been transfered via Serial Downloader?

I download the Project to 0x3f000000 (sys0_OCRAM) and jumping to the same ADDR (This fits the Project settings that are used to build).

We are using the Vybrid on our own Setup (not the Tower Board). According to this the MFGTool is no option.

Best regards and thank you for your future answers

Torben

标签 (1)
0 项奖励
回复
1 解答
986 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Torben

please look at attached example and link below

iRAM (OCRAM) i.MX6 SDK Application

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
2 回复数
987 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Torben

please look at attached example and link below

iRAM (OCRAM) i.MX6 SDK Application

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
986 次查看
torbenlüdeking
Contributor II

Hello Igor,

Thank you very much for these examples, they helped me to get my Code right.

For someone who has the same problem i will explain what exactly was the Problem and what you have to do:

The .bin File that was created by CrossStudio was alocated at 0x3f000000 which is the base ADR of sys0_OCRAM.

To get such a file to run it is necessary to prepend the IVT and BootData (Vybrid RM Chapter: 19.6) to the File.

Because of this the Memory Map in Crosstudio has to be adjusted so that you can prepend your IVT.

Important to know is, that the Header has to look like this 0xD1002041 (length Field in MSB first)

The remaining Information have to be LSB first!

Now just transfer and jump to the same ADR you wrote to.

A nice weekend and best regards,

Torben