code bugs in FLASH_LDD

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

code bugs in FLASH_LDD

ソリューションへジャンプ
938件の閲覧回数
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.

ラベル(1)
0 件の賞賛
返信
1 解決策
782件の閲覧回数
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 件の賞賛
返信
1 返信
783件の閲覧回数
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 件の賞賛
返信