fresh Custom HID Project, not flashable on my STM32F4
Hey guys,
I created 2 sets of projects with CubeMX for my STM32F429I-Disc 1 board.
I project is a Device HID project, the other one is a Device Custom HID project.
The Device HID projects works fine, the Custom HID project compiles correctly but will not flash onto my MCU.
I'm aware that for the custom HID USB routine to actually work, i'll have to adjust the USB descriptors. I have not done this yet!
However this problem looks like more severe problem to me. Is there something wrong with the cube MX code generation?
The log of the failed Custom HID looks like this
Open On-Chip Debugger 0.10.0-dev-00267-g884c33c (2016-03-16-12:22)
Licensed under GNU GPL v2For bug reports, read
https://community.st.com/external-link.jspa?url=http%3A%2F%2Fopenocd.org%2Fdoc%2Fdoxygen%2Fbugs.html
Info : auto-selecting first available session transport 'hla_swd'. To override use 'transport select <transport>'.Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWDadapter speed: 2000 kHzadapter_nsrst_delay: 100srst_only separate srst_nogate srst_open_drain connect_assert_srstsrst_only separate srst_nogate srst_open_drain connect_assert_srstInfo : Unable to match requested speed 2000 kHz, using 1800 kHzInfo : Unable to match requested speed 2000 kHz, using 1800 kHzInfo : clock speed 1800 kHzInfo : STLINK v2 JTAG v25 API v2 SWIM v14 VID 0x0483 PID 0x374BInfo : using stlink api v2Info : Target voltage: 2.867916Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpointsInfo : Unable to match requested speed 2000 kHz, using 1800 kHzInfo : Unable to match requested speed 2000 kHz, using 1800 kHzadapter speed: 1800 kHzstm32f4x.cpu: target state: haltedtarget halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x08000250 msp: 0x20030000configuring PLL** Programming Started **auto erase enabledError: Invalid command argumentimage.base_address option value ('Test.elf') is not valid** Programming Failed **shutdown command invokedand this is the log of the working HID Device
Open On-Chip Debugger 0.10.0-dev-00267-g884c33c (2016-03-16-12:22)
Licensed under GNU GPL v2For bug reports, read
https://community.st.com/external-link.jspa?url=http%3A%2F%2Fopenocd.org%2Fdoc%2Fdoxygen%2Fbugs.html
Info : auto-selecting first available session transport 'hla_swd'. To override use 'transport select <transport>'.Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWDadapter speed: 2000 kHzadapter_nsrst_delay: 100srst_only separate srst_nogate srst_open_drain connect_assert_srstsrst_only separate srst_nogate srst_open_drain connect_assert_srstInfo : Unable to match requested speed 2000 kHz, using 1800 kHzInfo : Unable to match requested speed 2000 kHz, using 1800 kHzInfo : clock speed 1800 kHzInfo : STLINK v2 JTAG v25 API v2 SWIM v14 VID 0x0483 PID 0x374BInfo : using stlink api v2Info : Target voltage: 2.867916Info : stm32f4x.cpu: hardware has 6 breakpoints, 4 watchpointsInfo : Unable to match requested speed 2000 kHz, using 1800 kHzInfo : Unable to match requested speed 2000 kHz, using 1800 kHzadapter speed: 1800 kHzstm32f4x.cpu: target state: haltedtarget halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x08000250 msp: 0x20030000configuring PLL** Programming Started **auto erase enabledInfo : device id = 0x20016419Info : flash size = 2048kbytesstm32f4x.cpu: target state: haltedtarget halted due to breakpoint, current mode: Thread xPSR: 0x61000000 pc: 0x20000046 msp: 0x20030000wrote 262144 bytes from file Debug/Giessomat.elf in 7.384422s (34.668 KiB/s)** Programming Finished **** Verify Started **stm32f4x.cpu: target state: haltedtarget halted due to breakpoint, current mode: Thread xPSR: 0x61000000 pc: 0x2000002e msp: 0x20030000stm32f4x.cpu: target state: haltedtarget halted due to breakpoint, current mode: Thread xPSR: 0x61000000 pc: 0x2000002e msp: 0x20030000verified 213980 bytes in 1.634094s (127.878 KiB/s)** Verified OK **** Resetting Target **Info : Unable to match requested speed 2000 kHz, using 1800 kHzInfo : Unable to match requested speed 2000 kHz, using 1800 kHzadapter speed: 1800 kHzshutdown command invokeddo you have any idea how to solve the problem?
greets Julian