Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build from local sources for 2-band LR12221 (e.g. RM Nomad) - 1.7.7, MacOS #703

Open
Akceptor opened this issue Nov 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Akceptor
Copy link

Expected Behavior

Since Radiomaster Nomad supports both bands it will allow building from local sources with both options set:
image

How it used to work in 1.7.5. :
If you select regulatory domain in 2.4GHz band the build fails with
Regulatory_Domain 2400 not compatible with RADIO_SX127X/RADIO_LR1121
but if you uncheck that option it will build the firmware (not really obvious but still acceptable)

Current Behavior

If you have both 2.4 and Sub2.4 checked it just fails with no logs on UI or explanation:
image
If you check app log file there is the same Regulatory_Domain 2400 not compatible with RADIO_SX127X/RADIO_LR1121 error as before

But if 2.4 GHZ ISM is unchecked the error on UI says "You must choose regulatory domain for your device in 2.4 GHz band" so there is no actual way to build from sources

Steps to Reproduce

  1. Select LOCAL build and chose folder with elrs sources
  2. Select target as Device category: Radiomaster, Device: RadioMaster Nomad 2.4/900 TX
  3. Select flashimg method: WiFi
  4. Pick Regulatory domains both for 2.4GHz and 900MHz bands
  5. Click "Build"
    Observe build error:
git Exception: !!! Regulatory_Domain 2400 not compatible with RADIO_SX127X/RADIO_LR1121 !!!: File "/Users/vostapiv/.platformio/penv/lib/python3.8/site-packages/platformio/builder/main.py", line 167: env.SConscript(env.GetExtraScripts("pre"), exports="env") File "/Users/vostapiv/.platformio/packages/tool-scons/scons-local-4.8.1/SCons/Script/SConscript.py", line 620: return _SConscript(self.fs, *files, **subst_kw) File "/Users/vostapiv/.platformio/packages/tool-scons/scons-local-4.8.1/SCons/Script/SConscript.py", line 280: exec(compile(scriptdata, scriptname, 'exec'), call_stack[-1].globals) File "/Users/vostapiv/Desktop/ExpressLRS-3.5.2/src/python/build_flags.py", line 153: print_error('Regulatory_Domain 2400 not compatible with RADIO_SX127X/RADIO_LR1121') File "/Users/vostapiv/Desktop/ExpressLRS-3.5.2/src/python/build_flags.py", line 30: raise Exception('!!! %s !!!' % error) ========================= [FAILED] Took 12.69 seconds ========================= Environment Status Duration -------------------------------- -------- ------------ Unified_ESP32_LR1121_TX_via_UART FAILED 00:00:12.689 ==================== 1 failed, 0 succeeded in 00:00:12.689 ====================
  1. Uncheck 2.4GHz domain
  2. Click "Build"
    Observe an error: "You must choose regulatory domain for your device in 2.4 GHz band"

Possible Solution (Not obligatory)

Context

Your Environment

Configurator version: 1.7.7
OS: MacOS Sonoma
TX Hardware: RadioMaster Nomad 2.4/900 TX
Build type: LOCAL

@Akceptor Akceptor added the bug Something isn't working label Nov 20, 2024
@Akceptor
Copy link
Author

Akceptor commented Jan 5, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant