Search found 38 matches

by antoniolinux
Wed Oct 14, 2015 8:42 am
Forum: STM32 Support
Topic: Thread for Serial Event
Replies: 2
Views: 1233

Re: Thread for Serial Event

Hi Alsith, i think, in chibios, don't possible use the Serial Driver for use he event, infact if you see the uart exemple you can see this: UARTConfig you can use more configuretion and callback function @brief End of transmission buffer callback. */ uartcb_t txend1_cb; /** * @brief Physical end of ...
by antoniolinux
Tue Oct 13, 2015 10:37 am
Forum: STM32 Support
Topic: function Serial.attach()
Replies: 10
Views: 2275

Re: function Serial.attach()

hi to all, now i can start the event but i have two problem: 1) i don't store the answer in the buffer, 2) i want start event when sd1 recive the data from sd1 , but i don't know if work well, because when i active the th_callbach thread, i see the event start, if i don't active the thread i don't s...
by antoniolinux
Mon Oct 12, 2015 1:46 pm
Forum: STM32 Support
Topic: function Serial.attach()
Replies: 10
Views: 2275

Re: function Serial.attach()

hi to all, i write this code but don't work, /*RIEMPIMENTO BUFFER*/ static THD_WORKING_AREA(waRead5, 128); static THD_FUNCTION(Thread5,arg) { chRegSetThreadName("th_Riempio_Buffer"); msg_t charbuf; int count=0; uint8_t c; event_listener_t Uart1Data; eventflags_t flags; chEvtRegisterMask((e...
by antoniolinux
Mon Oct 12, 2015 10:32 am
Forum: STM32 Support
Topic: function Serial.attach()
Replies: 10
Views: 2275

Re: function Serial.attach()

Thanks giovanni for your answer, i set #define CH_CFG_USE_EVENTS TRUE #define CH_CFG_USE_EVENTS_TIMEOUT TRUE i don't activete the Debug option and write thise threads static THD_WORKING_AREA(waRead5, 128); static THD_FUNCTION(Thread5,arg) { chRegSetThreadName("th_Riempio_Buffer"); EventLis...
by antoniolinux
Mon Oct 12, 2015 10:21 am
Forum: STM32 Support
Topic: St_Nucleo L152 RE and ChibiStudio_Preview13r2
Replies: 0
Views: 745

St_Nucleo L152 RE and ChibiStudio_Preview13r2

Hi to all, to day i download the ChibiStudio_Preview13r2, i open RT-STM32L152RE-NUCLEO project, i use normal procedure for start the example, but i have this error: Description Resource Path Location Type #error "TIM5 not present" st_lld.h /RT-STM32L152RE-NUCLEO/os/hal/ports/STM32/LLD/TIMv...
by antoniolinux
Sat Oct 10, 2015 10:38 am
Forum: STM32 Support
Topic: function Serial.attach()
Replies: 10
Views: 2275

Re: function Serial.attach()

thanks giovanni for your answer,
you want that i create a event on serial drive that call the function, I understood your answer,
can you see where i read a exemple or how to, because i don't have more doumentation.
best regards
A
by antoniolinux
Fri Oct 09, 2015 3:53 pm
Forum: STM32 Support
Topic: function Serial.attach()
Replies: 10
Views: 2275

function Serial.attach()

hi to all, in mbed plattform i have a little applicatio that use GSM Shield, i use the function Serial.attach(rxCallback() ). This function, rxCallback() , is called when a character goes into the RX buffer. and i use it for load the my buffer for store the Shiled Response. do you know if chibios ha...
by antoniolinux
Thu Oct 08, 2015 8:34 am
Forum: STM32 Support
Topic: Buffer for Store answer og GSM Shield
Replies: 1
Views: 729

Re: Buffer for Store answer og GSM Shield

Hi to all, i fix it, i'm my error , i use

Code: Select all

static  uint8_t bufferMsg[BUFFER_SIZE];

and i store the answer in this buffer and later i control if i have a error.
by antoniolinux
Thu Oct 01, 2015 4:34 pm
Forum: STM32 Support
Topic: Buffer for Store answer og GSM Shield
Replies: 1
Views: 729

Buffer for Store answer og GSM Shield

Hi to all i have this strange situetion, i use GSM Shield if i use this code all work well, i use AT commnad for to use GSM shield #include "ch.h" #include "hal.h" #include "chprintf.h" /* Periodic thread for reading data */ static THD_WORKING_AREA(waRead, 128); static ...
by antoniolinux
Wed Sep 30, 2015 10:06 am
Forum: STM32 Support
Topic: Chibistudio for EVALKITST7580-1
Replies: 2
Views: 695

Re: Chibistudio for EVALKITST7580-1

thanks giovanni, i hope tomorrow to clone the RT-STM32F103 INEMO DISCOVERY and i will start to work it.

Go to advanced search