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
GUIDE: Building ZiGate firmware #105
Comments
Very useful contribution! |
@ISO-B Thanks very much for this step by step help. May be you could help me, while /c/NXP/bstudio_nxp/sdk/Tools/ba-elf-ba2-r36379/bin/ba-elf-objcopy -j .version -j .bir -j .flashheader -j .vsr_table -j .vsr_handlers -j .ro_mac_address -j .ro_ota_header -j .ro_se_customData -j .rodata -j .text -j .data -j .bss -j .heap -j .stack -S -O binary ZigbeeNodeControlBridge_JN5168_FULL_FUNC_DEVICE_115200.elf ZigbeeNodeControlBridge_JN5168_FULL_FUNC_DEVICE_115200.bin
|
Binary is ok and can be flashed. That error is expected since NXP's JN-SW-4170 has broken memsize.exe . Only thing that memsize.exe is used is to generate xls file that gives overview how firmware uses memory. You can remove memsize.exe command from Makefile then you don't get that error. |
My expérience with @ISO-B description:
from A to Z, don't skip any step. PS: no issue for me with memsize.exe |
I try a complementary approach to @ISO-B which looks to work, here after the differents steps: As the compilation is closely linked to the folders organisation here is a solution I use to ease the dev. You need to be admin to do next 2 commands: First create a folder link with the command: Second create a folder link with the command: Then we will use GitHub Desktop application to get the latest version. Start GitHub Desktop and "Clone a repository" from URL: https://github.com/fairecasoimeme/ZiGate.git Select destination folder c:/NXP/bstudio_nxp/ZiGate At this stage you should have a link in workspace and the complete ZIGate git in : C:\NXP\bstudio_nxp\ZiGate Prepare sdk/JN-SW-4170 folder as per @ISO-B chapter "ZiGate latest development version":
When done, ready to start NXP Studio. |
Let's start NXP IDE Studio, use default workspace or define it: As per the description of @ISO-B above let's import the project: Select the rigth folder (Verify that if you select with the mouse the path is right, I had to set it manually): Click finish. |
We compiled the master branche, let's compile the branche 3.0.f. First discard the changes and come back to master: As we discarded all changes, we discarded also sdk modifications. So we have to reapply @ISO-B chapter "ZiGate latest development version". Then start NXP Studio and create and clean target and then the Hammer to compile. |
One thing that would also help, if it's ok for @fairecasoimeme, to fix all those line-endings and commit files to git |
You're right, |
done. Please tell me of it's ok for you. I'm newbie in github |
Sorry, took bit long before had time to test. All .mk, .c, .h files seem to be ok now.
I can replace those with working ones and make PR. |
Ok, I'll do that tomorrow |
Just to tell this issue is very usefull! Thanks! |
It might be good that issue is translated into a web page for documentation purposes |
Hi everyone |
you have to use 5168 not 5159 |
If you want to directly work in beyondstudio on your github repository, do the following on a already installed config stop beyondstudio for NXP if your git repo is under c:\workfolder\ZiGate, then do the following mklink /J c:\nxp\bstudio_nxp\sdk\JN-SW-4170 "C:\workfolder\ZiGate\Module Radio\Firmware\src\sdk\JN-SW-4170" after checking out branches, even more for older ones you will to make sure that your obj files are cleaned. In BeyondStudio for NXP , you will have to do Project -> Clean @fairecasoimeme : should we move all this to a wiki page ? |
@fairecasoimeme : should we move all this to a wiki page ? There is a Wiki associated to the github itself, you can just use it |
Installing SDK and using it to build firmware
Figuring how to install SDK and build ZiGate firmware took me some time. I hope this saves someones time and helps developing ZiGate.
Install BeyondStudio
BeyondStudio is Eclipse IDE for NXP JN51xx C/C++ developers. It is needed to build ZiGate firmware. It is available on NXP website you just need to have account which you can create for free.
ZiGate latest released version
ZiGate latest development version
Evrything would be good but Github breaks code line endings. We need to fix those.
Using BeyondStudio
The text was updated successfully, but these errors were encountered: