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

atfwd example compile error #3

Closed
devwoojin opened this issue Nov 19, 2019 · 5 comments
Closed

atfwd example compile error #3

devwoojin opened this issue Nov 19, 2019 · 5 comments

Comments

@devwoojin
Copy link

devwoojin commented Nov 19, 2019

platformio-quectel-examples/ThreadX/bg96/atfwd

Terminal will be reused by tasks, press any key to close it.

Executing task: C:.platformio\penv\Scripts\platformio.exe run <

Processing bg96 (platform: quectel; board: bg96; framework: threadx)

Verbose mode can be enabled via -v, --verbose option
<<<<<<<<<<<< QUECTEL BG96 MODULE 2018 Georgi Angelov >>>>>>>>>>>>
CONFIGURATION: https://docs.platformio.org/page/boards/quectel/bg96.html
PLATFORM: Quectel 2.0.14 #ba06662 > Quectel BG96 module
HARDWARE: ARM, MDM9206 1200MHz, 3.00MB RAM, 3.00MB Flash
DEBUG: Current (uart) On-board (uart)
PACKAGES: framework-quectel 02002ee, toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
CORE bg96 SDK2 RO_BASE = 0x40000000 HEAP = 1048576
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 0 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Compiling .pio\build\bg96\src\main.o
Linking .pio\build\bg96\program.elf
.pio\build\bg96\src\main.o: In function TXM_MODULE_THREAD_ENTRY': main.c:(.library+0x4c): undefined reference to qapi_atfwd_Pass_Pool_Ptr'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\bg96\program.elf] Error 1
========================================================================================== [FAILED] Took 2.98 seconds ==========================================================================================
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.

there are two qapi_atfwd.h
bg96>SKD2>qapi>qapi_atfwd.h
bg96>SKD424>qapi>qapi_atfwd.h

@Wiz-IO
Copy link
Owner

Wiz-IO commented Nov 19, 2019

the examples is from SDK3 and must be valid for SDK4

SDK2 not have qapi_atfwd_Pass_Pool_Ptr,
if you have SDK2 archive - get example from there or ask from Quectel

@devwoojin
Copy link
Author

quectel eval board + BG96 + PlatformIO

ATI
Quectel
BG96
Revision: BG96MAR02A07M1G

OK

patformio.ini
[env:bg96]
platform = quectel
board = bg96
framework = threadx
upload_port = COM26

threadx-bg96.py
....
def dev_init(env, platform):
dev_create_template(env)
dev_compiler(env)
framework_dir = env.PioPlatform().get_package_dir("framework-quectel")
core = env.BoardConfig().get("build.core")
env.sdk = env.BoardConfig().get("build.sdk", "SDK2").upper() #SDK2 #SDK2831 #SDK325 #SDK424

the default main.c only works SDK2 , SDK2831
SDK325, SDK424 build, upload success but not work.

@Wiz-IO
Copy link
Owner

Wiz-IO commented Nov 19, 2019

are you switch SDK from platformio.ini
;board_build.sdk = ; empty is SDK2, other SDK2831 SDK325 SDK424

@Wiz-IO
Copy link
Owner

Wiz-IO commented Nov 19, 2019

btw: you can not use SDK3/4 with BG96MAR02A07M1G
SDK3 is for ...RA3...

https://github.com/Wiz-IO/platform-quectel/wiki/Framework-ThreadX#firmwares-and-quectel-bg96-threadx-sdk

@devwoojin
Copy link
Author

thank you..^^

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