Hi to all!
I tried to use LPCUSB stack on a device with LPC2144. I compiled main_serial on Yagarto+Eclipse tools and tried to emulate with ARM-JTAG (from Olimex) in controllers RAM. On first run Win (W2k3) recognize device as unknown and report for some problem in thisdevice. I tried to unstall usbser.inf for the device, but Win reject this attempt. From this point Win do not recognize the device and i can’t use it.
Can someone help?
Thanks in advance!
Regards
Markov
Hi again!
Can i use lpcusb on LPC-2148-E STK from IAR, but in RAM instead in FLASH (openOCD-Yagarto Toolchain-Eclipse)? How i can edit makefile and lpc2148_ram.ld files? My attempts ends with message in the openOCD “Warning: arm7_9_common.c:1845 arm7_9_read_memory(): memory read caused data abort (address: 0xffffffff, size 0x1, count: 0x4)” and in the Eclipse is something like “<1 0x00002aa0”.
Can someone help?
Regards
Markov
You’ll need to edit the linker file.
Currently the stack starts at the very end of the available RAM of an LPC2148. That will not work for an LPC2144. Also the segment sizes are currently tailored for an LPC2148.
I’m not sure if it will run from RAM, I’ve never tried that.
Hi Bertrik,
Thanks for Your response!
Probably you have right – I not saw to the stack position (my fault!) and this will make problems with 2144. There is some program in LPC2148E (it is not my) and haven’t right to erase it. Probably this prevents right work in the STK’s RAM? If I try to load in RAM of the STK the boot loader will find by Reset that there is a valid User Program Signature and will switch to the User FLASH Mode. One other thing – should I somewhere load Memory Mapping Control Register (MEMMAP = 0x02 User RAM Mode)?
Any way! Thank you! I will try these possibilities. If you have something other in mind, please say!
Best Regards,
Markov