openlabs.co kw41z-mini board
Support for openlabs-kw41z-mini
General information
Section titled “General information”This is an open-source development board shipped by openlabs.co with source files located at https://openlabs.co/OSHW/kw41z-mini
A driver for the radio transceiver is available in #12277 (802.15.4 only).
Programming Pinout
Section titled “Programming Pinout”Programming and debugging can be done with a Raspberry Pi (or equivalent) running OpenOCD.
Pi GPIO Pins kw41z-mini==================================== || GPIO_19 ------||------- RST || GPIO_20 ------||------- SWDCLK || GPIO_21 ------||------- SWDIO || 3.3V -------||------- 3.3V || GND -------||------- GND ||Compiling and Flashing
Section titled “Compiling and Flashing”install build deps for openocd
Section titled “install build deps for openocd”apt install git build-essential libtool automakefetch and build openocd with support for JTAG via RPi or generic GPIO
Section titled “fetch and build openocd with support for JTAG via RPi or generic GPIO”git clone https://github.com/beduino-project/openocd.gitcd openocd./bootstrap./configure --enable-bcm2835gpio --enable-sysfsgpiomake -j4 && sudo make installinstall arm toolchain
Section titled “install arm toolchain”apt install git gcc-arm-none-eabi gdb-arm-none-eabifetch Riot
Section titled “fetch Riot”git clone https://github.com/RIOT-OS/RIOT.gitbuild and flash the gnrc_networking example
Section titled “build and flash the gnrc_networking example”cd RIOT/examples/networking/gnrc/networkingBOARD=openlabs-kw41z-mini CFLAGS+="-DKW41ZRF_ENABLE_LEDS=1" make -j4 flashDebug Uart Pinout
Section titled “Debug Uart Pinout”It is also possible to use the Pi for connecting to the debug uart.
Pi GPIO Pins kw41z-mini================================== || UART TX ----||------ RXI || UART RX ----||------ TXO || GND ------||------ GND ||enable the uart on the Pi
Section titled “enable the uart on the Pi”echo "enable_uart=1" >> /boot/config.txtrebootinstall serial terminal
Section titled “install serial terminal”apt install picocomrun serial terminal to access debug uart
Section titled “run serial terminal to access debug uart”picocom -b115200 /dev/serial0It is recommended (if possible) to switch the Pi to the better-clocked uart for higher baud rates:
echo "dtoverlay=disable-bt" >> /boot/config.txtrebootTo get a working radio, add #12277 and uncomment the lines in
boards/openlabs-kw41z-mini/Makefile.dep
The DAC output is on pin PTB18.
ADC input A3 needs a hack applied to cpu/kinetis/periph/adc.c to remove
ADC_CFG2_MUXSEL_MASK from CFG2 to switch to the correct mux setting.
The PWM peripheral on this board isn’t supported in the Kinetis PWM driver yet.
Use external I2C pullup resistors if I2C is used.