Software/Arduino Core/Reference

Troubleshooting

Symptoms, causes and remedies for build, upload, camera, model, display, audio and connectivity faults.

beginner5 min read

Faults are grouped by the stage at which they appear. The console referred to is the USB serial port; Tools > Debug console > On adds the core's telemetry lines to it.

Build

SymptomCauseRemedy
arm-none-eabi-gcc not foundThe compiler is not on PATHAdd the toolchain's bin directory and restart the IDE
Toolchain reported as too oldGCC below 11 found firstRemove or reorder the older toolchain on PATH
Python was not foundNo Python 3 on PATHInstall Python 3.8 or later
Signing failedSTM32CubeProgrammer not installed in its default locationInstall it
Model step failsST Edge AI Core missing or not 4.0Install version 4.0; set NEURON6_STEDGEAI for a non-default path
Too many modelsMore than eight pragmasRemove models
Two models with the same nameDuplicate name=Give one a distinct name
<lib>.h: No such file after adding a libraryStale IDE cacheClear %LOCALAPPDATA%\Arduino15\cache once
Image exceeds 1.5 MBApplication too largeTools > Optimize > Smallest, or remove code

Upload

SymptomCauseRemedy
Port does not return after uploadSlow enumerationWait ten seconds, retry
Board ignores the 1200 baud touchApplication crashedDouble press reset, then upload
No port at allPower-only cable or faulty portChange cable, then double press reset
Weights upload every timeTools > Model weights set to alwaysSelect "only when changed"

Boot

SymptomCauseRemedy
Solid red LED shortly after power upError handler enteredRead [ERRDUMP] on the console. Usually a memory shortage from a large model with a large camera mode
Red LED blinks n times, power save library linkedPrevious run failed in the sleep engine at step nConsult the library README bring-up checklist
[NeuroN6] No camera sensor declaredNo sensor object at file scopeExpected for a sketch without a camera

Camera

SymptomCauseRemedy
No frames; console names the sensor and chip IDWrong carrier argument, or sensor not fittedMatch CARRIER_TFT or the default to the physical carrier
Picture upside down or mirroredOrientationcfg.mirror_flip = CAMERA_AUTO_FLIP
[CAM] warning about frame rateRequested rate above the mode's maximumExpected; the rate is clamped
[VISION WARN] crop clampedOffset crop outside the frame or below the model input sizeAdjust cfg.nn.crop_*
Display off at XGA or aboveDisplay pipe has no downscalerUse WVGA or VGA for the panel
Blurred codes or tags never decodeAutofocus offcfg.af = AF_CONTINUOUS
Colour threshold driftsAutomatic white balanceLock it after settling

Models

SymptomCauseRemedy
Boxes misplacedcfg.nn.width and height do not match the modelSet them to the model's input size
Boxes skewed near edgesStretch distortionASPECT_CROP_CENTER
Detections are noiseInput quantisation symmetric on a 0 to 1 modelRe-export with asymmetric input
Nothing detected, model compilesInput layout not [b:1,h:H,w:W,c:3]tools/tflite_input_to_hwc.py
Stale boxes remainA slot not republishedvnd_meta_invalidate_slot()
One model's boxes missing in a two-model sketchWrong model on slot 0Put the multi-class detector on VND_META_SLOT_MODEL_0
Poor detection at 5 MPDecimationXGA with centre crop

Display

SymptomCauseRemedy
[VISION WARN] TRANSPORT_LCD selected, but this carrier has no LCD panelNot the TFT carrierUse TRANSPORT_USB
Stripes in the Neuro Studio view with the panel onBus contentionLower cfg.fps
Sketch graphics flicker with a model runningTwo drawers clearing the overlayDraw from a post-processor callback or use OVL_CLEAR then OVL_Commit()
Touch not foundPanel held in reset or not fittedRESET is tied to system reset; check the panel

Audio

SymptomCauseRemedy
Microphone level stuck at 0Clock, MDF or DMA faultRead [MICDBG] top down; the first wrong value locates the fault
No soundSAI, DMA or amplifier shutdownspeaker.debugDump(); SD(PB6) ODR must read 1
Spectrum lowest band always litDC offsetHandled by n6_fft_magnitude(); verify the library version
Audio absent in Neuro Studio while classifyingmic.streamToNS(false)Expected; only one consumer of samples

Connectivity

SymptomCauseRemedy
WiFi transport falls back to USBLibrary not included, module absent, firmware not flashed or credentials wrongCheck the console message
localIP() reads 0.0.0.0Access point not yet leasingWait up to a few seconds
BLE begin() failsModule not loadedStart the access point first
BLE connection drops immediatelyConnection interval too short for once-per-frame pollingWiden the interval and supervision timeout
LTE modem silentBaud persisted at 921600findBaud()
LTE attaches but no addressAPN authentication missingSupply username and password
OTA manifest fetch failsNetwork or serverCheck MayaW476.status() and the server files

Sensors

SymptomCauseRemedy
Sensor not foundNot fitted, or wrong addressRun WireScanner
Sketch stalls with camera and sensorsLong bus claimUse n6_i2c_trylock() for publishers
Thermal camera never bootsI2C traffic during its boot window, or CS floatingClaim the bus around powerOn()
Thermal frame rate collapses with a modelCPU contentioncfg.nn.max_fps around 22

SD cards

SymptomCauseRemedy
Card never initialisesInit clock above 400 kHzSPI.setKernelSource(RCC_SPI2CLKSOURCE_HSI)
Card initialises then failsData modeSPI.forceDataMode(SPI_MODE3)
Card latches after a whileSupply dip on flying leads10 uF and 100 nF at the adapter

Power

SymptomCauseRemedy
USB disconnects during a sketchsleepStop()Expected; use sleepLight() when tethered
Current high while idleIdle task spinningLink the power save library
Watchdog reset stormFloating WDIPull-downs on WDI and SET1