linwn
驱动牛犊
驱动牛犊
  • 注册日期2002-11-10
  • 最后登录2015-01-27
  • 粉丝0
  • 关注0
  • 积分97分
  • 威望30点
  • 贡献值0点
  • 好评度9点
  • 原创分0分
  • 专家分0分
阅读:1609回复:7

Multi-ice

楼主#
更多 发布于:2004-09-09 14:02

再问
这种用Multi-ICE与Platform Builder结合来 debug hardware 的方法,是否都要使用eboot的方式才行。
wxl_50685330
论坛版主
论坛版主
  • 注册日期2002-11-19
  • 最后登录2018-09-25
  • 粉丝0
  • 关注0
  • 积分1000分
  • 威望521点
  • 贡献值0点
  • 好评度419点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2004-09-09 16:28
Oh,there is no need to use PB when test your hardware
根据地的兄弟们,团结就是力量
wxl_50685330
论坛版主
论坛版主
  • 注册日期2002-11-19
  • 最后登录2018-09-25
  • 粉丝0
  • 关注0
  • 积分1000分
  • 威望521点
  • 贡献值0点
  • 好评度419点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2004-09-09 16:33
I think emulator + oscilloscope + AXD + testing code are enough
根据地的兄弟们,团结就是力量
linwn
驱动牛犊
驱动牛犊
  • 注册日期2002-11-10
  • 最后登录2015-01-27
  • 粉丝0
  • 关注0
  • 积分97分
  • 威望30点
  • 贡献值0点
  • 好评度9点
  • 原创分0分
  • 专家分0分
地板#
发布于:2004-09-09 16:56
我不明白,是否是用 AXD或 DNW来 download Win CE的image到2410上,
然后用PB来debugging呢 ?

然而我的前提是,我要在 Win CE 上来 porting一些driver及 bootloader,因此能够在2410初始化时单步便显得重要。这样的话,到底如何做会比较好呢 ?

有劳各位
wxl_50685330
论坛版主
论坛版主
  • 注册日期2002-11-19
  • 最后登录2018-09-25
  • 粉丝0
  • 关注0
  • 积分1000分
  • 威望521点
  • 贡献值0点
  • 好评度419点
  • 原创分0分
  • 专家分0分
地下室#
发布于:2004-09-09 21:15
axd可以用来把kernel烧到你的flash里面然后让os跑起来(先下载到ram,然后自己写代码烧flash),但前提是一切正常,如果你要用pb来下载,需要先做bootloader,你的板子应该提供这些东西。

初始化的时候单步依靠pb是不行的,兄弟,你可以借助串口输出信息或者用led等来把代码分成一段一段的调,在进入kernelstart之前,基本上这些代码可以在axd中先跑通,进入os后有一段盲区,可能要用axd反汇编才找得到问题,这段源码也是有的,在private里面.在进arminit后会执行前面OEMInitDebugSerial,然后是oeminit,后又可以用串口输出信息来调了。

至于驱动,你可以找pb带的例子,把框架剥离出来,然后慢慢加自己的代码,还是用串口输出信息来调。但是要先让kernel跑起来

最后说一句,我不觉得pb的ide环境是用来调内核和驱动的,他的用处...好像除了可以用loader下载nk.bin和一切跑通了作系统集成外,没发现太大用处...
根据地的兄弟们,团结就是力量
linwn
驱动牛犊
驱动牛犊
  • 注册日期2002-11-10
  • 最后登录2015-01-27
  • 粉丝0
  • 关注0
  • 积分97分
  • 威望30点
  • 贡献值0点
  • 好评度9点
  • 原创分0分
  • 专家分0分
5楼#
发布于:2004-09-10 00:35
axd可以用来把kernel烧到你的flash里面然后让os跑起来(先下载到ram,然后自己写代码烧flash),但前提是一切正常,如果你要用pb来下载,需要先做bootloader,你的板子应该提供这些东西。

初始化的时候单步依靠pb是不行的,兄弟,你可以借助串口输出信息或者用led等来把代码分成一段一段的调,在进入kernelstart之前,基本上这些代码可以在axd中先跑通,进入os后有一段盲区,可能要用axd反汇编才找得到问题,这段源码也是有的,在private里面.在进arminit后会执行前面OEMInitDebugSerial,然后是oeminit,后又可以用串口输出信息来调了。

至于驱动,你可以找pb带的例子,把框架剥离出来,然后慢慢加自己的代码,还是用串口输出信息来调。但是要先让kernel跑起来

最后说一句,我不觉得pb的ide环境是用来调内核和驱动的,他的用处...好像除了可以用loader下载nk.bin和一切跑通了作系统集成外,没发现太大用处...
 



