¿ªÔÆÌåÓý

Date

Re: Sketch too large... remove the bootloader

 

Steve?

Thanks! ?Brain is a little foggy today or would have pounded on the code to do my own testing.?


BTW: ?for you Nextion users out there, commenting out the tiny software serial library is not an option. CEC uses a couple of the digital pins (believe d8 and d9) for serial connection to the Nextion since the normal nano uart is locked to the usb connection. The solution is to convert to the real software serial library and that is not as easy as Dr Lee suggested in the comments in the tinysoftwareserial.cpp file¡­.?


So although I am hope to be proved wrong, trying to replace a nano with a nano every is far from a drop in replacement if you are using Nextion.?

73
Mark
AJ6CU


Input requested: beyond the Nano, new KD8CEC hardware platforms

 

Hi

i have been porting KD8CEC to non-nano platforms and rewriting the uBITX memory manager. Although definitely a ¡°work in progress¡± it I had reached a pretty functional level. This work is hosted at gitgub.com.?

My initial hardware targets were the next gen Arduino Nanos including Nano Every, Nano IOT, Nano BLE and Nano RP Connect (raspberry pi pico in an Arduino nano package) Thought they would be the easiest targets.?

But in doing these ports, I suspect supporting other hardware should be trivial. For example, although never put into an uBITX, it compiles cleanly for teensy 4.0. I suspect that it would also run on real Raspberry Pi Picos with only a little work.?

so was planning on adding the teensy and pico when I do my next board spin. Any other suggestions?

73
Mark
AJ6CU


Re: Sketch too large... remove the bootloader

 

¿ªÔÆÌåÓý

Mark - sorry, I have not used the memory manager.

73, Steve, N3SB?

-------- Original message --------
From: Mark Hatch <mark2382@...>
Date: 10/2/22 5:59 PM (GMT-05:00)
Subject: Re: [BITX20] Sketch too large... remove the bootloader

Steve,

Tried your suggestions, but ran into other compile issues.? More curiosity than anything else. So if you could, can you let me know whether you have successfully used the uBITX Memory Manager??

73
Mark
AJ6CU


Re: Sketch too large... remove the bootloader

 

Steve,

Tried your suggestions, but ran into other compile issues.? More curiosity than anything else. So if you could, can you let me know whether you have successfully used the uBITX Memory Manager??

73
Mark
AJ6CU


Re: Suddenly no receive on my sBitx - what are steps required to resolve this?

 

Thanks for the information regarding how to fix my sBitx. I'm still puzzled as to why TX oscillations would have caused this, as I have yet to transmit through the radio! It looks like I will have to perform a major strip-down and component-level repair to get it working again - a bit of a disappointment for something I've hardly used, and only had for a few weeks, but I suppose that's what you get being an 'early adopter'. I'll wait to see what HF Signals come up with to fix these issues. Fingers crossed.

Regards,

Ian
G4ZJH.


Re: uBITX v6 -AGC and S-Meter

Jack, W8TEE
 

OK...thanks!

Jack, W8TEE

On Sunday, October 2, 2022 at 01:39:00 PM EDT, Evan Hand <elhandjr@...> wrote:


Hi Jack.?

S and VU are calibration standards, not the means of measurement. ?I know that some of our club members complain that PC OS do not have VU calibration values on the audio channels that would help with setting up the audio for virtual club meetings.?


Since the S reading at a particular location and antenna combination is not consistent with another set up that is different, I do not see the relevance to calibrate to a standard. It is useful to the listener to see current vs prior values. ?That could be done with any scale, though the spacing of a ¡°standard¡± S scale is useful..

My opinions. ?I do have a degree in EE, though I specialized in industrial power and control for manufacturing.?

73
Evan
AC9TU


--
Jack, W8TEE


Re: Sketch too large... remove the bootloader

Jack, W8TEE
 

You might check out the Teensy LC. The cost and size are about the same, it's more that twice as fast, has 62K of flash and 8K SRAM. To me, the real win is the additional 14K of flash and 2K of SRAM memory, plus a 48mHz clock instead of the 20mHz.

Jack, W8TEE

On Sunday, October 2, 2022 at 02:48:49 PM EDT, ajparent1/kb1gmx <kb1gmx@...> wrote:


The Nano Every? is one way out. 48K and faster!.? I have a few on order.

Most of the time for this stuff?I'd start with checking the code for bulky
libraries and fluff.? I've managed in the past to easily remove excess
code or refactor it so it compiles far more compactly.

