Hello, i'm using config tools for nxp mcu mkm33z64a to generate generic peripherals such as PIT, UART, etc..
I have faced an issue that mcuxpresso doesn't generate some of the peripheral config variables for following peripherals (SIM, UART, PIT).
For example, mcuxpresso config tools doesnt create a variables for baudrate but initialization header show that "baudRate_Bps: '115200'"
/***********************************************************************************************************************
* RS485UART initialization code
**********************************************************************************************************************/
/* clang-format off */
/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
instance:
- name: 'RS485UART'
- type: 'uart'
- mode: 'interrupts'
- custom_name_enabled: 'true'
- type_id: 'uart_9b45c456566d03f79ecfe90751c10bb4'
- functional_group: 'BOARD_InitPeripherals'
- peripheral: 'UART1'
- config_sets:
- uartConfig_t:
- uartConfig:
- clockSource: 'BusInterfaceClock'
- clockSourceFreq: 'GetFreq'
- baudRate_Bps: '115200'
- parityMode: 'kUART_ParityDisabled'
- dataBitsCount: 'kUART_EightDataBits'
- enableMatchAddress1: 'false'
- matchAddress1: '0'
- enableMatchAddress2: 'false'
- matchAddress2: '0'
- txFifoWatermark: '0'
- rxFifoWatermark: '1'
- idleType: 'kUART_IdleTypeStartBit'
- enableTx: 'true'
- enableRx: 'true'
- interruptsCfg:
- interrupts: 'kUART_TxDataRegEmptyInterruptEnable kUART_TransmissionCompleteInterruptEnable kUART_RxDataRegFullInterruptEnable kUART_RxOverrunInterruptEnable'
- interrupt_vectors:
- enable_rx_tx_irq: 'true'
- interrupt_rx_tx:
- IRQn: 'UART0_UART1_IRQn'
- enable_interrrupt: 'enabled'
- enable_priority: 'false'
- priority: '0'
- enable_custom_name: 'true'
- handler_custom_name: 'RS485UART_RX_TX_IRQHANDLER'
* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/
/* clang-format on */
const uart_config_t RS485UART_config = {
,
,
,
,
.parityMode = kUART_ParityDisabled,
,
,
.idleType = kUART_IdleTypeStartBit,
.enableTx = true,
.enableRx = true
};
as you can see the variables are not generated.
.baudRate_Bps = 19200,
.txFifoWatermark = 0,
.rxFifoWatermark = 1
Another example which generated code for a RTC module, when i created a default time for test purpose using mcuxpresso config tool then generated code doesnt not have any time struct.
/***********************************************************************************************************************
* RTC initialization code
**********************************************************************************************************************/
/* clang-format off */
/* TEXT BELOW IS USED AS SETTING FOR TOOLS *************************************
instance:
- name: 'RTC'
- type: 'irtc'
- mode: 'general'
- custom_name_enabled: 'false'
- type_id: 'irtc_bbc7c0541dea6ecbc2805a02e8ddd930'
- functional_group: 'BOARD_InitPeripherals'
- peripheral: 'RTC'
- config_sets:
- general:
- clockSource: 'src1'
- clockSourceFreq: 'BOARD_BootClockRUN'
- clockOutSelection: 'kIRTC_ClkoutNo'
- irtc_config:
- irtc_config_t_var: []
- wakeupSelect: 'wakeup'
- timerStdMask: 'ungated'
- alrmMatch: 'kRTC_MatchSecMinHr'
- lock: 'false'
- enableDaylightTime: 'false'
- daylight_time:
- startMonth: '1'
- endMonth: '1'
- startDay: '1'
- endDay: '1'
- startHour: '0'
- endHour: '0'
- daylight_struct_var: []
- tamper_config: []
- irtc_datetime:
- 0:
- uid: '1669725402832'
- struct_id: 'Time0'
- description: ''
- constantStruct: 'true'
- irtc_datetime_t:
- year: '1984'
- month: '1'
- day: '1'
- week_day: '0'
- hour: '0'
- minute: '0'
- second: '0'
- disable_id: '1669719067734'
- setDateTime: '1669719067734'
- setAlarm: '1669719067734'
- interrupt_requests: 'kIRTC_1hzInterruptEnable'
- enable_interrupt: 'true'
- interrupt_vector:
- IRQn: 'RTC_IRQn'
- enable_interrrupt: 'enabled'
- enable_priority: 'false'
- priority: '0'
- enable_custom_name: 'false'
* BE CAREFUL MODIFYING THIS COMMENT - IT IS YAML SETTINGS FOR TOOLS **********/
/* clang-format on */
const irtc_config_t RTC_config = {
,
,
};
const irtc_datetime_t RTC_Time0 = {
,
,
,
,
,
,
};
I'm using latest version MCUexpresso config tools and Kinetis MCU SDK's which downloaded from mcu expresso sdk builder online tool. My toolchain is created for IAR Embedded Workbench.
Is this a bug? Is there any workaround for this?
Thanks.