First I thought is was something with my Arduino installation, the computer, with Windows 7, have had several versions and flavors of Arduino installed (and still have) so I took my Arduino free Windows 10 laptop and installed 1.6.9, added Due boards, installed Arduino_STM32 package, installed Etherkit Si5351 library and started building the si5351example sketch.
After fixing a compile error which I assume is to changed Wire interface I once again got a 70+kB binary. Googled around and found the following http://danieleff.com/stm32/result.php?n … t%20Si5351 which indicates that the example code should be around 18kB.
Where do I start looking?
/* NOTE: macro parameter n is evaluated multiple times,
* beware of side effects!
*/
# define do_div(n,base) ({ \
uint64_t __base = (base); \
uint64_t __rem; \
__rem = ((uint64_t)(n)) % __base; \
(n) = ((uint64_t)(n)) / __base; \
__rem; \
})
void Si5351::set_ms(enum si5351_clock clk, struct Si5351RegSet ms_reg, uint8_t int_mode, uint8_t r_div, uint8_t div_by_4)
{
uint8_t *params = new uint8_t[20];
ST Link 19 716
Serial 14 316
Bootloader: 19 732
BMP: 14,300
much more reasonable in comparison with Daniels 18 868 bytes.
And the example works too
Thanks a lot Pito.
But as you know you can remove USB Serial from and of the builds by removing the appropriate defines from boards.txt and restarting the IDE.
I know we could have yet another menu option to allow people to choose if they want USB serial on Stlink, Bmp, or Jlink etc, but we already have one of the most complicated menu systems for any Arduino core, and I think it could end up more confusing and potentially annoying to a lot of users
After fixing a compile error which I assume is to changed Wire interface I once again got a 70+kB binary. Googled around and found the following http://danieleff.com/stm32/result.php?n … t%20Si5351 which indicates that the example code should be around 18kB.
Where do I start looking?
Compiling the example code with the maple core gives me 77kb. Compiling just “void setup() { new int();}” is 71kb.
Compiling with the new stm core the example is 18kb, and “new int()” 8kb.
Compiling the example code with the maple core gives me 77kb. Compiling just “void setup() { new int();}” is 71kb.
Compiling with the new stm core the example is 18kb, and “new int()” 8kb.
I wonder what the downside is…
I’ll try adding it to the F103 core and see if it builds etc



