Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I can't see the output using the minicom when flash on STM32F429IGT6 #10955

Closed
guanyuqian opened this issue Oct 31, 2018 · 1 comment
Closed
Labels
bug The issue is a bug, or the PR is fixing a bug

Comments

@guanyuqian
Copy link

I flash zephyr on STM32F429IGT6 follow the zephyr document ST STM32F4DISCOVERY
using the ninja flash the output on pc is

[0/1] Flashing stm32f4_disco
Using runner: openocd
Open On-Chip Debugger 0.10.0-g7852ae77-dirty (2018-05-11-23:26)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
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
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_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 v28 API v2 SWIM v6 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.163279
Info : stm32f4x.cpu: hardware has 0 breakpoints, 0 watchpoints
    TargetName         Type       Endian TapName            State       
--  ------------------ ---------- ------ ------------------ ------------
 0* stm32f4x.cpu       hla_target little stm32f4x.cpu       running
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
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x08001884 msp: 0x20000698
auto erase enabled
Info : device id = 0x20016419
Info : flash size = 1024kbytes
Info : Single Bank 1024 kiB STM32F42x/43x/469/479 found
target halted due to breakpoint, current mode: Thread 
xPSR: 0x61000000 pc: 0x20000046 msp: 0x20000698
wrote 16384 bytes from file /home/the_sam/github/zephyr/samples/hello_world/build/zephyr/zephyr.bin in 1.083493s (14.767 KiB/s)
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
target halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x08001884 msp: 0x20000698
verified 11892 bytes in 0.177110s (65.571 KiB/s)
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
shutdown command invoked

Is it show success?

but when I use the minicon to observed the "hello world" output ,I found nothing
$ minicom -D /dev/ttyACM0

I flash other program (ucos3) on my board , the result will show in the mincon console.

I use ninja debug,the terminal show

Using runner: openocd
Open On-Chip Debugger 0.10.0-g7852ae77-dirty (2018-05-11-23:26)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
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
none separate
srst_only separate srst_nogate srst_open_drain connect_deassert_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 v28 API v2 SWIM v6 VID 0x0483 PID 0x3748
Info : using stlink api v2
Info : Target voltage: 3.168000
GNU gdb (GDB) 7.11.0.20160511-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-pokysdk-linux --target=arm-zephyr-eabi".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/the_sam/github/zephyr/samples/hello_world/build/zephyr/zephyr.elf...done.
Info : stm32f4x.cpu: hardware has 0 breakpoints, 4 watchpoints
    TargetName         Type       Endian TapName            State       
--  ------------------ ---------- ------ ------------------ ------------
 0* stm32f4x.cpu       hla_target little stm32f4x.cpu       running
Remote debugging using :3333
Info : Halt timed out, wake up GDB.
Error: timed out while waiting for target halted

Remote communication error.  Target disconnected.: Connection reset by peer.
(gdb) 

why I can't debug and see the output,anyone can help me ?thx

@nashif nashif added the bug The issue is a bug, or the PR is fixing a bug label Nov 2, 2018
@guanyuqian
Copy link
Author

zephyr don't support this board,I changed board.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

No branches or pull requests

2 participants