robinfawell Posted October 5, 2013 Report Share Posted October 5, 2013 I have decide to revise my digital piano to include the Dio-Matrix module and to make some minor changes to the program. The first problem was a makefile problem which related to a non existing LCD file. I decided to update the SVN repository. This caused another problem; the makefile has been deleted! I am using a modified Fast Scan Matrix in the examples in the MIOS Toolchain. I do not really understand this aspect of programming, although I have a small knowledge of MIOS C programming. Can anyone help with the missing makefile? Thanks Robin Quote Link to comment Share on other sites More sharing options...
kpete Posted October 5, 2013 Report Share Posted October 5, 2013 Hi Robin,I don't know if I can help you but you will have to give the group more information. Things like the path that the missing makefile is located and what project you are trying to build. There are many makefiles in the system, most found in the apps/controllers directories. It is these makefiles that include separate .mk files in other directories that contain the file dependency information for the specific functions.Pete Quote Link to comment Share on other sites More sharing options...
kpete Posted October 5, 2013 Report Share Posted October 5, 2013 (edited) I know I spoke to soon. You did give the project information. I haven't updated my trunk directory for a few months.I did go to the repository and viewed the Makefile with the html display function. On the top 2 rows of revision 1424 of the Makefile it shows a message that I copied and is shown below.Warning: array_key_exists() [function.array-key-exists]: The first argument should be either a string or an integer in /home/midibox/public_html/websvn/include/svnlook.php on line 643I don't know where this message came from but maybe this is part of the problem. I'm fairly sure it doesn't belong in the Makefile.Pete Edited October 5, 2013 by kpete Quote Link to comment Share on other sites More sharing options...
robinfawell Posted October 5, 2013 Author Report Share Posted October 5, 2013 (edited) Thanks for the reply I have somehow manage to restore a makefile. I am back to my first problem. Here is the result when trying to compile E:\mios32\trunk\apps\examples\fastscan_button_matrix_16x16>make Makefile:51: /E/mios32/trunk/modules/app_lcd/clcd/app_lcd.mk: No such file or di rectory make: *** No rule to make target `/E/mios32/trunk/modules/app_lcd/clcd/app_lcd.m k'. Stop. E:\mios32\trunk\apps\examples\fastscan_button_matrix_16x16> I have looked at the LCD module in the toolchain and it shows an additional directory "universal" in the path. Robin Edited October 5, 2013 by robinfawell Quote Link to comment Share on other sites More sharing options...
kpete Posted October 5, 2013 Report Share Posted October 5, 2013 Do you have all the environment variables set on your system right before you do the make?There should be one that reads "MIOS_32_LCD=universal". It looks like you have it set to "clcd" which is a directory that I can't find in the repository.Pete Quote Link to comment Share on other sites More sharing options...
robinfawell Posted October 6, 2013 Author Report Share Posted October 6, 2013 (edited) Pete When the program was developed by TK the"clcd" was valid, (Version 1104) The toolchain shows conflicts and the current attempts using MAKE yield:- Robin PS E:\mios32\trunk\apps\examples\fastscan_button_matrix_16x16>make rm -f project.hex e:/mios32_toolchain/bin/../lib/gcc/arm-none-eabi/4.5.1/../../../../arm-none-eabi /bin/ld.exe: crt0.o: No such file: No such file or directory collect2: ld returned 1 exit status make: *** [project_build/project.elf] Error 1 Edited October 6, 2013 by robinfawell Quote Link to comment Share on other sites More sharing options...
kpete Posted October 6, 2013 Report Share Posted October 6, 2013 I just went to my sandbox and did a make and this was what it did:C:\Users\Pete\Documents\MidiDesignProjects\Midio128V3\trunk\apps\examples\fastscan_button_matrix_16x16>makerm -f project.hexCreating object file for app.cCreating object file for main.cCreating object file for strtol.cCreating object file for tasks.cCreating object file for list.cCreating object file for queue.cCreating object file for timers.cCreating object file for port.cCreating object file for umm_malloc.cCreating object file for startup_LPC17xx.cCreating object file for mios32_srio.cCreating object file for mios32_din.cCreating object file for mios32_dout.cCreating object file for mios32_enc.cCreating object file for mios32_lcd.cCreating object file for mios32_midi.cCreating object file for mios32_osc.cCreating object file for mios32_com.cCreating object file for mios32_uart_midi.cCreating object file for mios32_iic_midi.cCreating object file for mios32_iic_bs.cCreating object file for mios32_mf.cCreating object file for mios32_sdcard.cCreating object file for mios32_enc28j60.cCreating object file for mios32_bsl.cCreating object file for mios32_sys.cCreating object file for mios32_irq.cCreating object file for mios32_spi.cCreating object file for mios32_i2s.cCreating object file for mios32_board.cCreating object file for mios32_timer.cCreating object file for mios32_stopwatch.cCreating object file for mios32_delay.cCreating object file for mios32_ain.cCreating object file for mios32_usb.cCreating object file for mios32_usb_midi.cCreating object file for mios32_usb_com.cCreating object file for mios32_uart.cCreating object file for mios32_iic.cCreating object file for printf-stdarg.cCreating object file for core_cm3.cCreating object file for usbhw_lpc.cCreating object file for usbcontrol.cCreating object file for usbstdreq.cCreating object file for usbinit.cCreating object file for app_lcd.cCreating object file for glcd_font_big.cCreating object file for glcd_font_small.cCreating object file for glcd_font_normal.cCreating object file for glcd_font_knob_icons.cCreating object file for glcd_font_meter_icons_h.cCreating object file for glcd_font_meter_icons_v.cCreating object file for mini_cpp.cppCreating object file for freertos_heap.cpp-------------------------------------------------------------------------------Application successfully built for:Processor: LPC1769Family: LPC17xxBoard: MBHP_CORE_LPC17LCD: universal-------------------------------------------------------------------------------arm-none-eabi-size project_build/project.elftext data bss dec hex filename41190 32 13752 54974 d6be project_build/project.elf10000000 B __ram_start10000db8 ? __ram_end2007c000 D __ram_start_ahb2007e920 B __ram_end_ahbC:\Users\Pete\Documents\MidiDesignProjects\Midio128V3\trunk\apps\examples\fastscan_button_matrix_16x16>____________________________________________________________________________My sandbox was made from a version about 2 months ago (I think).What I think your problem is that you have a very old sandbox with old software that's not compatible with how things are done today. It may also be because of other tools you have loaded which conflict with the MidiBox tools.What I suggest is for you to create a new TRUNK that is at the current level of revision of the repository. When validate your toolchain and environment is properly setup. This is the link I used for WINDOWS http://www.midibox.org/dokuwiki/doku.php?id=windows_mios32_toolchain_coreOnly merge your changes into the directory after you verified you can compile the current version in your sandbox. I don't know what else to tell you. Maybe someone else should get involved here.Pete Quote Link to comment Share on other sites More sharing options...
robinfawell Posted October 10, 2013 Author Report Share Posted October 10, 2013 (edited) Thanks again Pete I took up your suggestion to rebuild the system. I have a 2nd PC where I attempted to build the toolchain etc. I failed ! However in parallel I examined the environmental variables at each stage and actually found some errors in PC no 1. This is difficult to understand. I had used PC No 1 a few weeks ago to make a simple code change and then suddenly it failed to work. I am up and running now. Robin Edited October 10, 2013 by robinfawell Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.