Flash Magic Forum

In-System Programming Support => ARM Cortex => Topic started by: madid87 on May 20, 2013, 05:30:18 am

Title: LPC1764 (16kB SRAM) ethernet bootloader
Post by: madid87 on May 20, 2013, 05:30:18 am
Unlike the other chips from LPC1700 family, LPC1764 has only 16kB of SRAM.
Ethernet bootloader by default uses full 16kB SRAM.

I have tried to change #define RX_DESC_BASE  to a smaller value like 0x10001000 but the bootloader is not working properly,
i.e. I can get one or two Read Device Signature commands  but on the third the MCU goes into Hard Fault. (Programming is not working of course)

I have also tried to change memory buffer configuration in emac.h. (NUM_RX_FRAG etc..)

Is it possible to use the bootloader on 16kB SRAM chip?

Please help, thank you.
Title: Re: LPC1764 (16kB SRAM) ethernet bootloader
Post by: Andy Ayre on May 21, 2013, 12:39:56 am
I haven't tried it but I would have thought it was possible. You will need to double-check the .map file to make sure the memory arrangement being used is what you expect. Also you will need to change the memory sizes in the compiler/linker settings to make sure only memory that exists is being used.

Andy