AnsweredAssumed Answered

code bugs in FLASH_LDD

Question asked by Marc Lindahl on Jul 16, 2013
Latest reply on Jul 17, 2013 by Vojtech Filip

another cast bug which while only warns in C, is fatal in C++.  In the generated code file we get the error:

../Generated_Code/IntFlashLdd1.c: In function 'LDD_TError IntFlashLdd1_Write(LDD_TDeviceData*, LDD_TData*, LDD_FLASH_TAddress, LDD_FLASH_TDataSize)':

../Generated_Code/IntFlashLdd1.c:253:35: error: invalid conversion from 'LDD_TData* {aka void*}' to 'std::uint8_t* {aka unsigned char*}' [-fpermissive]

mingw32-make: *** [Generated_Code/IntFlashLdd1.o] Error 1

 

 

Which again can be fixed by properly casting the assignment.

Outcomes