K32W/QN9090 Certification Tool source code problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

K32W/QN9090 Certification Tool source code problem

862 Views
MVWare
Contributor III

I Was happy to find code to test the K32W041 radio performance.
The K32W041/K32W061/QN9090(T)/QN9030(T) Bluetooth Low Energy Certification Tool User's Guide . Document identifier: K32WQN9090CTUG. Also AN12610 is valuable.
I succeeded to run the BIN file on my targer board and used a terminal program to test some radio TX performance with a spectrum analyzer.  So fat it works well.


Then I wanted to deep dive into the code.  form zip file: K32WQN9090CTUGSW.zip, this includes the MCUxpresso folders dated at anding 2021.
I Run the MCUExpresso V23.12.148 with an MC-link SWD, this works fine.
I imported the project, the zip, that seems to go fine, it also imports the QN9090 SDK.

Then I want to compile and link.  Compiling goes with out errors.  Linker does not. It van not link some general funtions:  _Scanf, _printf, _seek... and some more.
Question:   How can i solve this?
                    or is there a more recent update of the zip?

secondly:
the debugger keeps wanting J-Link.  But I us MCU-link with the link-server (which works).

any help is greatful. I want to get started with this base of code example to accelerate to better RF test setups..

0 Kudos
Reply
7 Replies

819 Views
luis_maravilla
NXP Employee
NXP Employee

Hello

Could you help us sharing your Linker configuration?

Could you help us confirm, have you made modifications?

Best Regards, Luis

0 Kudos
Reply

525 Views
MVWare
Contributor III

Hi Luis,  I think the certit tool is quite a legacy...
Should I debug it in an old installation?  or is there a recent update?
Are you able to get it running in the current DSK versions.

My main goal is to debug it. learn from it and more important to make test setups.

I need RSSI and LQI values from the radio aswell

0 Kudos
Reply

435 Views
luis_maravilla
NXP Employee
NXP Employee

Hello,

You will need to use an older version of MCUXpresso,

In the Release Notes for the SDK it's mentioned that the MCUXpresso needed is the MCUXpresso IDE version 11.3.0

Since this older version may not be available to download, You could use MCUXpresso IDE v11.6.0; For downloading this version, please refer to following link:

MCUXpresso Integrated Development Environment (IDE)

Could you help us build the project in this version and confirm it Build and operates correctly?

 

For more information about MCUXpresso IDE versions release please refer to link MCUXpresso IDE - Release History

Best Regards, Luis

0 Kudos
Reply

556 Views
MVWare
Contributor III

From chatgpt I got the tip to update the toolchain as it seems to be a legacy project, that can have old settings.
I do that in:  properties -> Tool chain editor
ther I select another ""current tool chain""
and then I select back to the ""NXP MCU tools.
If I did this, and I go back to clean and Build, I get 13 compiler errors.

../source/common/ApplMain.c: In function 'AppSaveBondingInfo':

../source/common/ApplMain.c:771:5: error: unknown type name 'PDM_teStatus'; did you mean 'PWR_teStatus'?

771 | PDM_teStatus pdmSt;

| ^~~~~~~~~~~~

| PWR_teStatus

../source/common/ble_controller_task.c:144:36: error: 'AppPoolsDetails_c' undeclared here (not in a function); did you mean 'PoolsDetails_c'?

144 | const uint16_t gLeMemBufListSize = AppPoolsDetails_c 0;

| ^~~~~~~~~~~~~~~~~

| PoolsDetails_c

../source/common/ble_controller_task.c:144:54: error: expected ',' or ';' before numeric constant

144 | const uint16_t gLeMemBufListSize = AppPoolsDetails_c 0;

| ^

../source/common/ble_controller_task.c:145:47: error: expected ']' before numeric constant

145 | void *gLeMemBufList[AppPoolsDetails_c 0];

| ^~

| ]

../source/app_config.c:87:20: error: 'gAppUseBonding_d' undeclared here (not in a function)

87 | .withBonding = gAppUseBonding_d,

| ^~~~~~~~~~~~~~~~

../source/common/ApplMain.c:790:21: warning: implicit declaration of function 'PDM_eSaveRecordData' [-Wimplicit-function-declaration]

