NUCLEO-F746ZG - ChibiOS is great! Topic is solved

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: RoccoMarco, barthess

wgreiman
Posts: 33
Joined: Sun Oct 23, 2011 3:21 pm
Been thanked: 2 times

NUCLEO-F746ZG - ChibiOS is great!

Postby wgreiman » Mon Mar 14, 2016 8:53 pm

Here is a big thank-you for a great RTOS.

I bought two NUCLEO-F746ZG boards for $23 each.

I was able to easily get them working with ChibiOS/RT by using ChibiStudio to modifying the RT-STM32F746G-DISCOVERY examples.

I really love ChibiStudio. The configuration editor for producing board files is wonderful!

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: NUCLEO-F746ZG - ChibiOS is great!

Postby Giovanni » Tue Mar 15, 2016 10:44 am

Thanks :)

I received one of those boards too, I plan to add support soon.

Giovanni

User avatar
marys
Posts: 5
Joined: Fri Nov 30, 2012 9:55 pm

Re: NUCLEO-F746ZG - ChibiOS is great!

Postby marys » Tue Mar 22, 2016 12:50 pm

After change board file is working lwIP. Current i am faiting with USB OTG interface.
I look forward to board file and demo from you. :-D

User avatar
marys
Posts: 5
Joined: Fri Nov 30, 2012 9:55 pm

Re: NUCLEO-F746ZG - ChibiOS is great!

Postby marys » Fri Apr 15, 2016 1:00 pm

Hi all

I have NUCLEO-F746ZG, i changed board file and lwip is working. But i have problem with USB. When i connect board USB-OTG to the PC i take this kernel log.

Code: Select all

usb 1-2: new full-speed USB device number 76 using xhci_hcd
usb 1-2: device descriptor read/64, error -71
usb 1-2: device descriptor read/64, error -71
usb 1-2: new full-speed USB device number 77 using xhci_hcd
usb 1-2: device descriptor read/64, error -71
usb 1-2: device descriptor read/64, error -71
usb 1-2: new full-speed USB device number 78 using xhci_hcd
usb 1-2: Device not responding to setup address.
usb 1-2: Device not responding to setup address.
usb 1-2: device not accepting address 78, error -71
usb 1-2: new full-speed USB device number 79 using xhci_hcd
usb 1-2: Device not responding to setup address.
usb 1-2: Device not responding to setup address.
usb 1-2: device not accepting address 79, error -71
usb usb1-port2: unable to enumerate USB device


Do you have some idea what i make wrong.

Marek

User avatar
Giovanni
Site Admin
Posts: 14455
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: NUCLEO-F746ZG - ChibiOS is great!

Postby Giovanni » Fri Apr 15, 2016 1:47 pm

Hi,

There could be a problem in the board files or clock settings (48MHz for USB) or your application, not enough info to tell.

Giovanni

User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: NUCLEO-F746ZG - ChibiOS is great!

Postby RoccoMarco » Fri Apr 15, 2016 1:53 pm

Hey there,
can you share your board file and your project? In this way I can help you to figure out where the problem is. I have some Nucleo-144 and I will commit their board files on trunk this week end.

User avatar
marys
Posts: 5
Joined: Fri Nov 30, 2012 9:55 pm

Re: NUCLEO-F746ZG - ChibiOS is great!

Postby marys » Fri Apr 15, 2016 2:23 pm

Thank you alot.

I attached demo project and my board file. I modify STM32F746 discovery board.

Marek

stnucleo-stm32f746zg_1.tar.gz
demo project
(34.85 KiB) Downloaded 240 times

ST_NUCLEO_F746ZG.tar.gz
board file
(14.27 KiB) Downloaded 205 times

User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: NUCLEO-F746ZG - ChibiOS is great!  Topic is solved

Postby RoccoMarco » Fri Apr 15, 2016 5:01 pm

I think the problem could be clock configuration. In board file you have chosen

Code: Select all

    HSEFrequency="25000000"
    HSEBypass="true"


and in mcuconf

Code: Select all

#define STM32_NO_INIT                       FALSE
#define STM32_PVD_ENABLE                    FALSE
#define STM32_PLS                           STM32_PLS_LEV0
#define STM32_BKPRAM_ENABLE                 FALSE
#define STM32_HSI_ENABLED                   TRUE
#define STM32_LSI_ENABLED                   FALSE
#define STM32_HSE_ENABLED                   TRUE
#define STM32_LSE_ENABLED                   TRUE
#define STM32_CLOCK48_REQUIRED              TRUE
#define STM32_SW                            STM32_SW_PLL
#define STM32_PLLSRC                        STM32_PLLSRC_HSE
#define STM32_PLLM_VALUE                    25
#define STM32_PLLN_VALUE                    432
#define STM32_PLLP_VALUE                    2


