Search found 10 matches

by dotaviper
Tue Nov 01, 2016 7:03 am
Forum: STM32 Support
Topic: error: unknown type name uint8_t
Replies: 1
Views: 4568

error: unknown type name uint8_t

Create two new files key.c and key.h and add them to my project.
step1: defined a global variable in key.c: uint8_t PHOTO_COUNT = 0;
step2: extern it in key.h:extern uint8_t PHOTO_COUNT;
step3:add #include "key.h" in key.c and main.c
step4: add key.c in makefile.

# C sources that can be compiled ...
by dotaviper
Mon May 30, 2016 12:02 pm
Forum: STM32 Support
Topic: STM32F302 error:#error invalid DMA stream associated to ADC2
Replies: 1
Views: 2214

STM32F302 error:#error invalid DMA stream associated to ADC2

the configure of my project is as follows,after compiling,i find error:#error invalid DMA stream associated to ADC2
/*
* ADC driver system settings.
*/
#define STM32_ADC_DUAL_MODE FALSE
#define STM32_ADC_COMPACT_SAMPLES FALSE
#define STM32_ADC_USE_ADC1 TRUE
#define STM32_ADC_ADC1_DMA_STREAM ...
by dotaviper
Tue May 17, 2016 2:35 pm
Forum: ChibiOS/HAL
Topic: #define icuGetPeriod(icup) icu_lld_get_period(icup)
Replies: 1
Views: 3001

#define icuGetPeriod(icup) icu_lld_get_period(icup)

there is the following description in icu.h
/**
* @brief Returns the width of the latest cycle.
* @details The cycle width is defined as number of ticks between a start
* edge and the next start edge.
* @note This function is meant to be invoked from the width capture
* callback only ...
by dotaviper
Thu Jan 28, 2016 8:47 am
Forum: STM32 Support
Topic: Can use a usb and CAN not at the same time on STM32F103RCT6
Replies: 2
Views: 2467

Can use a usb and CAN not at the same time on STM32F103RCT6

Hi Giovanni,
I'm working with ChibiOS 2.6.7 on STM32F103RCT6, can i use CAN and USB in one project(not at the same time)?
when i do this , i find these errors:
2.6.7/hal/platforms/STM32/USBv1/usb_lld.c:280: multiple definition of `Vector8C'
2.6.7/hal/platforms/STM32/USBv1/usb_lld.c:291: multiple ...
by dotaviper
Tue Oct 06, 2015 9:55 am
Forum: STM32 Support
Topic: The serial driver 1 (SD1) cant receive data
Replies: 1
Views: 1680

The serial driver 1 (SD1) cant receive data

Hi everybody:
SD1 can send data to serial debugging assistant,but cant received the data send from serial debugging assistant. Here is the code i am running:

static WORKING_AREA(waCANThread,4096);
static msg_t CANThread(void *arg)
{
(void)arg;

// EventListener el;
BaseChannel *seri=(BaseChannel ...
by dotaviper
Tue Oct 06, 2015 8:30 am
Forum: STM32 Support
Topic: CAN Transmit failure on the chibios system
Replies: 7
Views: 4657

Re: CAN Transmit failure on the chibios system

my device is stm32f103, and i have find the problem is the GPIO has not been correctly programmed, thank you for your reply,have a nice day
Hi everybody:
There is no questions of my hardware,i have tested it with standard CAN transmit program. But on the chibios system,i cant detect any signal on ...
by dotaviper
Tue Oct 06, 2015 8:27 am
Forum: STM32 Support
Topic: CAN Transmit failure on the chibios system
Replies: 7
Views: 4657

Re: CAN Transmit failure on the chibios system

thank you for your reply, I have find the problem is the GPIO has not been correctly programmed

If the loopback demo works then there are several possible causes:

1) The loopback has not been removed from configuration (not your case).
2) The GPIO has not been correctly programmed (alternate not ...
by dotaviper
Mon Sep 28, 2015 10:19 am
Forum: STM32 Support
Topic: CAN Transmit failure on the chibios system
Replies: 7
Views: 4657

Re: CAN Transmit failure on the chibios system

Hi,

It is probably an issue with GPIO alternate setup, make sure that CAN functions are only programmed on a single pin. There are also CAN examples under /testhal, try running one of those first.

Giovanni
I have tested using CAN examples of you adviced, It can receiving data in silent mode and ...
by dotaviper
Mon Sep 28, 2015 9:10 am
Forum: STM32 Support
Topic: CAN Transmit failure on the chibios system
Replies: 7
Views: 4657

Re: CAN Transmit failure on the chibios system

thank you for your advice,i will try it and ask you later if have other problems
by dotaviper
Mon Sep 28, 2015 7:57 am
Forum: STM32 Support
Topic: CAN Transmit failure on the chibios system
Replies: 7
Views: 4657

CAN Transmit failure on the chibios system

Hi everybody:
There is no questions of my hardware,i have tested it with standard CAN transmit program. But on the chibios system,i cant detect any signal on the TX pin of the hardware.I think the CAN configurations of my program are correct, so, what is the reason caused the CAN transmit failure ...