Hello,
I feel a bit hard to compile for JN5189 with MMAC library. Is there any guide for define building project with MMAC on the latest SDK (2.6.3)?
I just want to perform the very initial testing for packet transmit or receive, and I don't need full 802.15.4 functionality.
I tried:
Questions:
Solved! Go to Solution.
Hi @usaygo,
-What is the Python version that you have installed?
Build "Packet sniffer" from JN-AN-1255 with SDK2.6.0 firstly. This seems working! Then I tried replacing SDK2.6.0 by SDK2.6.3 files. This does not work (hung up at boot stage???).
-Could you please provide the errors that you are seeing?
Unfortunately, we do not provide a guide or example to build an MMAC example.
Please use the AppBuildNone.Id instead of the wizards.
Regards,
Mario
I might have identified the root cause of this issue.
When I made a question, I used startup_JN5189.cpp (not .c) which does not have any interrupt handlers definition regarding 15.4 MAC. Now I replaced it by startup_JN5189.c at SDK2_6_4, it works fine. And also it should not to be with AddBuildNond.ld but it could be with Managed Linker Script as well.
If Managed Linker Script is used, the file (linkscripts/user_memory.ldt) should be added and (maybe) RAM should configured to start from 0x4000400. (But I can't see any changes in memory starting from 0x4000000.)
__mac_buffer_base = 0x04000000;
Anyway, the project wizard will introduce startup_JN5189.cpp, however this file should be replaced by startup_JN5189.c in {SDKROOT}/devices/JN5189/gcc/.
Thanks for many comments and help!
Hello,
I had an update and progress
The reason of my confusion was "startup_JN5189.c".
The key to use MMAC seems two things below:
Thanks!
//Seigo
Just small update,
Hi Mario,
Thanks for the comment.
> I guess AppBuildNone.ld is more close to existing JENNIC codes.
Thanks. Hmm, my existing code is not depended JENNIC style tightly. So I'm thinking of port them to standard ARM style... However SDK code is very confusing because some API sets are existing (some are Jennic, some are Kinetis, some are generic ARM). Also endian is different now... I feel a big leap from JN516x
> Please use the AppBuildNone.Id instead of the wizards.
I will try it later. First thing to do is check the workings of MMAC.
Regards,
Seigo
Hi @usaygo,
Could you please update the Python version that you have? the SDK was updated to work with the 3.8 version.
For more information please look at the next AN.
Application Note: JN-AN-1260 5.5 Python3 Installation
The image signing tool is implemented in Python. This requires Python 3.8.0 or a newer version to be installed, which can be downloaded from the following web page:
https://www.python.org/downloads/release/python-380/
Please let me know your findings
Regards,
Mario
Thanks Mario.
I checked Python version. It seems okay.
//Seigo
Hi @usaygo,
-What is the Python version that you have installed?
Build "Packet sniffer" from JN-AN-1255 with SDK2.6.0 firstly. This seems working! Then I tried replacing SDK2.6.0 by SDK2.6.3 files. This does not work (hung up at boot stage???).
-Could you please provide the errors that you are seeing?
Unfortunately, we do not provide a guide or example to build an MMAC example.
Please use the AppBuildNone.Id instead of the wizards.
Regards,
Mario
> Unfortunately, we do not provide a guide or example to build an MMAC example.
The code from contiki project is a good example. Thanks!
https://contiki-ng.readthedocs.io/en/master/_api/micromac-radio_8c_source.html
//Seigo
Hi Mario,
That's it. The "AppBuildNone.ld" is the key for MMAC library. As I post just before, I also need to take care of the version of "startup_JN5189.c". The wizard takes improper version for "AppBuildNone.ld".
Thank you for many comments. Now my code receives 802.15.4 packets!
//Seigo