Flash Magic Forum

In-System Programming Support => LPC2xxx => Topic started by: tungsys on March 21, 2013, 03:30:25 AM

Title: Source Code of LPC23XX Ethernet Bootloader
Post by: tungsys on March 21, 2013, 03:30:25 AM
Hi Andy and every body,

I have problem with Ethernet Bootloader on LPC2366.
I have followed the instruction from here http://forum.flashmagictool.com/index.php?topic=3790.0
I use WireShark to capture the Frame send out from the Host when I use Flash Magic and I got the data as expected (which is ?<CR><LF>)

But the code on LPC2366 can't received the Frame send out from Flash Magic.

I have put the debug code to print out message thru UART when MAC_RXPRODUCEINDEX != MAC_RXCONSUMEINDEX

MAC_RXPRODUCEINDEX != MAC_RXCONSUMEINDEX
   print("UDP Frame\n");


So I wonder whether the Ethernet Bootloader code from NXP website is the latest one.
If you have done this before, could you please share with me the Ethernet Bootloader Code?

Thanks.
Title: Re: Source Code of LPC23XX Ethernet Bootloader
Post by: Andy Ayre on March 22, 2013, 02:46:53 AM
The ethernet bootloader is bundled with Flash Magic. I'm not sure the status of any that NXP distribute.

Make sure for initial tests you directly connect the LPC2366 to your PC using a crossover cable.

Andy
Title: Re: Source Code of LPC23XX Ethernet Bootloader
Post by: tungsys on March 25, 2013, 12:27:06 AM
Hi Andy,

Thanks for your help.

I am using crossover cable as your guide.
I have tried to compile the source code of Ethernet Bootloader for LPC23xx from Flash Magic bundle, but got the error as below

.\Obj\ethernet_bootloader.axf: error: L6031U: Could not open scatter description file .\Obj\ethernet_bootloader.sct: No such file or directory
Target not created

Could you please advise on this.
I have try with uVision4 and uVision3, still the same error
Title: Re: Source Code of LPC23XX Ethernet Bootloader
Post by: Andy Ayre on March 25, 2013, 02:49:31 AM
In uVision4 go to Project -> Options for Target MCB2300 Board -> Linker tab

Check/tick "Use Memory Layout from Target Dialog".

You may get a warning from the automatically generated scatter file but I believe it can be ignored.

Andy
Title: Re: Source Code of LPC23XX Ethernet Bootloader
Post by: tungsys on March 26, 2013, 02:38:54 AM
Thank you Andy,

It works fine  ;D ;D ;D