Author Topic: Building firmware problem  (Read 6454 times)

Đorđe Golubović

  • Team member
  • *
  • Posts: 19
    • View Profile
Building firmware problem
« on: January 28, 2016, 01:59:02 AM »
Hi everyone!

Does anyone have problems with building firmware from source? (I hope this is right place for this question)

I noted two issues:
1. bootloader doesn't get built, first error I get is line "Erreur (((" in file ./src/filesystem/UsbKey.h:33

2. firmware gets created nevertheless, but it is smaller in size than official downloadable version (I suppose because of lack of bootloader), and I get strange distortion when playing whatever patch on preenfm2 (flashing succeeds, of course).
It works perfectly with official downloaded version.

GCC I am using, from launchpad.net:
$ arm-none-eabi-gcc --version
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 5.2.1 20151202 (release) [ARM/embedded-5-branch revision 231848]
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

and preenfm2 git commit 507e3649703c05a8c7454d28ec027dd634c11e4c from Oct 15th
« Last Edit: January 28, 2016, 10:48:34 AM by Xavier »

Xavier

  • Administrator
  • Hero Member
  • *
  • Posts: 2259
    • View Profile
Re: Building firmware problem
« Reply #1 on: January 28, 2016, 10:52:42 AM »
Hi,

I split this message from main firmware thread for clarity.

To compile the firmware please use GCC for arm version 4.7.
https://launchpad.net/gcc-arm-embedded/+series

You're right, the bootloader does not compile with the latest version.
I didn't make the required changes after the big 2.0 firmware modification.
Sorry about that.

So to compile the bootloader please fork github source at the date of "2015 January 1st".
That should be firmware 1.06 and the bootloader should compile properly.
Use this branch only for the bootloader.

Then for the firmware use latest github version.

Let me know if that works better,

Xavier
« Last Edit: January 28, 2016, 11:41:50 AM by Xavier »

Đorđe Golubović

  • Team member
  • *
  • Posts: 19
    • View Profile
Re: Building firmware problem
« Reply #2 on: January 28, 2016, 08:50:17 PM »
Thank you,

it seems that just using GCC 4.7 fixed the problem with unwanted distortion. I didn't try to build earlier version of bootloader, as this solved my problem, but I will try it on the weekend.

It is really great how you've managed to cram so much synth in so little mcu :)

On a side note, I am adding some really simple overdrive/compressor/distortion thing fx, to compensate for varying perceived volume of different patches which is important for live sessions.

Cheers,
Djordje