Is this function setting the IO to be multiplexed?
/*!
* @brief Sets the IO_MUX pin mux mode.
* @note The parameters can be filled with the pin function ID macros.
*
* This is an example to set the GPIO2/GPIO3 as the Flexcomm0 UART RX/TX:
* @code
* IO_MUX_SetPinMux(IO_MUX_FC0_USART_DATA);
* @endcode
*
* This is an example to set the GPIO6/GPIO10 as Flexcomm1 I2C SDA/SCL:
* @code
* IO_MUX_SetPinMux(IO_MUX_FC1_I2C_6_10);
* @endcode
*
* @Param pinLowMask The GPIO0- 31 pins mask.
* @Param pinHighMask The GPIO32-63 pins mask.
* @Param gpioFcSetMask The GPIO and Flexcomm registers mask to set, defined by IO_MUX_GPIO_FC_MASK()
* @Param gpioFcClrMask The GPIO and Flexcomm registers mask to clear, defined by IO_MUX_GPIO_FC_MASK()
* @Param fselSetMask The FSEL register mask to set
* @Param fselClrMask The FSEL register mask to clear * @Param fselClrMask The FSEL register mask to clear
* @Param ctimerSetMask The C_TIMER_IN/C_TIMER_OUT register mask to set, defined by IO_MUX_CTIMER_MASK()
* @Param ctimerClrMask The C_TIMER_IN/C_TIMER_OUT register mask to set, defined by IO_MUX_CTIMER_MASK() IN/C_TIMER_OUT register mask to clear, defined by IO_MUX_CTIMER_MASK()
* @Param sctimerSetMask The SC_TIMER register mask to set
* @Param sctimerClrMask The SC_TIMER register mask to clear
*/
static inline void IO_MUX_SetPinMux(uint32_t
pinLowMask,
uint32_t pinHighMask, uint32_t gpioFcSetMask, uint32_t gpioFcClrMask, uint32_t fselSetMask,
uint32_t
fselClrMask,
uint32_t ctimerSetMask,
uint32_t ctimerClrMask, uint32_t sctimerSetMask, uint32_t sctimerClrMask)
Is this macro generated by the configuration tool? It's full of numeric, masked macros, not readable!
#define IO_MUX_FC3_USART_DATA \
0x05000000U, 0x00000000U, /* Pin mask */ \
IO_MUX_GPIO_FC_MASK(0, 3, 0x200), IO_MUX_GPIO_FC_MASK(1, 3, 0x1EE), /* GPIO &FC mask */ \
0x00000000U, 0xC0000000U, /* FSEL mask */ \
IO_MUX_CTIMER_MASK(0, 0), IO_MUX_CTIMER_MASK(0x40, 0x40), /* CTimer mask */ \
IO_MUX_ SCTIMER_MASK(0, 0), IO_MUX_SCTIMER_MASK(0x10, 0x10) /* SCTimer mask */
How can I change it to another Io
Thank you for your reply.
1. I'm going to pick another set of IOs and make a serial port (UART).
2. I am reading the SDK, refer to the code inside, the first time to meet the MCUXpresso style code, there are places do not quite understand, there is noMCUXpresso implementation of FlexComm to do the UART application documentation? There is no MCUXpresso impleme...
3. My board is now unavailable for download
_0-1766554912971.png
_1-1766555131238.png
_2-1766555144857.png
I chose M33.
_3-1766555188005.png
_4-1766555202952.png
_5-1766555238535.png
Unable to download
J-link is a paid product, I have products that don't support him very well, I don't like him very much, I want to use CMSIS-DAP
_6-1766555583288.png
But I haven't found a way to update the firmware
I need to implement the download of the program urgently now, I hope I can get your help!
Hi,
I would recommend you base your application in the SDK examples.
It is not a requirement to modify or configure the peripherals using Config Tools. You can modify the source code according your needs.
Are you using a module for the RW612?
Could you please explain me what exactly you want to achieve?
Regards,
Daniel.
_0-1766589894233.png
_1-1766589920354.pngI've managed to download it now.
Hi,
Can you please confirm you are using the FRDM-RW612?
Please take a look at UM12160. To update the firmware of the on board debugger, you will need to short JP2. Follow the steps mentioned in section 3.5.
Regards,
Daniel.