Author Topic: Source Code of LPC23XX Ethernet Bootloader  (Read 5183 times)

tungsys

  • Jr. Member
  • **
  • Posts: 4
    • View Profile
    • Email
Source Code of LPC23XX Ethernet Bootloader
« 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.

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2156
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Source Code of LPC23XX Ethernet Bootloader
« Reply #1 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
Embedded Systems Academy, Inc.
support at esacademy dot com

tungsys

  • Jr. Member
  • **
  • Posts: 4
    • View Profile
    • Email
Re: Source Code of LPC23XX Ethernet Bootloader
« Reply #2 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

Andy Ayre

  • ESAcademy Staff
  • Sr. Member
  • *****
  • Posts: 2156
    • View Profile
    • Embedded Systems Academy, Inc.
    • Email
Re: Source Code of LPC23XX Ethernet Bootloader
« Reply #3 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
Embedded Systems Academy, Inc.
support at esacademy dot com

tungsys

  • Jr. Member
  • **
  • Posts: 4
    • View Profile
    • Email
Re: Source Code of LPC23XX Ethernet Bootloader
« Reply #4 on: March 26, 2013, 02:38:54 am »
Thank you Andy,

It works fine  ;D ;D ;D