Building Firmware on windows

Discussions related to the firmware code development
Post Reply
icz_tb
Posts: 15
Joined: Sun Jul 31, 2022 4:05 pm

Building Firmware on windows

Post by icz_tb » Wed Aug 10, 2022 3:08 am

I'm new to OpenGD77 , just flashed it into my radio and find it very nice!
I'm trying to compile the firmware, but I encounter a few issues, appreciate if someone can help:
1. IDE version to be used? I downloaded the MCUExpresso IDE v11.5 for win, loaded the source from R2022022801,
but got error:
Unable to find part support for NXP MK22FN512xxx12 in project firmware Resetting to generic part for core cm4.
Is there any instructions regarding how to setup the development enviornment?

2. I installed SDK MK22FN512 in the ide , the above problem still there, so I tried to use command line to compile release
R2021071101, it is successful and created the bin, however I'm not able to do the same for R2022022801, because the MakeFile is not there.
Does anyone know where can I get the Makefile for R2022022801,or how can I build R2022022801 release please?

User avatar
F1RMB
Posts: 2518
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: Building Firmware on windows

Post by F1RMB » Wed Aug 10, 2022 3:33 am

Hi,

Use the IDE to compile the firmware, the Makefile has been thrown away as only the redlib (libc) can be used now.


Cheers.
---
Daniel

icz_tb
Posts: 15
Joined: Sun Jul 31, 2022 4:05 pm

Re: Building Firmware on windows

Post by icz_tb » Wed Aug 10, 2022 3:50 am

Thanks for your reply, which version of IDE shall I use?
Is there any instruction document that I can refer to please?

I downloaded the MCUExpresso IDE v11.5 for win, I installed SDK MK22FN512 in the ide, loaded the source from R2022022801,
but still got error:
Unable to find part support for NXP MK22FN512xxx12 in project firmware Resetting to generic part for core cm4.
Maybe i did not load the source project correctly?

VK3KYY
Posts: 7478
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

Re: Building Firmware on windows

Post by VK3KYY » Wed Aug 10, 2022 3:59 am

icz_tb wrote:
Wed Aug 10, 2022 3:50 am
Thanks for your reply, which version of IDE shall I use?
Is there any instruction document that I can refer to please?

I downloaded the MCUExpresso IDE v11.5 for win, I installed SDK MK22FN512 in the ide, loaded the source from R2022022801,
but still got error:
Unable to find part support for NXP MK22FN512xxx12 in project firmware Resetting to generic part for core cm4.
Maybe i did not load the source project correctly?
Did you install the MK22 SDK into the IDE.
i.e The SDK has to also be downloaded from NXP / Freescale

icz_tb
Posts: 15
Joined: Sun Jul 31, 2022 4:05 pm

Re: Building Firmware on windows

Post by icz_tb » Wed Aug 10, 2022 4:25 am

I installed from the welcome page " Download and Install SDKs " link,
However there are still errors.
IDE Error
IDE Error
ide_error.png (33.11 KiB) Viewed 2015 times
I tried to run compile though, result seem to be successful..
Compoile
Compoile
IDE_Compile.png (70.52 KiB) Viewed 2015 times
Not sure if it is good to proceed this way!

BTW,how could i specify differnt target device for compilation, eg. RD5R?

Thank you for your response!

User avatar
F1RMB
Posts: 2518
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: Building Firmware on windows

Post by F1RMB » Wed Aug 10, 2022 4:49 am

In the "Installed SDKs" tab, SDK_2_x_MK22FNS12xxx12 should be listed.
In the icon bar on the top of the IDE, below the menu, there is a hammer drop down list, select the RD5R clicking the down arrow. Click the hammer to compile.

icz_tb
Posts: 15
Joined: Sun Jul 31, 2022 4:05 pm

Re: Building Firmware on windows

Post by icz_tb » Wed Aug 10, 2022 5:45 am

F1RMB wrote:
Wed Aug 10, 2022 4:49 am
In the "Installed SDKs" tab, SDK_2_x_MK22FNS12xxx12 should be listed.
In the icon bar on the top of the IDE, below the menu, there is a hammer drop down list, select the RD5R clicking the down arrow. Click the hammer to compile.
Thanks, I believe it can complie now, and I am able to see the SDK listed.

the Error info is still there though.
I'll try flash the generated RD5R.bin and see if that works.

Post Reply