code bugs in Serial_LDD

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

code bugs in Serial_LDD

Jump to solution
523 Views
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 Kudos
1 Solution
388 Views
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

View solution in original post

0 Kudos
1 Reply
389 Views
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 Kudos