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

AU915 compilation - CMakeLists.txt needs changing #1409

Open
coratron opened this issue Feb 12, 2023 · 2 comments
Open

AU915 compilation - CMakeLists.txt needs changing #1409

coratron opened this issue Feb 12, 2023 · 2 comments

Comments

@coratron
Copy link

coratron commented Feb 12, 2023

Description

AU915 will not compile due to a missing line (it uses a function in RegionBaseUS.c)

Steps to reproduce

Command:

cmake -DCMAKE_BUILD_TYPE=Release \                                                                                                   ✔  idf4.4_py3.8_env  
        -DTOOLCHAIN_PREFIX="BLABLABLABLA/arm-none-eabi-gcc/11.3.1-1.1.2/.content" \
        -DCMAKE_TOOLCHAIN_FILE="../cmake/toolchain-arm-none-eabi.cmake" \
        -DAPPLICATION="LoRaMac" \
        -DMODULATION="LORA" \
        -DREGION_EU868="OFF" \
        -DREGION_US915="OFF" \
        -DREGION_CN779="OFF" \
        -DREGION_EU433="OFF" \
        -DREGION_AU915="ON" \
        -DREGION_AS923="OFF" \
        -DREGION_CN470="OFF" \
        -DREGION_KR920="OFF" \
        -DREGION_IN865="OFF" \
        -DREGION_RU864="OFF" \
        -DBOARD="NucleoL073" \
        -DMBED_RADIO_SHIELD="SX1262MBXCAS" \
        -DUSE_RADIO_DEBUG="ON" ..

Output after building:

../src/mac/region/RegionAU915.c:870: undefined reference to `RegionBaseUSComputeNext125kHzJoinChannel'

Proposed solution:

Modify CmakeLists.txt inside the "mac" folder, line 73

if(REGION_AU915 STREQUAL ON)
set( MAC_BUILD_SOURCES
     ${MAC_BUILD_SOURCES}
     "${CMAKE_CURRENT_SOURCE_DIR}/region/RegionBaseUS.c"
     "${CMAKE_CURRENT_SOURCE_DIR}/region/RegionAU915.c" )
endif()

I have yet to test that the system works on the hardware.

@ndiddy99
Copy link

I also ran into this situation and did the same fix. It makes me wonder if Semtech ever tested AU915 functionality on the LoRaMac-node stack.

@ndiddy99
Copy link

BTW I tested the device on an AU915 gateway and it did seem to work correctly, so that's good at least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants