Hi,
I'm using 'NXP LPC17xx USB Secondary Bootloader'.
I read the whole "AN10866.pdf" which commes together with the code on this link: ics.nxp.com/.../an10866.zip
I did everything as described in document and basically it works fine. I can program my chip using this USB bootloader.
So where is the problem? When I use more than 1572 bytes for global variables in my application then the program will not run normally. It halts. If I try then to program the chip over the JTAG with the same code (only I change the starting position from 0x2000->0x0000), then it runs normally.
Does anyone of you know the where could be the problem ? Any hint what to change to make it work regardless to the number of global variables ?
It is probably something with stack. I have set on both: bootloader, and user aplication the adress for memory: 0x10000000, and size 0x8000.
It was like that by default.
If I select IRAM2 with a start at 0x2007C000 for user application, then it works normally. I know that IRAM2 is divided into two sections, so I rather would not use this area.
My apologizes for the unformated source code. My first post here, lesson learned.