code bugs in FLASH_LDD

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

code bugs in FLASH_LDD

Jump to solution
444 Views
bowerymarc
Contributor V

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.

Labels (1)
0 Kudos
1 Solution
288 Views
vfilip
NXP Employee
NXP Employee

Hello,

I have reproduce it, we will fix it for next release.

Best regards

Vojtech Filip

Processor Expert Support Team

View solution in original post

0 Kudos
1 Reply
289 Views
vfilip
NXP Employee
NXP Employee

Hello,

I have reproduce it, we will fix it for next release.

Best regards

Vojtech Filip

Processor Expert Support Team

0 Kudos