elf File not valid
Hey guys,
I created a new Custom HID project using CubeMX. Unfortunately programming my STm32F4 MCU failed because the generated elf file is not valid.
The console shows the following:
code
Open On-Chip Debugger 0.10.0-dev-00274-g2ee83e0 (2017-01-12-17:09)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport “hla_swd”. To override use ‘transport select ‘.
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 2000 kHz
adapter_nsrst_delay: 100
srst_only separate srst_nogate srst_open_drain connect_assert_srst
srst_only separate srst_nogate srst_open_drain connect_assert_srst
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : clock speed 1800 kHz
Info : STLINK v2 JTAG v25 API v2 M v14 VID 0x0483 PID 0x374B
Info : using stlink api v2
Info : Target voltage: 2.874370
Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpoints
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
Info : Unable to match requested speed 2000 kHz, using 1800 kHz
adapter speed: 1800 kHz
stm32f4x.cpu: target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08004724 msp: 0x20030000
configuring PLL
- Programming Started **
auto erase enabled
Error: Invalid command argument
image.base_address option value (‘HID.elf’) is not valid
- Programming Failed **
shutdown command invoked
The weired part is, that for my other (normal HID) porject, everything works fine. So i think we can rule out Debugger driver connection issues ;).
Now i’m well aware that for the custom HID to acually work, i’ll have to modify the report descriptors. I have not done this yet.
To gather more information i added an LED togle Task which turns an LED on and off.
The LED is not working after trying to program my MCU using the generated elf file.
However, eclises generates a bin file as well. If I use the STLink utilities to flash that bin file onto my MCU the LED startes blinking. So there is no issue with my program. For some reason the elf file is broken.
I have perfomed a manual eclipse update via help — -->check for updates
and installed all updates. However, this did not fix the problem. Do you have any idea how to fix my problem?
greets Julian