IMXRT1064 zephyr RTOS

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IMXRT1064 zephyr RTOS

316 次查看
VoVan
Contributor III
Hello everyone. 
The task is to port pjsip and develop a simple voip on the imxrt1064 board.
For this I plan to use zephyr rtos.
I install Zephyr RTOS by manual:
https://docs.zephyrproject.org/3.5.0/develop/getting_started/index.html

Brief instructions:
west init -m https://github.com/nxp-upstream/zephyr ~/ZEPHYR_RTOS/zephyrproject
west update
west zephyr-export
pip install -r ~/ZEPHYR_RTOS/zephyrproject/zephyr/scripts/requirements.txt
Install Zephyr SDK:
wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.3/zephyr-sdk-0.16.3_linux-x86_64.tar.xz
wget -O - https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v0.16.3/sha256.sum | shasum --check --ignore-missing
tar xvf zephyr-sdk-0.16.3_linux-x86_64.tar.xz
cd zephyr-sdk-0.16.3/
./setup.sh

I wanted to try the capture example for imxrt1064:
1) west build -b mimxrt1064_evk samples/drivers/video/capture --shield "dvp_fpc24_mt9m114;rk043fn66hs_ctg" --build-dir imxrt1064_video_capture
2) west flash -r pyocd --build-dir imxrt1064_video_capture
Example was build succes, and board was flash.
Zephyr RTOS started:
*** Booting Zephyr OS build 3ae962fd364a ***
<err> video_mt9m114: Unable to configure default format

Camera don't work properly.
After reviewing the code and the driver for the camera mt9m114, I saw a bug in the driver code(copy paste bugs :-)).
I'm sending a patch to solve the problem, I hope the community will fix it. 
I also have a network dropout on this board when running zephyr rtos, apparently the drivers need to be edited again. The first impression was ambiguous. There were no such bugs in nxp sdk freertos(mcuexpresso), the examples worked out of the box, here they apparently just copied and pasted the code and no one checked anything.
0 项奖励
回复
1 回复

238 次查看
VoVan
Contributor III

Second problem: Ethernet not work after reboot. After the investigation it became clear why the ethernet was not working. ksz8081 init start before enet_mac set pinctrl - pinmux_enet. Without set pin_mux for enet_ref_clk(iomuxc_gpio_b1_10_enet_ref_clk) ksz8081 don't work properly. I change pin_mux for enet - and ethernet start work!!!
I'm sending a patch for ENET work in IMXRT1064 zephyr to solve the problem, I hope the community will fix it.
It remains to check the audio, I hope at least everything will work out of the box. Maybe there is some working repository for IMXRT1064 Zephyr RTOS?

 

0 项奖励
回复