Originally posted by Tecstatic
View Post
Trying to debug from CodeBlocks I got the following return:
>>>
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: C:\therightpath\test1\
Adding source dir: C:\therightpath\test1\
Adding file: bin\Debug\test1.elf
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.8
The program is not being run.
Debugger finished with status 0
>>>
I have set "produce debugging symbols" to "yes".
I downloaded the original libusb32 dll from SourceForgeNet, installed and now avarice (started from cmd-shell) makes contact to the Dragon ("avarice --Dragon").
AVR-CAN is all time connected to Dragon and running the RS232-test-prog in an endless loop.
How does gdb interact with the AVR-CAN? There seems to be no upload of the built program from WinAVR to AVR-CAN after build. Maybe I have to add any command (avarice?) in the post-build section in CodeBuild, but I donīt know which and what parameters. Is AVR-CAN resetted by gdb>Dragon before upload of the new build debug-executable?
actual post-build commands:
>>>
avr-objcopy -O ihex -R .eeprom -R .eesafe $(TARGET_OUTPUT_FILE) $(TARGET_OUTPUT_FILE).hex
avr-objcopy --no-change-warnings -j .eeprom --change-section-lma .eeprom=0 -O ihex $(TARGET_OUTPUT_FILE) $(TARGET_OUTPUT_FILE).eep.hex
avr-objcopy -O binary -R .eeprom -R .eesafe $(TARGET_OUTPUT_FILE) $(TARGET_OUTPUT_FILE).bin
avr-objcopy --no-change-warnings -j .eeprom --change-section-lma .eeprom=0 -O binary $(TARGET_OUTPUT_FILE) $(TARGET_OUTPUT_FILE).eep.bin
<<<
Any idea?
greetings,
bussi04
Comment