Issue With loded code under IAP

i am using LPC2148 For my Project. There is a problem in Loded code in IAP programming through Secondary Bootloder(USB)....

1).When I load Code USING FLASH MAGIC ISP MODE(Through Serial Coomunication). my code works fine without any Problem..(BUT code is might in size so it is painful to wait 5 min To see How its Work.)

2).When Same code i modified(Not edit Code only few settings to generate binary file.) For compatiblity in USB Bootloder Purpose.The code is loded succesfully without errors and There is a proper execution of all things except SERIAL COMMUNICATION..my serial communication is not work properly and strange characters are displaying in Terminal...

i am beginner so not Developed A code for USB bootloder But just Get it from NXP..

www.nxp.com/.../AN10711.zip

and it is working fine and able to load code with P0.15 low and detect USB storage..

By googling about this i find there should be little modification for Startup.s for the Interrupt Vector Table and yes i am using Serial interrupt which on character reception into lpc2148..

Parents
  • 5 minutes to transfer program using ISP?

    The LPC2148 doesn't have any huge flash memory, so a transfer shouldn't take long unless you run a very low baudrate.

    At 115400 baud, you would transfer about 5kB of code/second which means a 512 kB flash would fill in 100 seconds. Twice that if you verify the transfer.

    What parameters are you changing for USB compatibility? Some clock frequencies? Always verify your baudrates by looking at transmitted data using an oscilloscope. And remember that some clock frequency changes may require you to also adjust the clock settings or the baudrate computation to make sure the UART communication ends up using the expected baudrate.

Reply
  • 5 minutes to transfer program using ISP?

    The LPC2148 doesn't have any huge flash memory, so a transfer shouldn't take long unless you run a very low baudrate.

    At 115400 baud, you would transfer about 5kB of code/second which means a 512 kB flash would fill in 100 seconds. Twice that if you verify the transfer.

    What parameters are you changing for USB compatibility? Some clock frequencies? Always verify your baudrates by looking at transmitted data using an oscilloscope. And remember that some clock frequency changes may require you to also adjust the clock settings or the baudrate computation to make sure the UART communication ends up using the expected baudrate.

Children
More questions in this forum