; ============================================================================= ; AR Concentrador NMEA2000-USB v1 -- firmware build configuration ; ============================================================================= ; ; Target hardware: AR-CONCENTRADOR v1.0 (ESP32-DOWD) ; Role: Bidirectional NMEA 2000 <-> NMEA 0183 USB gateway. ; ; UART1 TX (GPIO17) → 4x CH340N → USB-OUT1..4 (broadcast NMEA 0183 data) ; UART2 RX (GPIO16) ← 4x CH340N ← USB-IN1..4 (receive $PARP commands) ; CAN TX (GPIO21) → MCP2562T → NMEA 2000 backbone ; CAN RX (GPIO22) ← MCP2562T ← NMEA 2000 backbone ; ; Protocol: docs/concentrador_protocol.md ; ============================================================================= [platformio] src_dir = src default_envs = esp32-dev [env] platform = espressif32@^6.7.0 framework = arduino monitor_speed = 115200 monitor_filters = esp32_exception_decoder, time build_flags = -std=gnu++17 -DCORE_DEBUG_LEVEL=3 -DAR_FW_VERSION=\"1.0.0\" -Wall -Wno-unused-parameter -Wno-missing-field-initializers build_unflags = -std=gnu++11 lib_deps = ttlappalainen/NMEA2000-library@^4.22.0 ttlappalainen/NMEA2000_esp32@^1.0.3 [env:esp32-dev] board = esp32dev build_type = release build_flags = ${env.build_flags} -Os [env:esp32-debug] board = esp32dev build_type = debug build_flags = ${env.build_flags} -O0 -ggdb -DCORE_DEBUG_LEVEL=5