Jump to content

Recommended Posts

Posted

I'm going to now try and get my feet wet with a bit of programming, I admit that I don't know what I'm doing yet but I want to learn.

 

What I'm trying to do is compile a build of the MB909 firmware of the STM32F4 core.

 

I "think" I have set everything up correctly according to the wiki article and I can build the 001_forwarding_midi tutorial successfully.

 

I'm getting an error when I make the project file.

 

Can anyone advise me what is wrong and how I fix it?

 

This is what Terminal is spitting out.

 

Creating object file for app.c
Creating object file for tasks.c
Creating object file for seq_hwcfg.c
Creating object file for seq_ui.c
core/seq_ui.c: In function 'SEQ_UI_LCD_Update':
core/seq_ui.c:2664:11: warning: variable 'animation_r_ptr' set but not used [-Wunused-but-set-variable]
core/seq_ui.c:2663:11: warning: variable 'animation_l_ptr' set but not used [-Wunused-but-set-variable]
core/seq_ui.c: At top level:
core/seq_ui.c:800:12: warning: 'SEQ_UI_Button_MultiCopy' defined but not used [-Wunused-function]
core/seq_ui.c:892:12: warning: 'SEQ_UI_Button_MultiPaste' defined but not used [-Wunused-function]
Creating object file for seq_ui_todo.c
Creating object file for seq_ui_menu.c
Creating object file for seq_ui_bookmarks.c
Creating object file for seq_ui_edit.c
Creating object file for seq_ui_lcd.c
Creating object file for seq_ui_mute.c
Creating object file for seq_ui_pmute.c
Creating object file for seq_ui_pattern.c
Creating object file for seq_ui_pattern_remix.c
Creating object file for seq_ui_song.c
Creating object file for seq_ui_trkevnt.c
Creating object file for seq_ui_trkmode.c
Creating object file for seq_ui_trkdir.c
core/seq_ui_trkdir.c: In function 'LCD_Handler':
core/seq_ui_trkdir.c:274:7: warning: unused variable 'i' [-Wunused-variable]
core/seq_ui_trkdir.c:265:14: warning: unused variable 'dir_names' [-Wunused-variable]
Creating object file for seq_ui_trkdiv.c
Creating object file for seq_ui_trklen.c
Creating object file for seq_ui_trktran.c
Creating object file for seq_ui_trkgrv.c
Creating object file for seq_ui_trkmorph.c
Creating object file for seq_ui_trkrnd.c
Creating object file for seq_ui_trkeuclid.c
Creating object file for seq_ui_trkrec.c
Creating object file for seq_ui_trgasg.c
Creating object file for seq_ui_fx.c
Creating object file for seq_ui_fx_echo.c
Creating object file for seq_ui_fx_humanize.c
Creating object file for seq_ui_fx_limit.c
Creating object file for seq_ui_fx_lfo.c
Creating object file for seq_ui_fx_scale.c
Creating object file for seq_ui_manual.c
Creating object file for seq_ui_util.c
Creating object file for seq_ui_bpm.c
Creating object file for seq_ui_bpm_presets.c
Creating object file for seq_ui_opt.c
Creating object file for seq_ui_save.c
Creating object file for seq_ui_midi.c
Creating object file for seq_ui_sysex.c
core/seq_ui_sysex.c: In function 'Button_Handler':
core/seq_ui_sysex.c:194:6: error: too few arguments to function 'FILE_SendSyxDump'
In file included from core/seq_ui_sysex.c:25:0:
/Users/rowanspicer/svn/mios32/trunk/modules/file/file.h:130:12: note: declared here
make: *** [project_build/core/seq_ui_sysex.o] Error 1

 

 

Posted

Wow...... I've surprised myself and found the problem, fixed it and managed to compile the app!

 

I compared the seq_ui_sysex.c file from the MB909 and MB SEQ V4 source and look for what was different FILE_SendSyxDump line.

 

This was in the original file

 

s32 status = FILE_SendSyxDump(path, sysex_port);

 

changed it to

 

s32 status = FILE_SendSyxDump(path, sysex_port, sysex_delay_between_dumps);

And added this to the local variables

 

static u16 sysex_delay_between_dumps = 100; // only changed once after startup

Now it works and I have a project file that can be uploaded to a STM32F4 core.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...