I did a clean install of everything yesterdasy, so it should be up to date. the bug is still there:
With data width = 8 in Confit Tools:
/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
instance:
- name: 'SPI0'
- type: 'lpc_minispi'
- mode: 'interrupt'
- custom_name_enabled: 'false'
- type_id: 'lpc_minispi_f45b6e04ed20bff9f52c4f4d863b265d'
- functional_group: 'BOARD_InitPeripherals'
- peripheral: 'SPI0'
- config_sets:
- fsl_spi:
- spiConfig:
- spi_mode: 'kSPI_Slave'
- spi_slave_config:
- enableSlave: 'true'
- clockPolarity: 'kSPI_ClockPolarityActiveHigh'
- clockPhase: 'kSPI_ClockPhaseFirstEdge'
- direction: 'kSPI_MsbFirst'
- dataWidth_enum: 'kSPI_Data8Bits'
- sselNumber_: 'kSPI_Ssel0Assert'
- sselPolarity_: ''
- Interrupt_cfg:
- interrupts: 'kSPI_RxReadyInterruptEnable'
- interrupt_vectors:
- enable_rx_tx_irq: 'true'
- interrupt_rx_tx:
- IRQn: 'SPI0_IRQn'
- enable_interrrupt: 'noInit'
- enable_priority: 'false'
- priority: '0'
- enable_custom_name: 'false'
* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/
/* clang-format on */
const spi_slave_config_t SPI0_config = {
.enableSlave = true,
.clockPolarity = kSPI_ClockPolarityActiveHigh,
.clockPhase = kSPI_ClockPhaseFirstEdge,
.direction = kSPI_MsbFirst,
.dataWidth = 8,
.sselPolarity = kSPI_SpolActiveAllLow
};
but as you can see, the yaml config uses the enum constant, correctly.
header of the peripherals.c file is the following:
/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
!!GlobalInfo
product: Peripherals v8.0
processor: LPC845
package_id: LPC845M301JHI48
mcu_data: ksdk2_0
processor_version: 8.0.2
functionalGroups:
- name: BOARD_InitPeripherals
UUID: 5aeb6b3e-57ce-4419-8db9-9ddcc3918498
called_from_default_init: true
selectedCore: core0
* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/
SDK is version is 2.8. maybe the bug is only there in slave mode?
Best regards,
Alexis Marquet