Hi team,
The customer wants to know the meaning of the following code in hal_ota.c:
typedef long (* volatile HAPI_CRC32_T)(unsigned char *, unsigned long); #define HAPI_CRC32_FUNC_PTR 0x00000048 #define P_HAPI_CRC32 ((HAPI_CRC32_T *)HAPI_CRC32_FUNC_PTR) #define CalcCrc32(a,b) (*P_HAPI_CRC32)(a,b)
How does the codes implement the CRC check of the image? What does the 0x00000048 point to?
Could you help to check it?
Regards,
Kevin