Re: nucleo_f401re can not flash and can not work


Erwan Gouriou
 

Hi,

Can you have a try with following configuration ?
#CONFIG_CLOCK_STM32_SYSCLK_SRC_PLL=y
CONFIG_CLOCK_STM32_SYSCLK_SRC_HSI=y

Erwan

On 28 June 2017 at 16:46, Erwan Gouriou <erwan.gouriou@...> wrote:
Hi,


Looking to the picture of the board you sent me, I can see some differences with the board I have:
-Lack of X2, C32, C31, R34, R36 on your board
-Lack of C26 on my board.
This might be a variant I'm not aware of.
Can you send me a picture of the back side of the board as well, to get a complete view of your board?

Thanks
Erwan

On 28 June 2017 at 16:14, 会奎林 <linhuikui@...> wrote:
Hi,
I try drag and drop rt-thread rtos .bin file to my nucleo_f401re board, and it worked, and I compile mbed OS and copy .bin to my board, it worked too. But the zephyr.bin  do not work. I run the command "make BOARD=nucleo_f401re debug", the CPU was halted in somewhere. here are the log:

(gdb) s
Info : halted: PC: 0x08000c2c
Info : halted: PC: 0x08000c02
Info : halted: PC: 0x08000c04
Info : halted: PC: 0x08000c06
Info : halted: PC: 0x08000c08
Info : halted: PC: 0x08000c28
310 *(d_word++) = c_word;
(gdb) s
Info : halted: PC: 0x08000c2c
Info : halted: PC: 0x08000c02
Info : halted: PC: 0x08000c04
Info : halted: PC: 0x08000c06
Info : halted: PC: 0x08000c08
Info : halted: PC: 0x08000c28
310 *(d_word++) = c_word;
(gdb) s
Info : halted: PC: 0x08000c2c
Info : halted: PC: 0x08000c02
Info : halted: PC: 0x08000c04
Info : halted: PC: 0x08000c06
Info : halted: PC: 0x08000c08
Info : halted: PC: 0x08000c28
310 *(d_word++) = c_word;
(gdb) l
305
306 c_word |= c_word << 8;
307 c_word |= c_word << 16;
308
309 while (n >= sizeof(unsigned int)) {
310 *(d_word++) = c_word;
311 n -= sizeof(unsigned int);
312 }
313
314 /* do byte-sized initialization until finished */


by the way, I built it in zephyr-v1.8.0/samples/basic/blinky

Thanks

2017-06-27 11:59 GMT+08:00 会奎林 <linhuikui@...>:
Hi,
Maybe there is an error on my nucleo board. I have upgraded the st-link, I can not roll- back. and the new st-link can not work. I would try to download via com port.
Thanks a lot.

2017-06-26 22:18 GMT+08:00 Erwan Gouriou <erwan.gouriou@...>:
Hi,

Here is a blinky sample binary:
Generated on V1.8.99
Tested ok on nucleo_f401re (by drag and drop on nucleo mounted device)

Please let me know if working on your side

Erwan

On 26 June 2017 at 15:44, Erwan Gouriou <erwan.gouriou@...> wrote:
I tested successfully this morning on same sw and hw.
I'll put .bin available so you can test.



On 26 June 2017 at 15:33, linhuikui <linhuikui@...> wrote:
Hi,
I have copied the zephyr.bin to the nucleo flash disk. But it do not work. I have copied other rtos .bin to the disk, and it worked(Rthread.bin a rtos bin from rtthread.org).And Zephyr.bin do not work either. I doubt the bin format is different, or the Zephyr.bin is too bigger?



在 Erwan Gouriou <erwan.gouriou@...>,2017年6月26日 下午3:30写道:

Hi,

Ok, good point is that compilation is ok.

You can try alternate functions for flashing:
*When plugging your nucleo_board, it should be mounted as a USB disk, and appear in list of devices on nautilus
    > You can drag and drop the .bin directly here
*Use custom open-ocd: https://github.com/erwango/openocd-stm32
   > README should help you to proceed

Good luck


On 24 June 2017 at 03:46, 会奎林 <linhuikui@...> wrote:
I was try to compile and flashed my nucleo_f401re. but the LD2 do not flash. neither blink_led or blinky.
the adjunct is the compiler output, after flashed i toke a photo for the f401re board.

by the way, the zephyr release  download form https://github.com/zephyrproject-rtos/zephyr/archive/v1.8.99.tar.gz
Thanks.

2017-06-22 21:22 GMT+08:00 Erwan Gouriou <erwan.gouriou@...>:
Ok, Can you try following sample and check if LED is blinking?
cd samples/basic/blinky
make BOARD=nucleo_f401re flash

Then, can you tell me which zephyr release / commit you're using?


On 22 June 2017 at 15:06, 会奎林 <linhuikui@...> wrote:
Hi,
   I do follow the steps documenter
When i flashed, the LD1 was green.
*I was did all in  ubuntu OS.
*access com port follow steps minicom -D /dev/ttyACM0 and sudo minicom -D /dev/ttyACM0, but neither work.
*Zephyr SDK version: 0.9.1 and .0.9
*Zephyr version:1.7.0 and 1.8.0

2017-06-22 15:31 GMT+08:00 Erwan Gouriou <erwan.gouriou@...>:
Hi,


Else, can you provide more information:
*command used ("make BOARD=nucleo_f401re flash" should work)
*Work environment (Linux/Windows/Mac Os)
*How do you access com port?
*Zephyr SDK version
*SHA1 of the commit / commit title for the HEAD of your tree
*Is that specific to nucleo_f401re? Did you succeed with other board?

Erwan


On 22 June 2017 at 02:43, 会奎林 <linhuikui@...> wrote:
In the zephyr project, I compile nucleo_f401re board whit sample "hello world" and "shell"  and flashed it. but there is nothing out put via the USB COM. my English is poor, and coudle any one help me?

_______________________________________________
Zephyr-users mailing list
Zephyr-users@...ct.org
https://lists.zephyrproject.org/mailman/listinfo/zephyr-users












Join users@lists.zephyrproject.org to automatically receive all group messages.