Author Topic: How to use CW7.1 to compile uTasker1.4 for M52259 Demo board?  (Read 11390 times)

Offline dinner321

  • Newbie
  • *
  • Posts: 3
    • View Profile
How to use CW7.1 to compile uTasker1.4 for M52259 Demo board?
« on: August 16, 2010, 03:18:25 AM »
HI,
I try to use CW7.1 to compile uTasker1.4 for M52259 Demo board, but it doesn't work, but if download

uTaskerV1.3_M52259DEMO_USB_ETHERNET.S19 to  M52259 Demo board, every thing is OK.

My ustasker code version is uTaskerV1.4_M522XX, and I use CW7.1.
I use CW7.1 to open the project D:\uTaskerV1.4_M522XX\Applications\uTaskerV1.4

\CodeWarrior_M5223X\uTaskerV1.4_CW7.mcp
and then

1. edit config.h
       #define _M5225X   
    &
      //#define M52259EVB                                                // EVB Board for M52259
        #define M52259DEMO                                               // DEMO Board for M52259
    &
      //#define SDCARD_SUPPORT 

2.edit M5225X_BOOT_APP_FLASH.lcf  to modify
   ___SRAM_SIZE   = 0x00008000;
   to
   ___SRAM_SIZE   = 0x00010000;

make

3.download the uTasker_BM or uTasker_BM.S19 to the M52259DEMO board using CW Flash

programmer.

then run , but the PHY doesn't link and there is nothing at UART terminal when the serial port setting is

115200,8,none,1, Xon/Xoff.

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Re: How to use CW7.1 to compile uTasker1.4 for M52259 Demo board?
« Reply #1 on: August 16, 2010, 11:30:42 AM »
Hi

The problem that you have is probably due to the fact that you are downloading applications which run together with the "Bare-Minimum" boot loader. These can be used but they need the boot loader also to be installed (see http://www.utasker.com/docs/uTasker/BM-Booloader_for_M5223X.PDF).

It should also be possible to load such applications when the demo is loaded since this includes the boot loader (it can be loaded via USB or Web Browser) but the conversion settings must match (so there is a chance that something is not exact without checking).

Usually it is easier to start with a full application, whic can be downloaded with CW Flash programmer. In this case the CW target M5223X_ROM is used and it generates the file uTasker_full.elf.S19 which can be downloaded instead of uTasker_BM.
The procedure and files are detailed also in the Kirin3 tutorial: http://www.utasker.com/docs/M5223X/uTaskerV1-4_M5225X.PDF - see chapter 5.

Good luck

Regards

Mark

Offline dinner321

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: How to use CW7.1 to compile uTasker1.4 for M52259 Demo board?
« Reply #2 on: August 18, 2010, 10:08:41 AM »
Hi,
   Thanks.
   When I select CW target M5223X_ROM to generate the file uTasker_full.elf.S19, it's OK.
   but if we want use the file uTasker_BM, how can I get the source code of "Bare-Minimum" boot loader?

Good luck

Regards
Dinner

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Re: How to use CW7.1 to compile uTasker1.4 for M52259 Demo board?
« Reply #3 on: August 18, 2010, 01:46:02 PM »
Hi Dinner

The boot loader project is in the directory: \Applications\uTaskerBoot

Regards

Mark

Offline dinner321

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: How to use CW7.1 to compile uTasker1.4 for M52259 Demo board?
« Reply #4 on: August 19, 2010, 01:53:34 AM »
Hi
When I open the project \Applications\uTaskerBoot\CodeWarrior_M5223X\uTaskerBootCW7.0.mcp, I can't find the TCP/IP folder, but in the document "BM-Booloader_for_M5223X.pdf", it described that "The µTasker “Bare-Minimum” Boot-loader allows software uploading via Ethernet or the Internet to be performed with only a small boot loader, occupying one FLASH sector (2k) on the M5223X", and whether the bootloader in \Applications\uTaskerBoot\CodeWarrior_M5223X\uTaskerBootCW7.0.mcp is the “Bare-Minimum” Boot-loader described in the document "BM-Booloader_for_M5223X.pdf", and which document described the using method of uTaskerBootCW7.0.mcp?

Regards
Dinner
« Last Edit: August 19, 2010, 02:06:13 AM by dinner321 »

Offline mark

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3236
    • View Profile
    • uTasker
Re: How to use CW7.1 to compile uTasker1.4 for M52259 Demo board?
« Reply #5 on: August 19, 2010, 09:19:10 AM »
Hi Dinner

The "Bare-Minimum" boot loader doesn't contain the TCP/IP stack but works together with a loaded application. The application is responsible for uploading new code and the boot loader is responsible for copying the new code.

http://www.utasker.com/docs/uTasker/uTaskerBoot_003.PDF explains the principles.

Regards

Mark