Now, I have read user manual correctly the defaul HSE source is the MCO from the ST-Link (that is a 8MHz clock source) provided through PF0/PH0-OSC_IN. So you need to choose

Code: Select all

    HSEFrequency="8000000"
    HSEBypass="true"


and

Code: Select all

#define STM32_NO_INIT                       FALSE
#define STM32_PVD_ENABLE                    FALSE
#define STM32_PLS                           STM32_PLS_LEV0
#define STM32_BKPRAM_ENABLE                 FALSE
#define STM32_HSI_ENABLED                   TRUE
#define STM32_LSI_ENABLED                   FALSE
#define STM32_HSE_ENABLED                   TRUE
#define STM32_LSE_ENABLED                   TRUE
#define STM32_CLOCK48_REQUIRED              TRUE
#define STM32_SW                            STM32_SW_PLL
#define STM32_PLLSRC                        STM32_PLLSRC_HSE
#define STM32_PLLM_VALUE                    8
#define STM32_PLLN_VALUE                    432
#define STM32_PLLP_VALUE                    2


Let me know if this work.
Ciao,
RM

User avatar
marys
Posts: 5
Joined: Fri Nov 30, 2012 9:55 pm

Re: NUCLEO-F746ZG - ChibiOS is great!

Postby marys » Fri Apr 15, 2016 9:13 pm

Thanks You a lot.

It is working. I get very nice answer

Code: Select all

marys@marys-EasyNote-TM85:~$ tail -f /var/log/kern.log
...
Apr 15 21:37:13 marys-EasyNote-TM85 kernel: [ 2323.684014] usb 2-1.3: new full-speed USB device number 8 using ehci-pci
Apr 15 21:37:13 marys-EasyNote-TM85 kernel: [ 2323.777934] usb 2-1.3: New USB device found, idVendor=0483, idProduct=5740
Apr 15 21:37:13 marys-EasyNote-TM85 kernel: [ 2323.777943] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Apr 15 21:37:13 marys-EasyNote-TM85 kernel: [ 2323.777949] usb 2-1.3: Product: ChibiOS/RT Virtual COM Port
Apr 15 21:37:13 marys-EasyNote-TM85 kernel: [ 2323.777954] usb 2-1.3: Manufacturer: STMicroelectronics
Apr 15 21:37:13 marys-EasyNote-TM85 kernel: [ 2323.777958] usb 2-1.3: SerialNumber: 313
Apr 15 21:37:13 marys-EasyNote-TM85 kernel: [ 2323.778747] cdc_acm 2-1.3:1.0: ttyACM1: USB ACM device
...


and after the connection through the gtkterm i have answer:

Code: Select all

ch> info
Kernel:       3.1.3
Compiler:     GCC 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 227977]
Architecture: ARMv7E-M
Core Variant: Cortex-M7
Port Info:    Advanced kernel mode
Platform:     STM32F746 Very High Performance with DSP and FPU
Board:        STMicroelectronics NUCLEO_STM32F746ZG
Build time:   Apr 15 2016 - 21:35:20
ch>

Thank you a lot for your perfect and very fast answer. We have Czech saying: "I am taking off a hat from my head"

Marys

PS:
If you want to use my board file there can be a problem in configuration of ports PD4, PD5 and PE3, because that are the related to USB ports in discovery board. The same situation is for Ethernet ports, but i don't remember with one they were. If you need to know which ones they are, I will answer on Monday.

User avatar
RoccoMarco
Posts: 655
Joined: Wed Apr 24, 2013 4:11 pm
Location: Munich (Germany)
Has thanked: 83 times
Been thanked: 67 times
Contact:

Re: NUCLEO-F746ZG - ChibiOS is great!

Postby RoccoMarco » Sat Apr 16, 2016 12:29 am

Thank you, you are welcome.
By monday, I hope to extend the support to 4 Nucleo-144 including the F7. Indeed, the greatest part of the job has been already done by Giovanni. I have to write few code.

Meanwhile, keep up the good work and enjoy ChibiOS. :mrgreen:

Ciao,
RM


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 34 guests