MCUXpresso generates the wrong function signature

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

MCUXpresso generates the wrong function signature

776件の閲覧回数
simonhaines
Contributor III

The Peripherals tool of MCUXpresso 10.2.1 generates the wrong function signature from the eDMA mode of the SPI peripheral using KSDK 2.4.2 for the FRDM K64F.

If you enable 'Initialization of eDMA callback' and provide a 'Transfer callback function name', the generated function signature in the peripherals.h header file is:

/* DSPI eDMA callback function for the SPI component (init. function BOARD_InitPeripherals)*/
extern void DSPI_Callback(DSPI_Type *, dspi_master_edma_handle_t *, status_t, void *);

There is no such type as 'DSPI_Type' and so including this file generates compile errors. The correct type (according to MK64F12.h) is 'SPI_Type' without the leading 'D'. The rest of the DSPI API correctly uses the SPI_Type name.

0 件の賞賛
返信
1 返信

641件の閲覧回数
Lukas_Heczko
NXP Employee
NXP Employee

Hi Simon,

thank you for reporting this bug. It will be fixed in next release of the Peripherals tool components.

Meanwhile, please use attached patch for MCUXpresso Config Tools v4.1 / MCUXpresso SDK v2.4.2:

1. Copy content of the archive to your local MCUXpresso Config Tools v4.1 data repository (it is shared with MCUXpresso IDE 10.2.x). Here is location of the local repository per operating system:

  • Windows: C:\ProgramData\NXP\mcu_data_v4.1\
  • Linux and Mac: /home/<user>/.nxp/mcu_data_v4.1/

2. Open your project in Peripherals tool and click the Update Project button. Content of peripherals.h will be updated with the fix.

Regards,

Lukas

0 件の賞賛
返信