mikaelnousiainen / RS41ng

Custom firmware for Vaisala RS41 and Graw DFM-17 radiosondes with support for amateur radio use. Ideal for tracking high-altitude balloons. Supported modes include APRS, Horus 4FSK mode, CATS, morse code (CW) and additional digital modes like WSPR and FT8 via Si5351.
GNU General Public License v2.0
109 stars 28 forks source link

out of ram and rom #18

Closed zanco closed 1 year ago

zanco commented 1 year ago

Hi, even with reducing / removing the APRS comments I can not find a setting which allows 4fsk on the RS41 radiochip and wspr on the SI5351 radiochip.

Still running 156 rom short and 32 ram short.

Is there any way to reduce the memory used to get this combination working ?

Thanks, Ben

micked99 commented 1 year ago

same here, error message: /usr/lib/gcc/arm-none-eabi/11.1.0/../../../../arm-none-eabi/bin/ld: RS41ng.elf section .ARM.exidx' will not fit in regionrom' /usr/lib/gcc/arm-none-eabi/11.1.0/../../../../arm-none-eabi/bin/ld: RS41ng.elf section .co_stack' will not fit in regionram' /usr/lib/gcc/arm-none-eabi/11.1.0/../../../../arm-none-eabi/bin/ld: region ram overflowed with stack /usr/lib/gcc/arm-none-eabi/11.1.0/../../../../arm-none-eabi/bin/ld: region rom' overflowed by 88 bytes /usr/lib/gcc/arm-none-eabi/11.1.0/../../../../arm-none-eabi/bin/ld: regionram' overflowed by 144 bytes

This happens if I set any of the JT modes true, else its working fine. //////////// Playing with the aprs weather enable and comment I got rid of one of the problems, now it says this:

/usr/lib/gcc/arm-none-eabi/11.1.0/../../../../arm-none-eabi/bin/ld: RS41ng.elf section .co_stack' will not fit in regionram' /usr/lib/gcc/arm-none-eabi/11.1.0/../../../../arm-none-eabi/bin/ld: region ram overflowed with stack /usr/lib/gcc/arm-none-eabi/11.1.0/../../../../arm-none-eabi/bin/ld: region `ram' overflowed by 64 bytes

mikaelnousiainen commented 1 year ago

Please share your config.h files here, I can try to see what could be disabled to get more space.

micked99 commented 1 year ago

I finally solved this by completely removing Horus V1, bmp280 and pulse counting from the fw, that freed up enough memory so I can flash it to run sequences of aprs, Horus V2, wspr and FT8 on both 70cm and on 20m with added 5351 card. Copy of fw here https://github.com/micked99/RS41ng /Mikael

mikaelnousiainen commented 1 year ago

@zanco @micked99 I'm closing this issue, as it can be fixed by disabling ALL unneeded features / transmission modes. It is unfortunate that when using Si5351, the code size grows a lot and some other modes will have to be disabled. Also the amount of text in message templates counts, so that can be reduced too!