Skip to content

emka.web.id

writing knowledge, recording civilization

Menu
  • Home
  • Tutorial
  • Search
Menu

CanMV: Framework Mudah untuk Pemrograman AIOT

Posted on September 3, 2024

CanMV bertujuan untuk mempermudah pemrograman AIOT, dibangun berdasarkan sintaks Micropython, dan berjalan di atas rangkaian SoC AI tertanam yang kuat dari Canaan. Saat ini, CanMV berjalan di K230.

Unduh Image

Berikut adalah beberapa pilihan untuk mengunduh Image CanMV:

  • Cabang main: Cabang default GitHub, berfungsi sebagai cabang release. Image yang dikompilasi secara otomatis akan diterbitkan ke halaman Release.
  • Cabang dev: Cabang pengembangan GitHub, hanya untuk pengujian. Image dapat diunduh melalui halaman GitHub Actions untuk artifact yang sesuai dengan commit ID yang berbeda pada cabang dev. Artifact ini di-cache selama 90 hari.
  • Image release pra-kompilasi: Kunjungi Komunitas Pengembang Canaan, lalu di kategori K230/Images, unduh Image yang nama filenya berisi “micropython”. Kemudian, bakar Image tersebut ke kartu SD. (Format nama file Image: *_micropython_*.img.gz)

Image yang diunduh berformat .gz. Anda perlu mengekstraknya terlebih dahulu sebelum membakarnya. Image Micropython tidak sama dengan Image SDK K230 dalam hal fungsionalitas yang didukung. Jangan gunakan Image SDK K230 untuk Micropython.

Mulai dengan Cepat

Membangun Image Sendiri

  1. Klon repositori CanMV:
git clone k230_canmv
  1. Masuk ke direktori CanMV:
cd k230_canmv
  1. Siapkan kode sumber:
make prepare_sourcecode
  1. Bangun Image Docker (pertama kali perlu, lewati jika sudah ada, opsional):
docker build -f k230_sdk/tools/docker/Dockerfile -t k230_docker k230_sdk/tools/docker
  1. Jalankan lingkungan Docker (opsional):
docker run -u root -it -v $(pwd):$(pwd) -v $(pwd)/k230_sdk/toolchain:/opt/toolchain -w $(pwd) k230_docker /bin/bash
  1. Gunakan papan canmv sebagai default. Jika ingin menggunakan papan lain, gunakan make CONF=k230_xx_defconfig. Papan yang didukung dapat ditemukan di direktori configs.
make

Setelah selesai dikompilasi, Image sysimage-sdcard.img akan dihasilkan di direktori output/k230_xx_defconfig/images.

Membakar Image

Di Linux, gunakan perintah dd untuk membakar Image. Di Windows, gunakan alat pembakar yang sesuai. Lihat dokumentasi pembakaran Image K230 SDK untuk informasi lebih lanjut.

Memperoleh Pembaruan

  1. Unduh pembaruan:
git pull
  1. Jika terjadi kesalahan kompilasi setelah pembaruan, gunakan perintah berikut untuk membersihkan file yang dihasilkan dari kompilasi sebelumnya (opsional):
make clean
make prepare_sourcecode
make

Untuk alur kerja yang lebih detail, lihat Petunjuk Penggunaan K230 CanMV atau Panduan Pengguna K230 CanMV.

Sumber: Github

Terbaru

  • Traefik 3.8 New Feature: Yaegi v2 and the Gateway API Finally Make Custom Plugins Worth the Effort
  • Raspberry Pi OS: Why the November Update is a Win for Minimalism
  • React Can useState Hook Explained in 60 Seconds
  • How Do You Build an MMO Solo?
  • NixOS 26.11 “Zokor” Might Be the Most Practical Release for Desktop Power Users Yet
  • Why Your AWS Bill Can Just Tripled Overnight?
  • Why Indonesia’s Battle with Google is a Dangerous Game of Chicken
  • SYS010 Malware Explained: How Malvertising on Meta Bypasses MFA and Hijacks Your Digital Identity
  • Linux Mint 27 Adrien: Why This Version Jump is Make Sense?
  • NFS2ROOT: A 12-Year Reminder That Your Linux Kernel Is Never Truly Safe
  • The Death of Browsing and the Rise of the “Answer Engine Economy”
  • What’s new in Proxmox VE 9.3?
  • Why Your Morning Routine Needs an API: The Art of iOS Automation
  • Proof of Work is the New Certification: 5 AWS Projects to Build Before 2027
  • Omarchy is Our first agentic operating system
  • The Death of Popper.js: Why CSS Anchor Positioning is the New Standard for Connected UI
  • Why Your 2027 Cloud Career Depends on Moving Beyond Basic AWS Services
  • Why Discord is Ditching Electron for Rust: Is GPUi Actually the Future?
  • The End of the KDE Era: Why KaOS 2026.11 Is a Bold, Dangerous Gamble
  • The $2 Billion Code: Why GTA 6 is a Technical Miracle and a Hardware Nightmare
  • LibreDB Studio Explained
  • PHP 8.6 Is Officially Out: What’s New, What Breaks, and How We’re Upgrading
  • Rewriting Legacy Apps: 4 Data Migration Strategies That Actually Work
  • How to Install Clean Windows 11 Without Any Bloatware (Step-by-Step Guide)
  • IP Address Rate Limiting is Flawed—Here is the Right Way to Do It
  • Are Fedora 45 Stuck in Its Comfort Zone? A Short Review
  • Hacktober Recap 2026, A Month Full of Dangerous CVE: eMudhra, Gitlab, Brotli, PHP, NodeJS etc
  • 7 Skill Keamanan Jaringan yang Membuat Network Engineer Makin Dibutuhkan
  • How to Spin Up Disposable macOS and Linux VMs on Apple Silicon with TartVM
  • Belajar Cyber Security dari Nol hingga Siap Kerja, Ini Roadmap Lengkapnya
  • Canonical: Ubuntu coming soon to Snapdragon X2 Series platforms
  • Finally, wolfSSL adds post-quantum algorithms!
  • How to Run Gemma Embedding Models Using Docker
  • Deploy Nginx Rootful Container with Podman
  • How to Sandboxing Browser on Linux Desktop with Flatpak
  • When to use an MCP server vs CLI with DevTools for agents
  • Your MCP Server Is a Search Result Now
  • AI Roadmap: How To Become An Agentic Operations Manager In 2027
  • What Does a Machine Learning Data Scientist Do?
  • How To Use T3 Code

©2026 emka.web.id | Design: Newspaperly WordPress Theme