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!
NUCLEO-F746ZG - ChibiOS is great! Topic is solved
Moderators: RoccoMarco, barthess
- 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!
Thanks
I received one of those boards too, I plan to add support soon.
Giovanni
I received one of those boards too, I plan to add support soon.
Giovanni
Re: NUCLEO-F746ZG - ChibiOS is great!
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.
I look forward to board file and demo from you.
Re: NUCLEO-F746ZG - ChibiOS is great!
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.
Do you have some idea what i make wrong.
Marek
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
- 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!
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
There could be a problem in the board files or clock settings (48MHz for USB) or your application, not enough info to tell.
Giovanni
- 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!
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.
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.
Re: NUCLEO-F746ZG - ChibiOS is great!
Thank you alot.
I attached demo project and my board file. I modify STM32F746 discovery board.
Marek
I attached demo project and my board file. I modify STM32F746 discovery board.
Marek
- 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
I think the problem could be clock configuration. In board file you have chosen
and in mcuconf
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
and
Let me know if this work.
Ciao,
RM
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
Re: NUCLEO-F746ZG - ChibiOS is great!
Thanks You a lot.
It is working. I get very nice answer
and after the connection through the gtkterm i have answer:
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.
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.
- 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!
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.
Ciao,
RM
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.
Ciao,
RM
Who is online
Users browsing this forum: No registered users and 34 guests