lpcware

CRC Calculation Limit

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by wanderingnewfie on Tue Oct 20 14:24:20 MST 2015
I am writing a 2nd bootloader for my LPC812 that jumps to an application after downloading through the UART.  To confirm the download was successful, I want to compare the CRC at the end of the application with a CRC I calculate with Chip_CRC_CRC8() found in chip_8xx.c.  When I try to calculate the value of my application I get into the while loop and never exit.  The size of my application is 0x1BFC bytes (application is contained in 0x2400 to 0x4000 in flash and last 4 bytes is CRC).  Am I just running out of RAM during the loop so the processor locks up?  Is there a limit to the size of the bytes parameter in Chip_CRC_CRC8() for the LPC812 due to the amount of available RAM?

Thanks for the help.

Outcomes