Tool/software:
Hi,
I'm trying to use the CLA to perform some calculations and offload the CPU. However, when I initialize the CLA, CCS gives me a warning on this line:
CLA_mapTaskVector(CLA1_BASE, CLA_MVECT_1, (uint16_t)(&Cla1Task1));
The warning is:
#770-D: conversion from pointer to smaller integer
It seems this is due to the fact that &Cla1Task1 is a 32-bit pointer, and casting it to uint16_t causes truncation.
What I don’t understand is why the address of Cla1Task1 is 32 bits and not 16 bits as expected.
And of course how to get rid of this warning
Thank you for your support