Problem running firmware compiled on linux (xubuntu 64bit)

edited May 2015 in Troubleshooting
Hi, 

So i've been trying to get in to code and at first i tried to get it compiling on windows which was a bust since eclipse did not recognize the DrumSynth project as anything that could compile.

Then I tried it on my linux machine and it's seemingly compiling without any warnings. But when I'm inside the sequencer and press play, nothing is happening, ex. the chaselight is not running.

However if i use the binary from the repo it's ofcourse working. Anybody have any ideas how to find out what in my build / toolchain is causing this?


Comments


  • tobias@x230:~/dev/LXR$ make firmware
    ** Building mainboard/LxrStm32/LxrStm32.bin...
    make[1]: Entering directory `/home/tobias/dev/LXR/mainboard/LxrStm32'
    Compiling ./src/Hardware/USB/usb_midi_core.c...
    Compiling ./src/Hardware/USB/usbd_usr.c...
    Compiling ./src/Hardware/USB/usb_manager.c...
    Compiling ./src/Hardware/USB/usbd_desc.c...
    Compiling ./src/Hardware/USB/usb_bsp.c...
    Compiling ./src/Hardware/FIFO.c...
    Compiling ./src/Hardware/SD_FAT/SPI_routines.c...
    Compiling ./src/Hardware/SD_FAT/diskIo.c...
    Compiling ./src/Hardware/SD_FAT/ff.c...
    Compiling ./src/Hardware/SD_FAT/SD_Manager.c...
    Compiling ./src/Hardware/SD_FAT/SD_routines.c...
    Compiling ./src/Hardware/TriggerOut.c...
    Compiling ./src/Hardware/cs4344_cs5343.c...
    Compiling ./src/stm32f4xx_it.c...
    Compiling ./src/Sequencer/clockSync.c...
    Compiling ./src/Sequencer/sequencer.c...
    Compiling ./src/Sequencer/SomData.c...
    Compiling ./src/Sequencer/SomGenerator.c...
    Compiling ./src/Sequencer/EuklidGenerator.c...
    Compiling ./src/AudioCodecManager/AudioCodecManager.c...
    Compiling ./src/system_stm32f4xx.c...
    Compiling ./src/DSPAudio/DrumVoice.c...
    Compiling ./src/DSPAudio/Samples.c...
    Compiling ./src/DSPAudio/snapEg.c...
    Compiling ./src/DSPAudio/wavetable.c...
    Compiling ./src/DSPAudio/Snare.c...
    Compiling ./src/DSPAudio/lfo.c...
    Compiling ./src/DSPAudio/ResonantFilter.c...
    Compiling ./src/DSPAudio/SlopeEg2.c...
    Compiling ./src/DSPAudio/modulationNode.c...
    Compiling ./src/DSPAudio/1PoleLp.c...
    Compiling ./src/DSPAudio/mixer.c...
    Compiling ./src/DSPAudio/squareRootLut.c...
    Compiling ./src/DSPAudio/HiHat.c...
    Compiling ./src/DSPAudio/random.c...
    Compiling ./src/DSPAudio/CymbalVoice.c...
    Compiling ./src/DSPAudio/Decay.c...
    Compiling ./src/DSPAudio/BufferTools.c...
    Compiling ./src/DSPAudio/transientGenerator.c...
    Compiling ./src/DSPAudio/distortion.c...
    Compiling ./src/DSPAudio/dither.c...
    Compiling ./src/DSPAudio/automationNode.c...
    Compiling ./src/DSPAudio/transientTables.c...
    Compiling ./src/DSPAudio/Oscillator.c...
    Compiling ./src/SampleRom/SampleMemory.c...
    Compiling ./src/SampleRom/flash_if.c...
    Compiling ./src/MIDI/ParameterArray.c...
    Compiling ./src/MIDI/Uart.c...
    Compiling ./src/MIDI/frontPanelParser.c...
    Compiling ./src/MIDI/MidiVoiceControl.c...
    Compiling ./src/MIDI/MidiParser.c...
    Compiling ./src/main.c...
    Compiling ./src/hardfaultHandler.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_hash.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_rcc.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_sdio.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_dbgmcu.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_tim.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_spi.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_adc.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_rng.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_crc.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cryp_tdes.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_rtc.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cryp_aes.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_fsmc.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cryp.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_flash.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_iwdg.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_i2c.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/misc.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_hash_md5.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_dcmi.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_hash_sha1.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_can.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_dma.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_cryp_des.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_usart.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_wwdg.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_gpio.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_pwr.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_syscfg.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_dac.c...
    Compiling ./Libraries/STM32F4xx_StdPeriph_Driver/src/stm32f4xx_exti.c...
    Compiling ./Libraries/STM32_USB_OTG_Driver/src/usb_dcd.c...
    Compiling ./Libraries/STM32_USB_OTG_Driver/src/usb_core.c...
    Compiling ./Libraries/STM32_USB_OTG_Driver/src/usb_dcd_int.c...
    Compiling ./Libraries/STM32_USB_Device_Library/Core/src/usbd_req.c...
    Compiling ./Libraries/STM32_USB_Device_Library/Core/src/usbd_core.c...
    Compiling ./Libraries/STM32_USB_Device_Library/Core/src/usbd_ioreq.c...
    Assembling ./src/hardfault.S...
    Assembling ./src/startup_stm32f4xx.S...
    Linking build//LxrStm32.elf...
    Creating binary LxrStm32.bin...
    make[1]: Leaving directory `/home/tobias/dev/LXR/mainboard/LxrStm32'
    ** Building front/LxrAvr/LxrAvr.bin...
    make[1]: Entering directory `/home/tobias/dev/LXR/front/LxrAvr'
    Compiling ./Hardware/SD/SPI_routines.c...
    Compiling ./Hardware/SD/diskIo.c...
    Compiling ./Hardware/SD/ff.c...
    Compiling ./Hardware/SD/SD_routines.c...
    Compiling ./Hardware/timebase.c...
    Compiling ./Hardware/lcd.c...
    Compiling frontPanelParser.c...
    Compiling ./IO/uart.c...
    Compiling ./IO/din.c...
    Compiling ./IO/adcPots.c...
    Compiling ./IO/dout.c...
    Compiling buttonHandler.c...
    Compiling ledHandler.c...
    Compiling ./Menu/menu.c...
    Compiling ./Menu/Cc2Text.c...
    Compiling ./Menu/copyClearTools.c...
    Compiling ./Menu/screensaver.c...
    Compiling ./Preset/presetManager.c...
    Compiling encoder.c...
    Compiling fifo.c...
    Compiling main.c...
    Linking build/LxrAvr.elf...
    Creating binary LxrAvr.bin...
    make[1]: Leaving directory `/home/tobias/dev/LXR/front/LxrAvr'
    ** Building tools/bin/FirmwareImageBuilder...
    make[1]: Entering directory `/home/tobias/dev/LXR/tools/FirmwareImageBuilder'
    Compiling ../bin/FirmwareImageBuilder...
    make[1]: Leaving directory `/home/tobias/dev/LXR/tools/FirmwareImageBuilder'
    Building final firmware image ./firmware image/FIRMWARE.BIN...
    Input AVR: ./front/LxrAvr/LxrAvr.bin
    Input ARM: ./mainboard/LxrStm32/LxrStm32.bin
    Output: ./firmware image/FIRMWARE.BIN
    -----------------------------------
    AVR: 46186
    STM: 215276
    -----------------------------------
    AVR start offset: 512
    AVR end offset: 46698
    current 512 byte block count: 91.207
    used AVR pages: 180.414
    missing bytes for full AVR page: 0
    offset after padding: 46698 bytes written = 91.207 blocks
    (AVR + padding) / avr page size = 46186 / 256 = 180.414
    -----------------------------------
    padding to full sd card page 512 byte boundary
    current boundary: 91.207 512byte blocks
    needed dummy bytes: 406
    offset after padding / start STM: 47104 (92 blocks)
    offset after STM: 262380
  • so the AVR is working but not the mainboard?

    could you post the output files of your build? (bin, bin, BIN)
    maybe a peek inside will shed some light ;)
  • Bin files are not allowed it seems, however, this i just built and zipped.
Sign In or Register to comment.