Author Topic: Building for stm32f103c8x  (Read 2967 times)

Daniel

  • Administrator
  • Interested
  • *****
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Building for stm32f103c8x
« Reply #45 on: January 22, 2015, 09:20:29 PM »
Can you send me your configuration?

Today, I was released dnx RTOS 1.5.4. In this version the PLL configuration is corrected - USB clock frequency is visible.

dekehujebe

  • Interested
  • **
  • Posts: 27
  • Karma: +1/-0
    • View Profile
Re: Building for stm32f103c8x
« Reply #46 on: January 22, 2015, 09:25:20 PM »
I attached my configuration.

Daniel

  • Administrator
  • Interested
  • *****
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Building for stm32f103c8x
« Reply #47 on: January 22, 2015, 11:29:52 PM »
I found mistake: PLL module is not loaded at system startup. I attached corrected configuration. Just import and check, make sure that endpoints are corrected named in the serial program.

dekehujebe

  • Interested
  • **
  • Posts: 27
  • Karma: +1/-0
    • View Profile
Re: Building for stm32f103c8x
« Reply #48 on: January 23, 2015, 07:08:01 AM »
I quickly checked your configuration - console via UART doesn't work now.

Daniel

  • Administrator
  • Interested
  • *****
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Building for stm32f103c8x
« Reply #49 on: January 23, 2015, 01:21:41 PM »
UART configuration is the same as in your configuration. After applying configuration in terminal do: "make clean" and "make". I checked this configuration on my board and works well.

dekehujebe

  • Interested
  • **
  • Posts: 27
  • Karma: +1/-0
    • View Profile
Re: Building for stm32f103c8x
« Reply #50 on: January 25, 2015, 01:20:27 PM »
I rebuilt with preclean. I still haven't working console.

Bellow I listed a GDB backtrace:

Code: [Select]
#0  xTaskResumeAll () at src/system/kernel/FreeRTOS/Source/tasks.c:1598
#1  0x080083a6 in vTaskDelay (xTicksToDelay=xTicksToDelay@entry=4294966295) at src/system/kernel/FreeRTOS/Source/tasks.c:916
#2  0x080064ee in _sleep_ms (milliseconds=4294966295) at src/system/include/kernel/kwrapper.h:481
#3  sleep_ms (milliseconds=4294966295) at src/system/include/stdc/unistd.h:108
#4  run_level_exit () at src/system/user/initd.c:228
#5  initd (arg=<optimized out>) at src/system/user/initd.c:98
#6  0x08009ab4 in ulPortSetInterruptMask () at src/system/kernel/FreeRTOS/Source/portable/GCC/ARM_CM3/port.c:419

It seems that nuttx works but something wrong with UART configuration.

Daniel

  • Administrator
  • Interested
  • *****
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Building for stm32f103c8x
« Reply #51 on: January 25, 2015, 07:25:24 PM »
Please, send me to email the entire project. I look what is going on and send you some solution. I can help you by using TeamViewer if you want.

dekehujebe

  • Interested
  • **
  • Posts: 27
  • Karma: +1/-0
    • View Profile
Re: Building for stm32f103c8x
« Reply #52 on: January 25, 2015, 11:29:47 PM »

dekehujebe

  • Interested
  • **
  • Posts: 27
  • Karma: +1/-0
    • View Profile
Re: Building for stm32f103c8x
« Reply #53 on: February 01, 2015, 11:31:05 AM »
Do you have any ideas?

Daniel

  • Administrator
  • Interested
  • *****
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Building for stm32f103c8x
« Reply #54 on: February 01, 2015, 11:49:45 AM »
I am sorry because last week I had changing my flat and I had no free time. Today I check your configuration on my board.

Daniel

  • Administrator
  • Interested
  • *****
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Building for stm32f103c8x
« Reply #55 on: February 01, 2015, 06:09:00 PM »
To check your configuration I redesigned my board (now is more flexible (: ) and UART1 and terminal is working very well. Check that you have connected Tx->Rx and Rx->Tx signals correctly. I found reason why USB programs does not work. Endpoints had wrong names so correction of those was simple.

Download and check project:
https://www.dropbox.com/s/gpp5k8qz8z5iou8/stm32f103c8t6_dnx-rtos.tar.gz?dl=0

You can compare what was changed.


Daniel

  • Administrator
  • Interested
  • *****
  • Posts: 37
  • Karma: +0/-0
    • View Profile
Re: Building for stm32f103c8x
« Reply #56 on: February 04, 2015, 10:49:12 AM »
I looked to the backtrace that you sent and a see that initd is in the run level exit state. This means that drivers or programs are not started at all. Did you generated initd by using Configtool?