嗨Giovanni
首先,我要感谢你给予的所有帮助,我希望我的问题足够通用,可以帮助他人。
仍然无法使无操作系统的测试应用程序工作。在我编写的裸板应用程序中,LED正常亮起,所有电路板跳线配置都是出厂默认设置。
测试应用程序在启动序列中很早就失败了。使用内置的CodeWarrior调试器,我必须承认我完全不熟悉,我可以看到程序计数器(PC)停在0x42。这只是程序中的8或9条指令。当PC到达该点时,LC寄存器显示0x0badbad0。进一步强制PC,使用CW可以执行的操作会导致CTR和XER报告运行时错误。
似乎编译器没有为我的设置生成正确的代码。
几个问题;
1.测试应用程序是否使用VLE或BookE进行编译?
2.回想一下,我有MPC5644A / SPC564A80B4,而不是SPC564A70。这会导致问题吗?
3.由于我实际拥有MPC5644A,因此读取SIU.MIDR会将芯片报告为“MPC5644A掩模10”。这会导致问题吗?
再次感谢您的帮助,我真的很想开始运行,因为我非常渴望尝试使用ChibiOS。
以上来自于谷歌翻译
以下为原文
Hi Giovanni
First, let me thank you for all the help you have given, I hope that my questions are generic enough to be of help to others.
Still cannot get the OS-less test app to work. The LEDs light up properly in the bareboard application that I wrote and all of the board jumper configs are the factory defaults.
The test app is failing very early in the boot sequence. Using the built-in CodeWarrior debugger, which I must confess I am completely unfamiliar with, I can see that the Program Counter (PC) stops at 0x42. This is only 8 or 9 instructions into the program. When the PC reaches that point, the LC register shows 0x0badbad0. Forcing the PC further, something that you can do with CW, causes CTR and XER to report runtime errors.
It seems that the compiler is not producing the correct code for my setup.
A few questions;
1. Is the test app compiling with VLE or BookE?
2. Recall that I have the MPC5644A/SPC564A80B4,
not the SPC564A70. Could this be causing a problem?
3. Since I actually have the MPC5644A, reading SIU.MIDR will report back the chip as 'MPC5644A mask 10'. Could this be causing a problem?
Thanks again for all your help, I really would like to get this up and running as I am quite anxious to try ChibiOS.
嗨Giovanni
首先,我要感谢你给予的所有帮助,我希望我的问题足够通用,可以帮助他人。
仍然无法使无操作系统的测试应用程序工作。在我编写的裸板应用程序中,LED正常亮起,所有电路板跳线配置都是出厂默认设置。
测试应用程序在启动序列中很早就失败了。使用内置的CodeWarrior调试器,我必须承认我完全不熟悉,我可以看到程序计数器(PC)停在0x42。这只是程序中的8或9条指令。当PC到达该点时,LC寄存器显示0x0badbad0。进一步强制PC,使用CW可以执行的操作会导致CTR和XER报告运行时错误。
似乎编译器没有为我的设置生成正确的代码。
几个问题;
1.测试应用程序是否使用VLE或BookE进行编译?
2.回想一下,我有MPC5644A / SPC564A80B4,而不是SPC564A70。这会导致问题吗?
3.由于我实际拥有MPC5644A,因此读取SIU.MIDR会将芯片报告为“MPC5644A掩模10”。这会导致问题吗?
再次感谢您的帮助,我真的很想开始运行,因为我非常渴望尝试使用ChibiOS。
以上来自于谷歌翻译
以下为原文
Hi Giovanni
First, let me thank you for all the help you have given, I hope that my questions are generic enough to be of help to others.
Still cannot get the OS-less test app to work. The LEDs light up properly in the bareboard application that I wrote and all of the board jumper configs are the factory defaults.
The test app is failing very early in the boot sequence. Using the built-in CodeWarrior debugger, which I must confess I am completely unfamiliar with, I can see that the Program Counter (PC) stops at 0x42. This is only 8 or 9 instructions into the program. When the PC reaches that point, the LC register shows 0x0badbad0. Forcing the PC further, something that you can do with CW, causes CTR and XER to report runtime errors.
It seems that the compiler is not producing the correct code for my setup.
A few questions;
1. Is the test app compiling with VLE or BookE?
2. Recall that I have the MPC5644A/SPC564A80B4,
not the SPC564A70. Could this be causing a problem?
3. Since I actually have the MPC5644A, reading SIU.MIDR will report back the chip as 'MPC5644A mask 10'. Could this be causing a problem?
Thanks again for all your help, I really would like to get this up and running as I am quite anxious to try ChibiOS.
举报