790 | pdmSt = PDM_eSaveRecordData(bondEntries[i].pdmId,

| ^~~~~~~~~~~~~~~~~~~

 

Now it gets more dificut to me, as if more under water is not correct with this 2020 project
while we already run 24..

0 Kudos
Reply

572 Views
MVWare
Contributor III

Hi,  I have added a pdf with much info.  I hope this helps.. An we fix it...

0 Kudos
Reply

676 Views
MVWare
Contributor III

Hi, nice that you can help me.  What do you need?  screen shots a file?

0 Kudos
Reply

850 Views
MVWare
Contributor III

Corection  I use 24.12.148

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2270076%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EK32W%2FQN9090%20Certification%20Tool%20source%20code%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2270076%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20Was%20happy%20to%20find%20code%20to%20test%20the%20K32W041%20radio%20performance.%3CBR%20%2F%3EThe%26nbsp%3BK32W041%2FK32W061%2FQN9090(T)%2FQN9030(T)%20Bluetooth%20Low%20Energy%20Certification%20Tool%20User's%26nbsp%3BGuide%20.%26nbsp%3BDocument%20identifier%3A%20K32WQN9090CTUG.%20Also%20AN12610%20is%20valuable.%3CBR%20%2F%3EI%20succeeded%20to%20run%20the%20BIN%20file%20on%20my%20targer%20board%20and%20used%20a%20terminal%20program%20to%20test%20some%20radio%20TX%20performance%20with%20a%20spectrum%20analyzer.%26nbsp%3B%20So%20fat%20it%20works%20well.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EThen%20I%20wanted%20to%20deep%20dive%20into%20the%20code.%26nbsp%3B%20form%20zip%20file%3A%26nbsp%3BK32WQN9090CTUGSW.zip%2C%20this%20includes%20the%20MCUxpresso%20folders%20dated%20at%20anding%202021.%3CBR%20%2F%3EI%20Run%20the%20MCUExpresso%20V23.12.148%20with%20an%20MC-link%20SWD%2C%20this%20works%20fine.%3CBR%20%2F%3EI%20imported%20the%20project%2C%20the%20zip%2C%20that%20seems%20to%20go%20fine%2C%20it%20also%20imports%20the%20QN9090%20SDK.%3CBR%20%2F%3E%3CBR%20%2F%3EThen%20I%20want%20to%20compile%20and%20link.%26nbsp%3B%20Compiling%20goes%20with%20out%20errors.%26nbsp%3B%20Linker%20does%20not.%20It%20van%20not%20link%20some%20general%20funtions%3A%26nbsp%3B%20_Scanf%2C%20_printf%2C%20_seek...%20and%20some%20more.%3CBR%20%2F%3EQuestion%3A%26nbsp%3B%20%26nbsp%3BHow%20can%20i%20solve%20this%3F%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20or%20is%20there%20a%20more%20recent%20update%20of%20the%20zip%3F%3CBR%20%2F%3E%3CBR%20%2F%3Esecondly%3A%3CBR%20%2F%3Ethe%20debugger%20keeps%20wanting%20J-Link.%26nbsp%3B%20But%20I%20us%20MCU-link%20with%20the%20link-server%20(which%20works).%3CBR%20%2F%3E%3CBR%20%2F%3Eany%20help%20is%20greatful.%20I%20want%20to%20get%20started%20with%20this%20base%20of%20code%20example%20to%20accelerate%20to%20better%20RF%20test%20setups..%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2270076%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EHW-Open-Source%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EProduct%3A%20K32W0%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EProtocol%3A%20Bluetooth%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EProtocol%3A%20Zigbee%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2270230%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20K32W%2FQN9090%20Certification%20Tool%20source%20code%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2270230%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%3C%2FP%3E%0A%3CP%3ECould%20you%20help%20us%20sharing%20your%20Linker%20configuration%3F%3C%2FP%3E%0A%3CP%3ECould%20you%20help%20us%20confirm%2C%20have%20you%20made%20modifications%3F%3C%2FP%3E%0A%3CP%3EBest%20Regards%2C%20Luis%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2270081%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20K32W%2FQN9090%20Certification%20Tool%20source%20code%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2270081%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ECorection%26nbsp%3B%20I%20use%2024.12.148%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2270771%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20K32W%2FQN9090%20Certification%20Tool%20source%20code%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2270771%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%20nice%20that%20you%20can%20help%20me.%26nbsp%3B%20What%20do%20you%20need%3F%26nbsp%3B%20screen%20shots%20a%20file%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2270964%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20K32W%2FQN9090%20Certification%20Tool%20source%20code%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2270964%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EFrom%20chatgpt%20I%20got%20the%20tip%20to%20update%20the%20toolchain%20as%20it%20seems%20to%20be%20a%20legacy%20project%2C%20that%20can%20have%20old%20settings.%3CBR%20%2F%3EI%20do%20that%20in%3A%26nbsp%3B%20properties%20-%26gt%3B%20Tool%20chain%20editor%3CBR%20%2F%3Ether%20I%20select%20another%20%22%22current%20tool%20chain%22%22%3CBR%20%2F%3Eand%20then%20I%20select%20back%20to%20the%20%22%22NXP%20MCU%20tools.%3CBR%20%2F%3EIf%20I%20did%20this%2C%20and%20I%20go%20back%20to%20clean%20and%20Build%2C%20I%20get%2013%20compiler%20errors.%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CDIV%3E%3CDIV%3E%3CP%3E%3CSPAN%3E..%2Fsource%2Fcommon%2FApplMain.c%3A%20In%20function%20'AppSaveBondingInfo'%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E..%2Fsource%2Fcommon%2FApplMain.c%3A771%3A5%3A%20error%3A%20unknown%20type%20name%20'PDM_teStatus'%3B%20did%20you%20mean%20'PWR_teStatus'%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E771%20%7C%20PDM_teStatus%20pdmSt%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7C%20%5E~~~~~~~~~~~%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7C%20PWR_teStatus%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E..%2Fsource%2Fcommon%2Fble_controller_task.c%3A144%3A36%3A%20error%3A%20'AppPoolsDetails_c'%20undeclared%20here%20(not%20in%20a%20function)%3B%20did%20you%20mean%20'PoolsDetails_c'%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E144%20%7C%20const%20uint16_t%20gLeMemBufListSize%20%3D%20AppPoolsDetails_c%200%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7C%20%5E~~~~~~~~~~~~~~~~%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7C%20PoolsDetails_c%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E..%2Fsource%2Fcommon%2Fble_controller_task.c%3A144%3A54%3A%20error%3A%20expected%20'%2C'%20or%20'%3B'%20before%20numeric%20constant%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E144%20%7C%20const%20uint16_t%20gLeMemBufListSize%20%3D%20AppPoolsDetails_c%200%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7C%20%5E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E..%2Fsource%2Fcommon%2Fble_controller_task.c%3A145%3A47%3A%20error%3A%20expected%20'%5D'%20before%20numeric%20constant%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E145%20%7C%20void%20*gLeMemBufList%5BAppPoolsDetails_c%200%5D%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7C%20%5E~%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7C%20%5D%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E..%2Fsource%2Fapp_config.c%3A87%3A20%3A%20error%3A%20'gAppUseBonding_d'%20undeclared%20here%20(not%20in%20a%20function)%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E87%20%7C%20.withBonding%20%3D%20gAppUseBonding_d%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7C%20%5E~~~~~~~~~~~~~~~%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E..%2Fsource%2Fcommon%2FApplMain.c%3A790%3A21%3A%20warning%3A%20implicit%20declaration%20of%20function%20'PDM_eSaveRecordData'%20%5B-Wimplicit-function-declaration%5D%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E790%20%7C%20pdmSt%20%3D%20PDM_eSaveRecordData(bondEntries%5Bi%5D.pdmId%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%7C%20%5E~~~~~~~~~~~~~~~~~~%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ENow%20it%20gets%20more%20dificut%20to%20me%2C%20as%20if%20more%20under%20water%20is%20not%20correct%20with%20this%202020%20project%3CBR%20%2F%3Ewhile%20we%20already%20run%2024..%3C%2FP%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2270960%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20K32W%2FQN9090%20Certification%20Tool%20source%20code%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2270960%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%26nbsp%3B%20I%20have%20added%20a%20pdf%20with%20much%20info.%26nbsp%3B%20I%20hope%20this%20helps..%20An%20we%20fix%20it...%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2288936%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20K32W%2FQN9090%20Certification%20Tool%20source%20code%20problem%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2288936%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EYou%20will%20need%20to%20use%20an%20older%20version%20of%20MCUXpresso%2C%3C%2FP%3E%0A%3CP%3EIn%20the%20Release%20Notes%20for%20the%20SDK%20it's%20mentioned%20that%20the%20MCUXpresso%20needed%20is%20the%20MCUXpresso%20IDE%20version%2011.3.0%3C%2FP%3E%0A%3CP%3ESince%20this%20older%20version%20may%20not%20be%20available%20to%20download%2C%20You%20could%20use%20MCUXpresso%20IDE%20v11.6.0%3B%20For%20downloading%20this%20version%2C%20please%20refer%20to%20following%20link%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fwebapp%2Fswlicensing%2Fsso%2FdownloadSoftware.sp%3Fcatid%3DMCUXPRESSO%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EMCUXpresso%20Integrated%20Development%20Environment%20(IDE)%3C%2FA%3E%3C%2FP%3E%0A%3CP%3ECould%20you%20help%20us%20build%20the%20project%20in%20this%20version%20and%20confirm%20it%20Build%20and%20operates%20correctly%3F%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EFor%20more%20information%20about%20MCUXpresso%20IDE%20versions%20release%20please%20refer%20to%20link%20%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2FMCUXpresso-IDE-Knowledge-Base%2FMCUXpresso-IDE-Release-History%2Fta-p%2F1113669%22%20target%3D%22_blank%22%3EMCUXpresso%20IDE%20-%20Release%20History%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EBest%20Regards%2C%20Luis%3C%2FP%3E%3C%2FLINGO-BODY%3E