Allison
------------------
Please use the forum, offline and private will go to bit bucket.

--
Jack, W8TEE


Re: uBITX V6 SSB Inversion..

 

¿ªÔÆÌåÓý

Thanks? Mark, will see what gives on re adjusting.?


From: [email protected] <[email protected]> on behalf of Evan Hand <elhandjr@...>
Sent: 02 October 2022 18:09
To: [email protected] <[email protected]>
Subject: Re: [BITX20] uBITX V6 SSB Inversion..
?
Hi Art,

The SSB inversion is often due to a BFO on the wrong side of the SSB filter.? To correct you should adjust the BFO to be closer to 11.056MHz.? The SSB filter center is close to 11.058MHz and can vary for each filter.? These values are for the v5 and v6 uBitx built with 11.059 crystals for the SSB filter.

I would suggest that you use the Memory Manager software to save the current values.

73
Evan
AC9TU


Re: Bitx 6 with Nextion Display #ubitxv6 #v6

 

Working !!!!??? Hooray
Thank you

73
ZS5GI


Re: Sketch too large... remove the bootloader

 

Steve,

Just one more thing, you are talking about the original CEC v1.2 code (the directory is uBTIX 2.0 so that can cause confusion...)? Just wanted to make sure you were *not* running my modified CEC code that I am working on to support non-Nano platforms (with external I2C EEPROM chips)

73
Mark
AJ6CU


Re: Sketch too large... remove the bootloader

 

Steve,

CEC stores a lot of stuff in EEPROM > 256.? For example call sign, custom named freq, cw messages, wspr, CW ADC settings, band frequencies, CW key type, tuning steps, CW CAL, etc.? CEC does make reasonable defaults here on boot if it finds "0' (assume that is what happens when you try to access eeprom that doesnt exist, I don't recall seeing CEC checking for errors on EEPROM fetches). But if you are not in Region 2, that would be a problem...

Have you tried using uBITX Memory Manager? It does a fetch of the 1024 EEPROM when you load from uBITX and gets upset if it doesnt get all the bytes. But again perhaps the lack of error checking is playing in our favor and you just get a lot of 0's.But anything that is normally saved in that >256 area should not be...

Appreciate the insights here!?

73
Mark
AJ6CU







Re: Sketch too large... remove the bootloader

 

¿ªÔÆÌåÓý

Mark - Here's what I did to get KD8CEC v 2.0 to work with a Nano Every:

1) In ubitx_20.ino, around line # 1281, change analogReference(DEFAULT) to analogReference(VDD) This is the same change that the stock V4.3 code needs for the Every to work with a keyer paddle.

2) Rename softserial_tiny.cpp to softserial_tiny.cpp.NO.? This just keeps the Arduino IDE from finding the file and compiling it. Softserial functions are not used with the two line character LCD. Looks like the softserial library was being used to talk to a Nextion display, or possibly debugging. There is interrupt code in that file that has no equivalent for the Every. I'm using the stock LCD, so I haven't tried the i2c mode. I2C should still work on the Every.

CEC is using 61% of the Every's program space. The uBitx seems to work fine. There's plenty of room for modifications.?

73; Steve, N3SB?

-------- Original message --------
From: Mark Hatch <mark2382@...>
Date: 10/2/22 3:27 PM (GMT-05:00)
Subject: Re: [BITX20] Sketch too large... remove the bootloader

The Nano Every only has 256 bytes of eeprom.? I believe that KD8CEC assumes a Nano that has 1024 bytes.

Can someone confirm that you can really run KD8CEC on a Nano Every? I never tried it because of that EEPROM issue. I will give it a try later, willing to be surprised here....

73
Mark
AJ6CU


Re: Bitx 6 with Nextion Display #ubitxv6 #v6

 

Hi Mark

Thank you for your responce
I have uncommented the selected the "Recommended for Nextion, TJC LCD 88%"
The sketch now compiles :)

I will upload to the Ardunio nano and test and let you know how it goes

73
Gary
ZS5GI


Re: Sketch too large... remove the bootloader

 

The Nano Every only has 256 bytes of eeprom.? I believe that KD8CEC assumes a Nano that has 1024 bytes.

Can someone confirm that you can really run KD8CEC on a Nano Every? I never tried it because of that EEPROM issue. I will give it a try later, willing to be surprised here....

73
Mark
AJ6CU


Re: Bitx 6 with Nextion Display #ubitxv6 #v6

 

Gary,

