code bugs in Serial_LDD

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

code bugs in Serial_LDD

ソリューションへジャンプ
793件の閲覧回数
bowerymarc
Contributor V

in the generated file AS1.c, the header says it's:

**     Filename    : AS1.c

**     Project     : ProcessorExpert

**     Processor   : MK20FX512VLQ12

**     Component   : Serial_LDD

**     Version     : Component 01.168, Driver 01.10, CPU db: 3.00.000

**     Compiler    : GNU C Compiler

**     Date/Time   : 2013-07-15, 16:26, # CodeGen: 6

In line 283 and line 335 there's a missing cast, which causes compilation error in C++.

line 283:

  DeviceDataPrv->InpDataPtr = BufferPtr; /* Store a pointer to the input data. */

should cast the right side to (unsigned char*) at the very least (that gets rid of the error and is the correct data type).

same at line 335:

  DeviceDataPrv->OutDataPtr = BufferPtr; /* Set a pointer to the output data. */

the error without the cast is:

DescriptionResourcePathLocationType
invalid conversion from 'LDD_TData* {aka void*}' to 'std::uint8_t* {aka unsigned char*}' [-fpermissive]AS1.c/test/Generated_Codeline 283C/C++ Problem
0 件の賞賛
返信
1 解決策
658件の閲覧回数
LadislavVadkerti
NXP Employee
NXP Employee

Thank you for reporting the issue. You can preserve your changes by disabling code generation in the component's pop-up menu until the next release, where it should be fixed.

Ladislav Vadkerti

Freescale Processor Expert Team

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
659件の閲覧回数
LadislavVadkerti
NXP Employee
NXP Employee

Thank you for reporting the issue. You can preserve your changes by disabling code generation in the component's pop-up menu until the next release, where it should be fixed.

Ladislav Vadkerti

Freescale Processor Expert Team

0 件の賞賛
返信