
Edge AI SoCs
RK3588 Edge AI SoC
Rockchip's 8 nm flagship AIoT processor pairs eight Cortex-A76 and A55 cores with a 6 TOPS NPU and 8K video codec, the chip behind many edge vision boxes.
Capabilities below are vendor-documented. We have not tested this device or its integrations.
Sources checked:
Also known as: RK3588, Rockchip RK3588, 瑞芯微 RK3588
Suitable projects
- Edge vision boxes that decode several camera streams and run detection on the NPU without a GPU card.
- Multi-screen industrial panels and digital signage that need one 8K or several 4K outputs.
- Robot and autonomous vehicle controllers that need a Linux host, an NPU and PCIe for a second accelerator.
- Inspection stations that capture an external 4K feed over HDMI and write it locally over SATA.
Before you buy
- The Ethernet controllers are MACs; PHYs, magnetics and connectors are board-level parts the integrator supplies.
- Which neural network operators run on the NPU is decided by the RKNN toolchain; anything unsupported falls back to the CPU or GPU.
- The 6 TOPS rating is the peak NPU figure, not the throughput a real model with pre and post processing will reach.
- How many displays a board can drive at once depends on the output PHYs it routes, not on the SoC alone.
- The RK3588S is a separate variant with the same compute but a reduced interface set: one gigabit MAC, no SATA, no HDMI input and fewer PCIe and MIPI lanes.
- PCIe, SATA and USB 3 draw on a shared pool of high-speed lanes, so not every combination can be routed at full width.
Official resources
- RK3588 Brief Datasheet
- RKNN-Toolkit2 model conversion and runtime SDK
- RK3588 product page
- Rockchip brief datasheet download index
Related guides
- Process
- 8 nm
- CPU
- 4 x Cortex-A76 plus 4 x Cortex-A55, 64-bit
- NPU
- 6 TOPS, triple core; INT4, INT8, INT16, FP16, BF16, TF32
- GPU
- Mali-G610 MC4; OpenGL ES 1.1 to 3.2, Vulkan 1.1 and 1.2, OpenCL 1.1 to 2.0
- Video decode
- H.265, H.264, AV1, VP9, AVS2 up to 8K at 60 fps
- Video encode
- H.264 and H.265 up to 8K at 30 fps
- ISP
- 32 MP with HDR and 3DNR
- Camera input
- MIPI CSI-2 at four 4-lane or four 2-lane plus two 4-lane, DVP, HDMI 2.0 input at 4K 60
- Memory
- LPDDR4, LPDDR4X and LPDDR5
- Storage
- eMMC 5.1, SD 3.0 and FSPI
- Display
- eDP, DP, HDMI 2.1 and MIPI DSI; multi-screen display up to 8K at 60 fps
- High-speed I/O
- PCIe 3.0 and 2.0, SATA 3.0, USB 3.1, USB 2.0, Type-C
- Ethernet
- Gigabit Ethernet controller with RGMII
- Operating system
- Android and Linux
Choosing the RK3588 for an edge device
This profile is based on official documentation, not our own device testing.
The RK3588 is Rockchip's flagship AIoT processor and the chip a large share of Chinese edge AI boards are built around. It is an eight-core, 8 nm design with a 6 TOPS NPU attached to a full 8K video pipeline, which is why the same part turns up in vision boxes, multi-screen panels and robot controllers.
What the chip is for
- Vision appliances that decode several camera streams and run detection on the box.
- Products that need one 8K output or several 4K outputs at the same time.
- Linux or Android designs where the application runs on the A76 cores and the NPU is a shared accelerator.
- Boards that want PCIe, SATA and USB 3.1 without adding a bridge chip.
- Recorders that take an external 4K source in over HDMI and write it locally.
- Inspection stations that combine a camera, a captured screen and a model that has to run at line rate.
- Robot controllers that host the planning stack on Linux and offload perception to the NPU.
The die in one table
| Block | What it carries | Why it decides the design |
|---|---|---|
| CPU | Four Cortex-A76 plus four Cortex-A55, 64-bit | Sets interface latency, frame pacing and how much background work is free |
| NPU | 6 TOPS over three cores, INT4 to TF32 | Sets whether the model runs on the box at the resolution you need |
| GPU | Mali-G610 MC4 | Needed for 3D interfaces and for the layers the NPU will not take |
| Video | 8K at 60 fps decode, 8K at 30 fps encode | Usually decides the bill of materials, because it removes a codec chip |
| ISP | 32 MP with HDR and 3DNR | Sets the sensor ceiling and how many cameras are practical |
| Display | eDP, DP, HDMI 2.1, MIPI DSI; multi-screen to 8K 60 | Decides whether the product needs a separate display controller |
| Memory | LPDDR4, LPDDR4X and LPDDR5 | Sets the bandwidth ceiling for multi-stream work |
| High-speed I/O | PCIe 3.0 and 2.0, SATA 3.0, USB 3.1 | Decides storage, second accelerator and capture options |
| Ethernet | One gigabit controller with RGMII | One port per controller, so two ports need two controllers or a switch |
The useful reading of this table is that only one row is about arithmetic throughput. Every other row is about whether a block exists at all, because a missing block becomes a part on the board and a line in the cost sheet.
Where each block decides the answer
The CPU is four Cortex-A76 cores plus four Cortex-A55 cores. Single-thread work that decides interface latency and frame pacing lands on the A76 cluster, while background services sit on the A55 cluster. A product that is mostly a web front end does not need this much CPU; a product that decodes eight streams and runs tracking does.
The practical test is not core count but where your time goes. Take a profile of the application on a development board with the streams running and the model loaded. If most of the time is in the kernel copying frames, the CPU is not the constraint and a bigger core will not help. If most of it is in one thread that paces the pipeline, that thread belongs on an A76 core and the rest can be pinned to the A55 cluster.
The NPU is rated at 6 TOPS over three cores and accepts INT4, INT8, INT16, FP16, BF16 and TF32. The precision list matters as much as the TOPS number, because a model that loses accuracy at 8-bit can stay FP16 on the same NPU instead of moving to the GPU.
The video pipeline decodes H.265, H.264, AV1, VP9 and AVS2 up to 8K at 60 fps and encodes H.264 and H.265 up to 8K at 30 fps. On a camera product this is usually the block that decides the bill of materials, because it removes the need for a separate capture and encode chip.
The display side offers eDP, DP, HDMI 2.1 and MIPI DSI with multi-screen output up to 8K at 60 fps. A 32 MP ISP with HDR and 3DNR handles the camera path, with MIPI CSI-2 lanes that can be split four ways.
Sizing the video path with arithmetic
The most common design mistake on this class of chip is to size the pipeline from the codec headline and not from the traffic the frames actually generate. The arithmetic is simple and worth doing before the schematic is frozen.
An uncompressed frame in 4:2:0 at 8 bits carries 1.5 bytes per pixel. Multiply by the pixel count and you have the size of one frame in memory.
| Format | One frame, 4:2:0 at 8 bits | At 30 fps | At 60 fps |
|---|---|---|---|
| 1080p, 1920 by 1080 | 3.11 MB | 93 MB/s | 187 MB/s |
| 4K, 3840 by 2160 | 12.44 MB | 373 MB/s | 746 MB/s |
| 8K, 7680 by 4320 | 49.77 MB | 1.49 GB/s | 2.99 GB/s |
These are decimal megabytes and they count one pass. In a real pipeline every frame is written once and read at least once, and often twice more on the way to the encoder, so double the figures before comparing them with anything. Then add the model: an input tensor, the intermediate feature maps and the output all compete for the same memory.
Two conclusions follow. A product that decodes four 4K streams at 30 fps is moving close to 3 GB/s of frame traffic before the NPU does any work, which is why memory choice and not core count decides that design. And a product that decodes one 1080p stream and runs a detector is nowhere near the limit, which is why paying for the flagship in that case buys nothing.
Three NPU cores, not one
The 6 TOPS figure is spread over three cores. That matters in two different ways, and confusing them is how performance claims go wrong.
A single model does not automatically use all three cores at once. Whether it is split across cores depends on the toolchain and on whether the graph has branches that can be parallelised at all. A sequential network will tend to run on one core at a time, and the speed-up from the other two appears only when several models or several streams run concurrently.
That second case is the realistic one for an edge box: a detector, a tracker and a classifier running on different streams. Three cores let those three jobs run in parallel instead of time-slicing one engine, which is why the practical throughput of such a box can be much better than the single-model benchmark suggests.
Ask the vendor for the number that matches your case. A single model benchmark and a multi-model benchmark on the same board can differ by a factor that has nothing to do with the silicon and everything to do with scheduling.
Reading the NPU numbers honestly
A TOPS figure is a peak rate for one precision, measured on a well-shaped workload. What decides whether a model runs at the frame rate you need is how much of it the NPU executes and how much pre and post processing falls back to the CPU.
| Precision | Where it matters |
|---|---|
| INT8 | The default for quantized detectors and classifiers |
| INT16 | Models that drift at 8-bit but do not need floating point |
| FP16, BF16, TF32 | Layers that stay sensitive after quantization |
Two things follow from this. First, ask for the RKNN toolchain version that supports your target operator set before you commit to a model. Second, budget for the CPU side of the pipeline, because resizing, colour conversion and non-maximum suppression are where a demo that ran at 30 frames per second drops to 12 on a real camera.
There is a third item that rarely appears in a datasheet: the cost of a fallback. When one operator in a graph is unsupported, the toolchain does not fail. It splits the graph, runs that layer somewhere else and copies the tensors across the boundary. One such boundary in the middle of a backbone can cost more than the whole model would have cost without it, so read the conversion report rather than only the final latency number.
Interfaces that shape the board
The SoC defines what is possible, and the board vendor decides what is actually routed out.
| Interface | What it enables |
|---|---|
| PCIe 3.0 | A second accelerator, NVMe storage, or a capture card |
| SATA 3.0 | Local recording without a USB bridge |
| MIPI CSI-2 | Four 4-lane cameras, or four 2-lane plus two 4-lane |
| HDMI 2.0 input | A 4K at 60 fps capture path from an external source |
Gigabit Ethernet is a controller with an RGMII interface, so the PHY and the magnetics are board-level parts. If a product needs two ports, or PoE, that is a carrier board question rather than a silicon question.
The high-speed lanes are a shared budget rather than a menu. PCIe, SATA and USB 3 draw on the same pool of SerDes lanes on this family, and some combinations exclude each other. Decide the storage and expansion set first, then confirm with the board vendor that the combination is routed and that the lane width each device gets is the one on the block diagram. A design that assumed a full-width link and received a narrower one usually shows up late, as a throughput problem in a product that otherwise works.
The camera side has the same shape. The lane count is a ceiling, and how many sensors reach a connector is decided on the carrier. A four-camera product needs four sets of lanes, four clock lines and four power rails, and the board has to route all of them.
RK3588 or RK3588S
There is a second part in this family that is easy to confuse with the RK3588, and the confusion is expensive because the two are not interchangeable.
The RK3588S keeps the same CPU, GPU and NPU blocks, so on pure compute the two are close. What it removes is interface: one gigabit MAC instead of two, no SATA, no HDMI input, fewer PCIe lanes, fewer Type-C ports and fewer MIPI CSI lanes, all in a smaller package with a different pin pitch.
That is a sensible trade for a tablet, a set-top box or a battery-powered terminal. It is the wrong part for an industrial box that needs two networks, local recording or an external capture path, because those three requirements are exactly what was cut. Treat the S as a different product rather than as a cheaper version of the same one, and confirm the interface set against the datasheet for the specific part number on the board, since the naming is close enough that a bill of materials error here is easy to make.
What the RK3588 does not give you
- No Ethernet PHY, no Wi-Fi, no cellular modem. All of those sit outside the SoC.
- No guarantee that an arbitrary model runs on the NPU. Operator coverage is decided by the toolchain.
- No thermal solution. Sustained 8K decode with NPU load needs a real heatsink, and a fanless enclosure needs the power budget checked first.
- No security module beyond what the vendor BSP enables. If the product needs a verified boot chain or a key store, confirm the support in the BSP before the schematic is frozen.
- No second Ethernet port. One controller means one port, and a two-port product needs a second controller on PCIe or a switch chip.
- No photolithographic supply guarantee. Sourcing and longevity are a question for the vendor and the distributor, not something the datasheet answers.
How it compares with the rest of the family
The RK3572 sits below this part with a different core mix, half the NPU and a 12 MP ISP, at a lower power budget. The RV1126B drops the 3D GPU and the 8K path entirely and is aimed at camera heads. The selection guide linked below walks through the three-way choice by workload.
The reason to move up to this part is almost never the NPU. It is the video path, the display outputs and the lane budget. A product that needs one 1080p stream and a detector is over-served here, and a product that needs to decode four 4K streams while writing two of them to disk is under-served by anything below it.
Next step
Read the Quick Start tab for the bring-up order and the failures that are not software. If the NPU budget is the open question, the selection guide has the comparison table.
Quick Start — RK3588 Edge AI SoC
This is an untested reference for first bring-up. It is based on official documentation, not our own device testing.
A bare SoC is not a product, so this sequence assumes you have a development board or a module plus carrier built around the RK3588. The order below is the one that avoids the usual dead ends.
What you need before you start
- A board with a known schematic and a matching board support package from its vendor.
- A regulated supply sized for peak current, not for idle. Undervoltage during boot is the most common reason a board appears dead.
- A host machine running Linux for the flashing tool and the model conversion toolchain.
- The vendor BSP image, and the RKNN toolchain release that matches its kernel and driver version.
- A USB cable that carries data, not the charge-only cable that came with a phone.
- A serial adapter for the debug UART, because the boot log is the only reliable witness when the board does not come up.
The order, and what each step proves
| Order | Step | Passes when |
|---|---|---|
| 1 | Match software to the silicon revision | BSP, kernel and NPU driver versions are recorded and consistent |
| 2 | Flash a complete image | The tool reports success and the board leaves loader mode on its own |
| 3 | Capture the full boot log | DRAM training, storage and the handover to user space all appear |
| 4 | Verify memory and storage | A read and write test on the shipped media completes at expected speed |
| 5 | Install the runtime and run the vendor sample | The sample runs, which separates platform faults from model faults |
| 6 | Convert and quantize your own model | The conversion report lists no unexpected CPU fallback |
| 7 | Measure on the board, with the camera attached | End to end latency and temperature hold for ten minutes |
The order matters more than any single step. Each one narrows the fault domain, so a failure at step 6 cannot be a power problem and a failure at step 3 cannot be a model problem.
Step 1: match the software to the silicon revision
Boards ship with a BSP pinned to one kernel and one NPU driver. Installing a newer runtime than the driver expects produces either a silent fallback to the CPU or a failed load, and neither looks like a version problem.
Record three things before flashing: the SoC marking on the package, the board revision printed on the PCB, and the BSP release date in the vendor archive. Also record the part number in full, because the family contains variants with different interface sets that share most of a name, and a BSP built for one will boot on another while silently missing interfaces.
Step 2: put the board into loader mode and flash
Rockchip boards normally enter loader mode by holding a recovery or maskrom button while power is applied. The flashing tool then sees the board over USB. On the Linux side the utility is usually rkdeveloptool, and the Windows side ships an upgrade tool from the same BSP package.
Two practical notes. Use a USB port on the host that is not behind a hub, because the loader is sensitive to enumeration timing. And flash the whole image rather than a single partition on the first attempt, so the bootloader, the partition table and the kernel come from the same release.
If the tool does not see the board, check three things in this order: the cable carries data, the host port is a root port, and the board is actually in loader mode rather than merely powered. A board that enumerates and then disappears mid-flash is usually a supply problem rather than a tool problem.
Step 3: read the boot log before touching the NPU
Connect the debug UART and capture the full boot log. You are looking for the DRAM training result, the storage device the bootloader found, and the point where the kernel hands over to the application.
If the board reboots in a loop at the same line every time, stop and fix that first. NPU problems do not look like that; power and storage problems do.
Read the log for what is absent as much as for what is present. A driver that probes and fails, a regulator that never comes up, and a PHY that is never detected all appear as missing lines rather than as error messages, and a board can reach a login prompt while missing half of its interfaces.
Step 4: verify memory and storage before trusting either
Run a memory test over the full range at the bus rate the board actually uses, and run a sustained read and write on the media the product will ship with. Both tests catch the failures that only appear under load: a marginal DRAM timing, a supply that sags during a write burst, or a storage part that is slower than the datasheet the design was sized against.
Note the actual memory rate and width while you are here. The frame traffic arithmetic in the Buying Guide tab depends on those two numbers, and boards in the same family are built with different memory configurations.
Step 5: install the runtime from the vendor SDK
The NPU is reached through Rockchip's own runtime library, not through a generic accelerator interface. Install the version that ships with the BSP rather than the newest one on the vendor site, then run the sample that comes with it.
If the sample runs, the driver, the runtime and the permissions are all correct, and anything that fails afterwards is a model conversion problem rather than a platform problem.
Keep the runtime, the driver and the toolchain from the same release train. Mixing them is the single most common reason a model that worked on a colleague's board fails on yours.
Step 6: convert and quantize your own model on a host
Conversion happens on the host machine, not on the board. The toolchain takes a framework file and produces a container the runtime can load, and the quality of the result depends on the calibration set you feed it.
Use a few hundred frames that look like the real deployment, not a handful of clean samples. Quantization error shows up first on small objects, low contrast scenes and night footage, which are exactly the cases a clean calibration set leaves out.
Read the conversion report, not only the exit status. It lists the operators that were mapped, the ones that were emulated and the ones that forced a graph split. A split in the middle of a backbone costs more than the model itself, and it is invisible in the accuracy figures.
Step 7: measure on the board, not on the host
Run the converted model on the board with the camera path connected, and measure end to end latency rather than inference time alone. Then check the CPU load of the pre and post processing, and check the SoC temperature after ten minutes.
If the frame rate is right for a minute and then falls, you are looking at thermal throttling rather than at the model.
Measure twice: once on the bench with the enclosure open, and once in the housing the product will ship in. The second number is the only one the customer will ever see.
Bring-up failures that are not software
- A camera that enumerates but delivers no frames is usually a lane configuration or a clock problem on the carrier, not a driver bug.
- An NPU that loads but returns wrong results is usually a quantization or normalization mismatch between training and deployment.
- A board that drops off USB during flashing is usually a supply that cannot hold up under the flash current.
- A board that boots only when the debug cable is attached is usually a ground or a reset-line problem, not a firmware problem.
- A model that is fast on one board and slow on an identical one is usually thermal, and the two boards have different heatsinking.
- An interface that works alone and fails when a second one is enabled is the shared-lane budget, not a driver conflict.
What to settle before the design review
- The memory rate and width, against the frame traffic the product actually moves.
- Which of the high-speed devices share lanes, and what width each one ends up with.
- The sustained temperature inside the real enclosure under the real load.
- The BSP maintenance commitment from the vendor, in writing, with a driver fix path.
- The second source for the module, because one board vendor is a supply chain risk even when the silicon is available.
Where to go next
The Buying Guide tab covers how the blocks interact when you size a product, including the arithmetic for frame traffic. For the three-way comparison across the Rockchip family, open the selection guide linked from this page.
API Reference — RKNN C Runtime (RK3588)
The NPU is programmed through one shared library on the board, librknnrt, declared in rknn_api.h. Model conversion happens on a host machine and belongs to the SDK tab; this page is only the on-device interface, read against the header shipped with RKNN Toolkit2 V2.5.0.
Everything below is a reference pattern taken from that header. It is not a program we ran on a board.
The six calls that matter
A single inference is six calls. Everything else in the header is an optimisation of them.
rknn_context ctx;
rknn_init(&ctx, model_data, model_size, 0, NULL);
rknn_input_output_num io_num;
rknn_query(ctx, RKNN_QUERY_IN_OUT_NUM, &io_num, sizeof(io_num));
rknn_tensor_attr attr;
attr.index = 0;
rknn_query(ctx, RKNN_QUERY_INPUT_ATTR, &attr, sizeof(attr));
rknn_input inputs[1];
inputs[0].index = 0;
inputs[0].buf = input_data;
inputs[0].size = input_size;
inputs[0].type = RKNN_TENSOR_UINT8;
inputs[0].fmt = RKNN_TENSOR_NHWC;
rknn_inputs_set(ctx, 1, inputs);
rknn_run(ctx, NULL);
rknn_output outputs[8];
memset(outputs, 0, sizeof(outputs));
rknn_outputs_get(ctx, io_num.n_output, outputs, NULL);
/* read outputs[i].buf, then hand the slots back */
rknn_outputs_release(ctx, io_num.n_output, outputs);
rknn_destroy(ctx);
The order is not cosmetic. The output count comes from RKNN_QUERY_IN_OUT_NUM, and the input layout comes from RKNN_QUERY_INPUT_ATTR. Hard-coding either one is the usual reason a model that behaves in the Python simulator returns garbage on the board: the tensor the board expects is quantised, and its format is whatever the converter decided, not what the framework file said.
Core scheduling is what separates this part from the rest
The header marks rknn_set_core_mask as supported only on multi-core NPU platforms. RK3588 is the part in this family where the choice changes throughput, so the mask is worth understanding here rather than on a single-NPU part.
| Mask value | What it does |
|---|---|
| RKNN_NPU_CORE_AUTO | default, the runtime assigns a core |
| RKNN_NPU_CORE_0 | pin the model to core 0 |
| RKNN_NPU_CORE_0_1_2 | one model spread across three cores |
| RKNN_NPU_CORE_ALL | platform decides how many cores to use |
The masks combine as bit flags, so core 0 plus core 1 is written as the value RKNN_NPU_CORE_0_1 rather than a new constant. A companion call, rknn_set_batch_core_num, sets how many cores a batched run may occupy; on RK3588 that is the switch behind multi-batch multi-core execution.
Two practical notes. Pinning to one core is the right move when several processes share the NPU and you need predictable latency rather than peak throughput. Spreading one model across three cores helps a single large graph, but small models lose more to synchronisation than they gain.
Zero-copy I/O
By default the runtime allocates the input and output tensors and copies into them. To hand it memory you already own, allocate with rknn_create_mem, attach with rknn_set_io_mem, and pass RKNN_FLAG_MEM_ALLOC_OUTSIDE to rknn_init so the runtime does not allocate its own. When the buffer came from elsewhere, rknn_create_mem_from_fd imports an existing dma-buf descriptor, and rknn_create_mem_from_phys takes a physical address.
Cache handling is the trap. If the buffer is mapped cacheable on the CPU side, call rknn_mem_sync after the CPU writes and again after the NPU writes, or set the memory flags so the runtime flushes for you. A missing sync shows up as outputs that are correct on the first frame and stale afterwards, which reads like an operator bug and is not one.
Queries worth calling at startup
| Query command | Why you call it |
|---|---|
| RKNN_QUERY_SDK_VERSION | log the runtime version next to the model |
| RKNN_QUERY_IN_OUT_NUM | size the output array correctly |
| RKNN_QUERY_INPUT_ATTR | learn the real input layout and quantisation |
| RKNN_QUERY_NATIVE_NHWC_INPUT_ATTR | avoid a conversion when you already hold NHWC |
RKNN_QUERY_PERF_RUN and RKNN_QUERY_PERF_DETAIL return per-layer timing counts rather than a single number, and RKNN_QUERY_MEM_SIZE separates weight memory from activation memory. Those two are what you cite in a design review, because they explain why a board falls short instead of only reporting that it does.
Flags that change behaviour
| Flag | When it matters |
|---|---|
| RKNN_FLAG_PRIOR_HIGH | a latency-critical model competing with a second one |
| RKNN_FLAG_MEMORY_CACHEABLE | you manage cache sync yourself |
| RKNN_FLAG_ENABLE_SRAM | keep weights or activations in on-chip SRAM |
| RKNN_FLAG_COLLECT_PERF_MASK | per-layer profiling during bring-up |
SRAM use is worth a look on this part: the vendor changelog records storing weights and feature maps in SRAM as a way to cut system bandwidth, and RKNN_FLAG_SHARE_SRAM lets several contexts share that pool. It is a bandwidth decision rather than a latency one, so measure both before and after.
Errors you should not swallow
RKNN_ERR_TARGET_PLATFORM_UNMATCH means the model was converted for a different target platform than the one running it. RKNN_ERR_SOC_BIND_FAILED means the model was bound to a specific SoC and the current one does not match. Both are configuration mistakes that surface as a failed init rather than as bad numbers, which makes them the cheapest class of failure to catch in manufacturing test.
What this header does not cover
rknn_api.h describes tensors and their memory, nothing else. Video decode and encode are in MPP, two-dimensional resize, colour conversion and compose are in RGA, and large language models go through RKLLM. Those are separate libraries with separate headers and separate version tracks, listed on the SDK tab.
The ISP is likewise outside this interface: the header exposes no ISP configuration, and frames reach the runtime already processed by the imaging pipeline configured in the BSP.
SDK — RKNPU2 Toolchain (RK3588)
The SDK is not one download. Four pieces have to agree with each other before an NPU program runs, and most bring-up failures come from mixing them.
| Piece | Runs on | Job |
|---|---|---|
| BSP image | the board | kernel, NPU driver, root file system |
| RKNN Toolkit2 | the host workstation | converts a framework model into an RKNN container |
| librknnrt | the board | loads the container and executes it |
| RKNN Model Zoo | both | reference demos and pre-converted models |
Toolkit2 installs with pip, a packaging route the vendor added in v2.2.0, which is also the release that added Python 3.12 support. Conversion is a host-side job, so a workstation or a build container is part of the toolchain, not an optional convenience.
Version alignment is the whole game
Three artefacts share a version train: the toolkit that produced the container, the runtime library that loads it, and the kernel driver underneath. The vendor documentation is explicit about keeping them on the same release, and the failure mode of not doing so is asymmetric. A container newer than the runtime fails at init, which is obvious. A runtime newer than the driver can load the model and then map fewer operators to the NPU than intended, which is not obvious at all: the program runs, the numbers look sane, and the frame rate quietly drops.
Record all three versions in the release notes next to the model file. Reading them back is cheap: the runtime answers RKNN_QUERY_SDK_VERSION, and the driver version is visible in the kernel log at probe time.
Host to board
from rknn.api import RKNN
rknn = RKNN(verbose=True)
rknn.config(
target_platform='rk3588',
mean_values=[[0, 0, 0]],
std_values=[[255, 255, 255]],
quantized_dtype='w8a8',
optimization_level=3,
)
rknn.load_onnx(model='model.onnx')
rknn.build(do_quantization=True, dataset='calib.txt')
rknn.export_rknn('model.rknn')
rknn.release()
The target platform string is what binds the container to a part. Converting for RK3588 and deploying on a different family fails at init with a platform mismatch, which is the correct behaviour and worth keeping as a factory test.
The calibration file is a list of sample paths, and it is the single largest influence on accuracy that you control. A few hundred frames from the real deployment beat a handful of clean product shots; quantisation error concentrates on small objects, low contrast and night scenes, which is precisely what a clean set leaves out.
What the converter tells you if you read it
Toolkit2 does more than emit a container. The accuracy analysis pass runs the model layer by layer on the host simulator and on the quantised version, then ranks the layers by error contribution, which is how you find the one convolution responsible instead of guessing.
Hybrid quantisation follows from that: mark the offending layers for higher precision and leave the rest at eight bits. That is the mechanism behind the mixed-precision and weight-only options the toolkit exposes as conversion settings, and it exists because a handful of layers usually dominate the error budget.
The build log also reports operator mapping. Anything not mapped runs on the CPU, and anything that forces a graph split costs more than the model itself. A split in the middle of a backbone is invisible in the accuracy figures and very visible in latency.
The model zoo
The zoo carries per-model export scripts plus Python and C inference demos, and its platform list names RK3588 explicitly. Its stated purpose is to show the full path from a framework model to an RKNN container and then to inference through both the Python and the C interface, which makes it the fastest way to prove that a fresh BSP, runtime and toolkit combination is coherent before you introduce your own model.
The zoo documents recommended cross-compilers for the C demos. Those versions matter more than they look: a mismatched aarch64 toolchain produces a demo that fails to link with the runtime, and the error text points at the linker rather than at the cause.
The language model track is separate
Large language models do not go through rknn_api.h. They use RKLLM, a second stack with its own host-side converter and a board-side runtime declared in rkllm.h, whose platform list names the RK3588 series.
The C surface is small: rkllm_init, rkllm_run for a blocking call or rkllm_run_async for streaming, rkllm_abort to stop a generation, rkllm_destroy to release. Results arrive through a callback whose state field distinguishes a normal token, a finish, and an error, and one state is purely about text: a token that ends mid UTF-8 character. Handling that state correctly is the difference between clean output and broken glyphs in scripts that are not ASCII.
KV cache lifetime is the memory question on this track. The runtime exposes the cache size and calls to clear it, load a prompt cache and release it, and an application that keeps a conversation alive has to decide deliberately whether that cache stays resident.
Which component for which job
| Job | Component |
|---|---|
| neural network inference | librknnrt, rknn_api.h |
| H.264 and H.265 decode or encode | MPP, rk_mpi.h |
| resize, colour convert, compose, draw | RGA, im2d |
| large language model | RKLLM, rkllm.h |
Keeping them separate is not bureaucracy. Each has its own version, its own header and its own failure signature, and knowing which library owns a symptom halves the diagnosis time.
What changed, and when it matters to a pin
| Capability | Arrived | Why you care |
|---|---|---|
| int4 by int4 to int16 matmul | toolkit 1.6.0 | matmul-heavy models on this part |
| 8192 maximum input resolution | recorded for RK3588 | document scanning, large sensor frames |
| weights and feature maps in SRAM | recorded for RK3588 | bandwidth-limited designs |
| one model across several cores | recorded for RK3588 | large single graphs |
| multi-batch multi-core mode | recorded for RK3588 | batched throughput |
That table is the reason to pin the toolkit version in a product BOM rather than tracking latest. A capability your architecture depends on has an earliest release, and the release is a fact you can check instead of a hope.
What to pin
Record the toolkit version, the runtime version, the driver version, the target platform string and the calibration set identifier. Five lines in the release notes turn an unreproducible performance complaint into a comparison.
FAQ — RK3588 Edge AI SoC
Is the RK3588 a chip or a board?
It is a chip. Everything else on a product, including memory, storage, the Ethernet PHYs, the Wi-Fi module and the power tree, is decided by the board vendor. Two boards with the same SoC can differ by a factor of two in power draw and in what interfaces are actually available.
Is the RK3588S the same chip?
No, and it is the most expensive confusion in this family. The RK3588S keeps the same CPU, GPU and NPU blocks but cuts interface: one gigabit MAC instead of two, no SATA, no HDMI input, fewer PCIe lanes and fewer MIPI CSI lanes. It is a different product aimed at tablets and terminals, not a cheaper version of the industrial part. Check the full part number on the board before assuming an interface exists.
What does 6 TOPS buy in practice?
It buys headroom, not a guarantee. The figure is a peak INT8 rate. What you get on a real model depends on how much of the graph the NPU executes, the input resolution, and how much pre and post processing runs on the CPU. A model that fits the operator set and runs at 640 pixel input behaves very differently from the same model at 4K input.
Does one model use all three NPU cores?
Usually not by itself. Whether a model is split across the cores depends on the toolchain and on whether the graph has parallel branches. The three cores pay off most when several models or several streams run at once, which is the normal case for an edge box with a detector, a tracker and a classifier. Ask for a multi-model benchmark rather than a single-model one.
Can it run a language model on device?
The NPU accepts INT4, INT8, INT16, FP16, BF16 and TF32, so small quantized models can run. It is not the part Rockchip positions for large on-device models, and every demo number is specific to the model, the quantization and the prompt length. Treat a language model here as a helper next to a vision pipeline, not as the main workload.
How many 4K streams can it decode?
The codec is rated up to 8K at 60 fps, which is roughly four 4K at 60 fps in raw decoder terms. The practical limit is usually memory bandwidth and the encoder, not the decoder. Do the frame traffic arithmetic for your stream count and compare it with the memory rate the board actually runs at, then measure with all streams active.
How much memory bandwidth do I need?
Enough for the frames plus the model. An uncompressed 4K frame in 4:2:0 at 8 bits is 12.44 MB, so 30 frames per second is 373 MB/s for one stream, before any block reads it a second time. Multiply by the stream count, double it for the write and read passes, add the model's working set, and compare that with the theoretical bandwidth of the memory configuration on the board.
Do I need a heatsink?
For sustained NPU and video load, yes. The package dissipates through the board, so a carrier with a copper plane and a heatsink is the normal design. A sealed fanless enclosure needs the thermal path designed before the enclosure is tooled, not after the first prototype throttles.
Is mainline Linux support available?
Rockchip ships its own Android and Linux BSP, and that is the supported route for production. Mainline kernel support for a given SoC generation is a moving target and should be verified against the kernel version you intend to ship rather than assumed at design time. Community build systems exist, but the vendor BSP is what receives the driver fixes.
Can PCIe, SATA and USB 3 all be used at once?
Not always at full width. These interfaces draw on a shared pool of high-speed lanes, and some combinations exclude each other or narrow a link. Decide which devices the product must have, then confirm the routed combination and the width each device gets with the board vendor. This is the detail most often lost between the SoC block diagram and the finished carrier.
What is the HDMI 2.0 input for?
It lets the board capture an external 4K at 60 fps source without a separate capture chip, which is useful for inspection stations, video conferencing hardware and recording appliances. It exists on the RK3588 and not on the RK3588S, so a product built around capture needs the full part.
How many cameras can it take?
The MIPI CSI-2 lanes can be configured as four 4-lane inputs, or as four 2-lane inputs plus two 4-lane inputs. The ISP handles up to 32 MP with HDR and 3DNR. How many of those lanes reach a connector is a carrier board decision, and each additional camera adds a clock line and a power rail as well as lanes.
Does it include Wi-Fi or cellular?
No. Those are separate modules on the carrier, usually over SDIO or PCIe for Wi-Fi and USB or PCIe for a modem. This is one of the reasons two boards around the same SoC can cost very different amounts.
Is there a security module for secure boot?
The SoC provides the hardware root the vendor BSP builds on, but what is actually enabled, including verified boot, key storage and encrypted storage, depends on the BSP and on the board's provisioning process. If the product needs a certified chain of trust, confirm the support in writing before the schematic is frozen rather than after the security review.
How should I benchmark it against a competitor?
Benchmark the pipeline, not the NPU. Feed the same video through the same model at the same resolution on both boards, measure the time from frame capture to result, and record the CPU load and the temperature at the same time. A board that wins on inference time and loses on capture, resize or post processing loses the comparison that matters.
What single mistake costs the most in this design?
Sizing from the datasheet instead of the workload. A product specified from the TOPS figure and the codec headline, without the frame traffic arithmetic and without a thermal measurement in the real enclosure, tends to arrive at the prototype stage with a performance problem that no software change can fix.