This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F280037-Q1: FLASH Checksum Fapi_calculateFletcherChecksum()

Part Number: TMS320F280037-Q1

Gwanchel Yun

Part Number : TMS320F280037Q

Hello

I'm trying to calculate the Flash checksum using the Fapi_calculateFletcherChecksum() function.
However, the Flash address is 0x081000, but the first variable is a uint16 const * pu16Data.
How can I fix this?

F021.h
extern uint32 Fapi_calculateFletcherChecksum( uint16 const * pu16Data,  uint16 u16Length)

// Bzero_start : 0x081000
unsigned int checksum_Length = 0xE000;
checksum_etsd = Fapi_calculateFletcherChecksum(0x081000, checksum_Length);

After compiled, occurred as following :
"../sourceFLASH_API/FLASH_API_checksum.c", line 38: warning #169-D: argument of type "long" is incompatible with parameter of type "const uint32 *"
"../sourceFLASH_API/FLASH_API_checksum.c", line 38: warning #154-D: conversion of nonzero integer to pointer