Quick Start
Build and flash the Blinky example to verify your toolchain, SDK installation, and hardware setup.
What You Need
- An E1M module (E1M-AEN, E1M-X V2N, or E1M-X V2N-M1) installed on a carrier board
- A USB cable connected to the debug/programming port
- The ALP SDK installed on your development machine
1. Configure the Build
From the SDK root directory, create a build directory and run CMake. Replace <board> with your target module:
| Module | Board Name |
|---|---|
| E1M-AEN | e1m_aen |
| E1M-X V2N | e1m_x_v2n |
| E1M-X V2N-M1 | e1m_x_v2n_m1 |
mkdir build && cd build
cmake -DBOARD=e1m_x_v2n -DEXAMPLE=blinky ..
2. Build
cmake --build . --parallel
On success, the output binary is located at:
build/examples/blinky/blinky.elf
3. Flash
Connect your module via USB and flash the binary:
python3 ../scripts/flash.py --port auto --file blinky.elf
4. Observe
After flashing, the on-board LED should blink at a 500 ms interval. If you have a serial terminal connected:
# Example using minicom (Linux/macOS)
minicom -D /dev/ttyACM0 -b 115200
You should see:
[ALP SDK] Blinky example started
LED ON
LED OFF
LED ON
...
Troubleshooting
| Symptom | Possible Cause | Solution |
|---|---|---|
| CMake error: board not found | Incorrect -DBOARD value | Check the board name in the table above |
| Flash fails: no device | USB cable not connected or wrong port | Verify the USB connection and port |
| No serial output | Wrong baud rate | Use 115200 baud |
| LED does not blink | Wrong binary or flash failure | Re-flash and verify the build output |
Next Steps
- Explore the Blinky example in detail
- Read a sensor with the Sensor Reading example
- Browse the API reference for available peripherals