Hi @ravinder ,
Thanks for your patience. But I haven’t encountered any issues when running this demo.
Let me list all the steps and details below. Please review them and see if anything differs on your side or if there’s anything that may be causing the problem.
1, clone/download the Freertos SDK,
main branch, https://github.com/Ameba-AIoT/ameba-rtos-pro2.git
the latest commit should be Update code base · Ameba-AIoT/ameba-rtos-pro2@3b947a6 · GitHub
2, setup all tools and toolchain, refer to read.me
3, update sensor.h and choose the sensor
4, update video_example_media_framework.c choose the example,
line 64
//mmf2_video_example_v1_init();
line 73
mmf2_video_example_v1_shapshot_init();
5, update mmf2_video_example_v1_snapshot_init.c setup SD card mode
line 37
#define ENABLE_SD_SNAPSHOT //Enable the snapshot to sd card
6, compile
clean build, remove “build“ folder and create again at GCC-RELEASE
rm -rf build
mkdir build
cd build
compile toolchain
cmake .. -G\"Unix Makefiles\" -DCMAKE_TOOLCHAIN_FILE=../toolchain.cmake -DVIDEO_EXAMPLE=ON
compile flash
cmake --build . --target flash
7, upload bin into board
use the image tool to upload the “flash_ntz.bin” to board.
8, connect WiFi and RTSP streaming
AT command
ATW0=[SSID]
ATW1=[Password]
ATWC
find the IP address and display device connect to the IP, then start RTSP streaming.
9, SD card and snapshot.
make sure the SD card are insert correctly.
AT command for snapshot and save as jpg inside SD card
SNAP=SNAPS