-
-
Notifications
You must be signed in to change notification settings - Fork 66
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
Provide a command line option to build FW for the MS hardware variant. #54
Comments
Thanx Martin for opening a "ticket" (Carsten here). I have a suggestion (patch against head) here , but i'm not sure about the naming convention used It's just a suggestion If going full configurable from si5351.h , we could also DEFINE the SI/MS CHIP Strings in si5351.h It defaults to the SI5351 chip , as that is already the default. But a "makefile" -DBOARD_CLOCK_GEN=MS5351_CLOCK_GEN compile flag would change that. I just tried to build with this "make mod" And it builds ... Haven't tried it on the VNA yet Carsten |
Well i went all in , and changed the makefile too. New full diff against head (as of today 2023-01-14) *** Just changes to Makefile , compared with previous diff. Added some Hardware version sections in the makefile Now you can skip the TARGET= ..... And use HW_VERSION instead - I only have a version where HW version: 4.3_MS is printed on the backside (MS5351 Clock Gen). I assume (hope) the H versions have either HW version: H or HW version: H_MS printed on the back. I made selections for these Hardware versions in the makefile , and still made a "make" wo TARGET or HW_VERSION "default" generate for the H/Si5351 New make hw type flags "No" HW_VERSION specified , set HW_VERSION=H HW_VERSION=H - Build for a Model H w. Si5351 Ie. I also changed the generated output files to reflect the HW_VERSION built for, new "binaries" are prefixed w : NanoVNA-$(HW_VERSION) Ie. for the HW_VERSION=H_MS the binary outout would be: NanoVNA-H_MS.bin Hope it's usable (maybe even committed) , at least it gives an idea of how i would do it. Carsten |
Ohh Or just do all on one line |
I just tried And now MODE shows MS5251 on first boot/reset. |
Improvements 1: 2: |
Solved above improvement 1: And decided to "grep" the defined version number from main.c , and use it in the generated object names. If on linux , where we do grep for the version in main.c Hope it can be used |
@Ho-Ro |
Hi Carsten, git clone https://github.com/Ho-Ro/NanoVNA-D NanoVNA-D_Ho-Ro
cd NanoVNA-D_Ho-Ro
git submodule update --init --recursive Now checkout my test branch git checkout make_SI_MS_FW |
@Ho-Ro So user instruction would be the "easy" : Look for the HW Version on the backside , and write what it says Neat rewrite of the Makefile 👍 How do you like the makefile main.c - version grep thingy ... A bit of a kludge but it was what there were to work with. Re: Testing the new Makefile And finally did this one w. my H4_MS in DFU mode ... Build & Flashed fine (MS5351 was set on first boot) Well also did this one in DFU mode ... Build & Flashed fine (Si5351 was set on first boot) Re: HW_VERSION=H4 vs HW_VERSION=4.3 Attached is a "compromise" :-) Carsten |
Possible autodetect MS or SI variant, need read |
@Bingo600 I follow the development naming as used widely also by users. But with DiSlord's idea it's maybe not necessary to build two versions. @DiSlord that's cool, I compared both data sheets (do you have an English version of MS, I've only the Chinese one) and didn't see this difference. Honestly speaking this autodetect was an idea earlier today, but I did refuse it (too fast) as not being possible. BTW,what's your opinion about including the version in the filename, either using a.b.c or - (my favourite) - "tinySA-style", i.e. a.b.c-nnn-gxxxxxxx? Martin |
@DiSlord Makes me think, the possibility of user overriding the chip id in the GUI should be kept. @Ho-Ro Re: Naming Carsten |
I fully agree with you, even [QRP Labs] (https://www.qrp-labs.com/synth/ms5351m.html) does not go deep enough into the real measurable differences between SI and MS. |
@Ho-Ro If not , then what about at least the makefile changes ?? |
Add build support for the MS HW variant as proposed in this discussion.
The text was updated successfully, but these errors were encountered: