unable to run project build with eclipse

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

unable to run project build with eclipse

跳至解决方案
2,850 次查看
rewers
Contributor II

Hello!

I try to run the hello_world example, witch I build with eclipse, on the cortex M4 core on the i.MX7 Dual, but it doesn´t work.

First I build the project using the armgcc toolchain and the .bat-script included in BSP. I loaded the .bin-file on the M4 core successfully and it works fine.

Afterwards I imported the project to Eclipse and followed some instructions, which I found here, to set all properties correctly. I was able to build the project. But when I try to load it into the TCM of the cortex M4 and boot the core nothing happens.

Then I changed the linker script at properties-> C/C++ Build -> settings -> GNU ARM Cross C Linker -> General to MCIMX7D_M4_ocram.ld and tried to boot the same application from the OCRAM instead of the TCM, witch surprisingly works as it should.

So what am I doing wrong, when using the MCIMX7D_M4_tcm.ld linker script?

Thanks for your help.

Robin

标签 (2)
标记 (4)
0 项奖励
回复
1 解答
2,667 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Robin

may be helpful to check differencies between memories described on

AN5317 Loading Code on Cortex-M4 from Linux for the i.MX 6SoloX and i.MX7Dual/7Solo Application Processors

sect.3.1. On-chip memory view from each ARM core on the i.MX 7Dual/7Solo

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

If this will not help one can try to debug code step by step with jtag.

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

在原帖中查看解决方案

6 回复数
2,668 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Robin

may be helpful to check differencies between memories described on

AN5317 Loading Code on Cortex-M4 from Linux for the i.MX 6SoloX and i.MX7Dual/7Solo Application Processors

sect.3.1. On-chip memory view from each ARM core on the i.MX 7Dual/7Solo

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

If this will not help one can try to debug code step by step with jtag.

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

2,667 次查看
rewers
Contributor II

Just solved the original problem, i am running into the next one. The applications on the M4 start as they should now. Example projects as hello_world and the blinking_imx_demo run well. When I try to run the pingpong RPMsg demo the application starts with the prompt

RPMSG PingPong FreeRTOS RTOS API Demo...
RPMSG Init as Remote

as expected. But when I boot linux on the A7 and start the corresponding mod imx_rpmsg_pingpong nothing happens on the M4 side.

The example works fine, when I build the project using the ARM gcc toolchain with the .bat-file from the BSP, but it doesn't work as described above, when I build it with eclipse. Any suggestions what configurations I need to change in eclipse?

0 项奖励
回复
2,666 次查看
bettinawyss
Contributor I

Hi Robin,

I have the exact same problem, did you find a solution?

Regards, Betty

0 项奖励
回复
2,667 次查看
rewers
Contributor II

Hi Bettina,

unfortunately I could not find an eclipse-based sloution.

As a work around I use eclipse for developing and modified the makefiles from the examples manually to build the project.

0 项奖励
回复
2,667 次查看
bettinawyss
Contributor I

Hi Robin,

Thanks for the answer. I did something similar and used KDevelop.

Cheers

Betty

0 项奖励
回复
2,667 次查看
rewers
Contributor II

Thanks for your answer igor. I used the wrong memory locations indeed. I got confused by using the big memory map in IMX7DRM, especial because there are two memory regions for the OCRM on the M4 at 0x0090_0000 and 0x2020_0000. Are these, by the way, just two different addresses for the same physical memory? The short list with the memory locations in the application note helped to get the right overview.

0 项奖励
回复