wxl_50685330 :
     我想这个问题这样问会比较直一些 ?

AXD 能代替PB来 Download Win CE image 到 2410 evb 上的动作,并配合multi-ice,让AXD上执行win ce 初始化的单步及debug是吗 ? 是像help写的这样吗 ?

To download the Windows CE boot loader for the first time
1. Turn off the SMDK2410 Samsung MCU Development Kit.
2. Connect the power supply to both the SDB and the LCD display.
3. Connect the provided serial cable to the serial port marked COM1 and connect the other end to your development workstation.
4. On your development workstation, configure your terminal emulation software to the following settings:
Bits per second Data bits Parity Stop bits Flow control
115200 8 None 1 None
5. On the CPU board, connect the Multi-ICE probe to JTAG connector CN2.
6. Use switch SW1 to turn on the SMDK2410 Samsung MCU Development Kit.
7. Run the Multi-ICE Probe Server application.
8. On the File menu in the Multi-ICE Probe Server application, choose Load Configuration.
9. From the file dialog, select the 2400.cfg configuration.
10. Start the ARM Debugger for Windows (ADW), and select Yes when prompted to remote debug.
11. In the command window, execute the following command:
ob <drive>:<path>norom.ini
Replace <drive> and <path> with the actual location of the file Norom.ini, for example, ob c:tempnorm.ini.
Note   The script displays one error that you can safely ignore.
12. In the ADW, on the File menu, choose Open, and from the file dialog, select 2410text.axf.
2410text.axf is a flash utility provided by Samsung. You can download the sources from the Samsung Electronics Web site.
13. In the ADW, on the File menu, choose Get File. From the file dialog, change the address at the bottom of the dialog to 0x31000000, and then select the Windows CE boot loader image, Eboot.nb0.
Note   The Eboot.nb0 file is different from the Eboot.bin file. Make sure that you choose Eboot.nb0 for this step.
14. To execute the 2410text.axf script, press F5.
15. In the terminal emulator window, the script menu appears. In the window, select option 87 by typing 87, and then press ENTER.
16. When prompted for the flash memory type, select A for AMD flash.
17. When prompted whether to download over the UART, select No.
You will be prompted multiple times after this step. For each one, you can choose the default addresses by pressing ENTER. The default addresses are displayed within the []. Press ENTER until the script indicates that it is writing to flash memory.
18. Once the script is finished writing to flash memory, you will be prompted whether you want to continue writing. Select Yes, and then repeat the same process.
Continue selecting Yes until the default address displayed within the [] is equal to 0x40000, which is the size of the Windows CE boot loader image. At this point, the boot loader image has been written to flash memory.
19. Turn off the SMDK2410 Samsung MCU Development Kit and remove the Multi-ICE probe.
20. Move the serial cable to the port marked COM2, and then change your terminal emulation software to the following settings:
Bits per second Data bits Parity Stop bits Flow control
38400 8 None 1 None
21. Turn on the SMDK2410 Samsung MCU Development Kit and verify that you have successfully downloaded the Windows CE boot loader.
To see the format of the Windows CE boot loader message, see Windows CE Boot Loader Output for the SMDK2410 Samsung MCU Development Kit.
If you have already downloaded the initial boot loader image in flash memory, you can use the following procedure to download boot loader updates to the SMDK2410 Samsung MCU Development Kit.



wxl_50685330
论坛版主
论坛版主
  • 注册日期2002-11-19
  • 最后登录2018-09-25
  • 粉丝0
  • 关注0
  • 积分1000分
  • 威望521点
  • 贡献值0点
  • 好评度419点
  • 原创分0分
  • 专家分0分
6楼#
发布于:2004-09-10 13:55
pb那个ide环境不是用来调底层代码的,你可以用axd来单步调起始代码,但是在进入kernelstart前,这段代码需要放到合适的地方,也就是config.bib指定的nk.exe的起始地址。
根据地的兄弟们,团结就是力量
linwn
驱动牛犊
驱动牛犊
  • 注册日期2002-11-10
  • 最后登录2015-01-27
  • 粉丝0
  • 关注0
  • 积分97分
  • 威望30点
  • 贡献值0点
  • 好评度9点
  • 原创分0分
  • 专家分0分
7楼#
发布于:2004-09-10 14:37
pb那个ide环境不是用来调底层代码的,你可以用axd来单步调起始代码,但是在进入kernelstart前,这段代码需要放到合适的地方,也就是config.bib指定的nk.exe的起始地址。


OK!!!
3Q
游客

返回顶部