Search found 27 matches

by deadlyboy
Sat Jul 04, 2015 9:53 am
Forum: STM32 Support
Topic: stm32f10 adc problem
Replies: 5
Views: 4226

Re: stm32f10 adc problem

thanks ,
i switched to chibistudio preview 10 (i suppose it using chibios3.0) and compiled adc example for STM32F1xx it works.

but there is 2 problem .
1- i couldn't make my own project in worckspace30 folder , in prev7 i just copy mcuconf.c and .... plus main.c and Makefile and in Make file i ...
by deadlyboy
Fri Jul 03, 2015 1:24 pm
Forum: STM32 Support
Topic: stm32f10 adc problem
Replies: 5
Views: 4226

Re: stm32f10 adc problem

im using the make file which was in one of example of STM32F1xx in chibi studio preview7

without using adc , every thing compiles well.
can you introduce me where is defined the :
inclusion paths
??
by deadlyboy
Fri Jul 03, 2015 11:36 am
Forum: STM32 Support
Topic: stm32f10 adc problem
Replies: 5
Views: 4226

stm32f10 adc problem

hi every body


im trying to have ADC in my stm32f103 ,
i'm sure that every things should work well , but during compilation i get the this error : C:\ChibiStudio\workspace\myProjectName/../../chibios/os/hal/src/hal.c:79: undefined reference to `adcInit' in my hal.c file


from halconf.h i make ADC ...
by deadlyboy
Tue May 19, 2015 8:36 am
Forum: STM32 Support
Topic: high precision system time
Replies: 1
Views: 2225

high precision system time

hi every body

for creating a real time system i need to have system time which has microsecond precision.

i used halGetCounterValue() and halGetCounterFrequency(). but it will reset every 25 second.

my code is lke this :


uint32_t tnow = getSystemTimeInMicroSecond();
while(true)
{

if ...
by deadlyboy
Fri May 15, 2015 8:46 pm
Forum: STM32 Support
Topic: using function in thread
Replies: 3
Views: 3313

Re: using function in thread

thanks

more functions nesting -> more stack is used


even if the nested function was inline??
by deadlyboy
Fri May 15, 2015 2:39 pm
Forum: STM32 Support
Topic: using function in thread
Replies: 3
Views: 3313

using function in thread

hi every body

im using stm34f4 . in my current project i created a thread beside the main thread , in that thread i call a function like this :


static WORKING_AREA(myThreadWorkingArea, 128);
static msg_t myThread(void *arg) {
int16_t m ;
while (TRUE) {
m_PollData(&m);
}
}

m_PollData ...
by deadlyboy
Sat May 09, 2015 9:55 am
Forum: STM32 Support
Topic: EXTI problem in stm32f103rbt6
Replies: 3
Views: 3244

Re: EXTI problem in stm32f103rbt6

hi. thanks

no i use swd (swdio and swclk) for programming and debug ,
so how can i use this pin ? i mean remove the functionality of JTDO.
is there any configuration for it??
by deadlyboy
Sat May 09, 2015 6:01 am
Forum: STM32 Support
Topic: EXTI problem in stm32f103rbt6
Replies: 3
Views: 3244

EXTI problem in stm32f103rbt6

hi every body .
im using stm32f103 , i set EXTI to measuring PWM input data. im using EXTI for PB3 , PB4 , PB5 and PB6 . but all of configuration is same as each other and all of pins works and i can calculate pulse width easily Except PB3 .
based on board.h all of these pin set same as each other ...
by deadlyboy
Sat Apr 25, 2015 11:12 pm
Forum: STM32 Support
Topic: serial driver with event
Replies: 2
Views: 2758

Re: serial driver with event

thanks giovanni ,

i removed chSysLock(); and chSysUnlock() and it works well
by deadlyboy
Sat Apr 25, 2015 4:45 pm
Forum: STM32 Support
Topic: serial driver with event
Replies: 2
Views: 2758

serial driver with event

hi every body

i have 2 micro controller connected to each other through USART ,one(stm32f103) send data through uart driver and other stm32f407 get the data through serial driver.

as giovanni mentioned in forum to handle serial driver i created thread and put the code there.

here is my code but ...