Look in ubitx.h and search for "Recommended for Nextion, TJC LCD 88%"? Make sure that set of defines is uncommented and any other sets are commented out.? ?You can also look at the individuals setting and commend some out (the size occupied by each option is in a comment on right.? ?"1" means enabled, "0" means disabled.

Another option is to go search youtube for "expanding nano flash" or something similar. If you update to the latest bootloader and do the expansion, your nano will have some 32k memory.? But i am pretty sure the issue is that the srouce code doesn't naturally assume a nextion screen and you need to adjust the defines.

73
Mark
AJ6CU


Re: Sketch too large... remove the bootloader

 

¿ªÔÆÌåÓý

Be aware of one minor difference with the Every - the ADC reference default mode is different between the Every and the Nano. With the way the uBitx radios handle reading the keyer line when sending CW, this can trip you up.

One line of Arduino code will resolve this, but I don't have the info handy. Google is your friend here.?

73; Steve, N3SB?

-------- Original message --------
From: ajparent1/kb1gmx <kb1gmx@...>
Date: 10/2/22 2:48 PM (GMT-05:00)
Subject: Re: [BITX20] Sketch too large... remove the bootloader

The Nano Every? is one way out. 48K and faster!.? I have a few on order.

Most of the time for this stuff?I'd start with checking the code for bulky
libraries and fluff.? I've managed in the past to easily remove excess
code or refactor it so it compiles far more compactly.

Allison
------------------
Please use the forum, offline and private will go to bit bucket.


Re: Sketch too large... remove the bootloader

 

The Nano Every? is one way out. 48K and faster!.? I have a few on order.

Most of the time for this stuff?I'd start with checking the code for bulky
libraries and fluff.? I've managed in the past to easily remove excess
code or refactor it so it compiles far more compactly.

Allison
------------------
Please use the forum, offline and private will go to bit bucket.


Re: Sketch too large... remove the bootloader

 

Have you considered the Nano Every? For most applications it's a drop-in replacement, but has 48K of Flash.

73, Steve,? N3SB?

On Sun, Oct 2, 2022, 1:37 PM barry halterman <kthreebo@...> wrote:

I might be wrong with my response, but some time ago there were posts on this group about the newer Arduino IDE version putting extra fluff into the NANO when trying to upload a sketch. The older version of the IDE did not do that.

?

Sent from for Windows

?

From: Scott S., WB5YPZ
Sent: Sunday, October 2, 2022 10:16 AM
To: [email protected]
Subject: [BITX20] Sketch too large... remove the bootloader

?

I've was at 99% flash usage on my custom firmware, which picks-n-chooses from others and mashes in my own mods.
Assuming you're modding & need some space & don't want to give anything up...? you can free 2K bytes if you'll give up the Arduino Bootloader.? As long as you use ICSP (usbTiny, etc.) to do the programming, rather than letting the Arduino IDE upload the sketch, the bootloader isn't needed.? My toolchain has always been to export a HEX file, then use AVRDUDE directly to program Flash & burn EEPROM separately, so I've always used a usbTiny programmer to upload the images.??

You have to modify the appropriate BOARDS.TXT, copying the Nano section & modifying the memory limit & some flags; instructions on the Internet are pretty easy to find, just google "Arduino sketch remove bootloader"
The 30720 limit disappears & you have the entire 32768 flash space to yourself - 2K free feels like heaven.
As an bonus, it boots faster, too.

?


Re: uBITX V6 SSB Inversion..

 

Hi Art,

The SSB inversion is often due to a BFO on the wrong side of the SSB filter.? To correct you should adjust the BFO to be closer to 11.056MHz.? The SSB filter center is close to 11.058MHz and can vary for each filter.? These values are for the v5 and v6 uBitx built with 11.059 crystals for the SSB filter.

I would suggest that you use the Memory Manager software to save the current values.

73
Evan
AC9TU


uBITX V6 SSB Inversion..

 

¿ªÔÆÌåÓý

Getting some great results on cw? (listening)? even heard a VU2 station the other evening... Decided to have a look at
any ssb signals around on 40 and 20mtrs.. Bands both very busy today (rsgb test in progress)..? Found that all of the?
heard ssb sigs were inverted when switched to the correct mode, upper or lower, To demodulate correctly had to invert the ssb to the?
other sideband, these then were perfect !!? What's happened ?? .. Btw Mark,? did add my call into the nextion screen using Cec
uBITX memory manager. That fitted in perfectly on screen just above the graph markings..
Appreciate any comments on the ssb inversion..??

Art G3XNE