Search found 9 matches

by yosoufe
Mon Apr 23, 2018 8:11 am
Forum: ChibiOS/HAL
Topic: USB_over_Serial Understanding
Replies: 8
Views: 6822

Re: USB_over_Serial Understanding

Giovanni wrote:Hi,

You are callinng blocking functions from a callback, that is forbidden. Enable the state checker in chconf.h and it would stop you.

Giovanni


I do not have chconf.h. I am only using HAL, no RT. Is it still problematic?
which function is blocking??
by yosoufe
Mon Apr 23, 2018 7:55 am
Forum: ChibiOS/HAL
Topic: USB_over_Serial Understanding
Replies: 8
Views: 6822

Re: USB_over_Serial Understanding

I have it somehow working. I would like to know your opinion about the solution because I had to make a small change in hal_serial_usb.c in function sduDataReceived I changed the position of chnAddFlagsI and ibqPostFullBufferI function calls.

Now it fills the buffer first, then it adds the flag ...
by yosoufe
Wed Apr 18, 2018 7:30 am
Forum: ChibiOS/HAL
Topic: USB_over_Serial Understanding
Replies: 8
Views: 6822

Re: USB_over_Serial Understanding

I still do not understand how this works??
The documentation is not enough for me to understand if this is the only documentation
http://chibios.sourceforge.net/docs3/ha ... u_s_b.html

Any link or guide how this works?? How should it be used???
by yosoufe
Mon Apr 16, 2018 10:10 am
Forum: ChibiOS/HAL
Topic: USB_over_Serial Understanding
Replies: 8
Views: 6822

Re: USB_over_Serial Understanding

Thanks,
which callback is called when a letter arrived over usb??
by yosoufe
Fri Apr 13, 2018 9:41 am
Forum: ChibiOS/HAL
Topic: USB_over_Serial Understanding
Replies: 8
Views: 6822

USB_over_Serial Understanding

Hi,
I am totally new to chibios and I have learned MCU programming by myself. So totally newbie.

I am trying to use only HAL and USB over Serial with STM32F407_discovery board. I have checked the USC_CDC example as well but that one has ch.h.

I have managed to send data PC like a hello world ...
by yosoufe
Thu Apr 12, 2018 12:57 pm
Forum: ChibiOS/HAL
Topic: Change CAN driver to use callbacks
Replies: 9
Views: 6965

Re: Change CAN driver to use callbacks

Is there any code example to use these callbacks??

Is the following correct??

void cana_rx_ISR(CANDriver *canp, uint32_t flags);
void my_can_init()
{
CAND1.rxfull_cb = cana_rx_ISR;
canStart(&CAND1, &cancfg);
}
void cana_rx_ISR(CANDriver *canp, uint32_t flags)
{
(void)canp;
(void)flahs ...
by yosoufe
Wed Feb 01, 2017 11:36 am
Forum: STM32 Support
Topic: STM32F4 & IAR
Replies: 4
Views: 4201

Re: STM32F4 & IAR

Giovanni wrote:Hi,

Sorry, I don't understand the problem.

Just take the Flash and RAM ranges you want to use and put them in the "Memory Regions" section of the ICF file.

Giovanni


In the ICF file, why don't I need to define an area corresponding to system memory?
by yosoufe
Wed Feb 01, 2017 10:35 am
Forum: STM32 Support
Topic: STM32F4 & IAR
Replies: 4
Views: 4201

Re: STM32F4 & IAR

Thanks a lot
Sorry. I am not at all profi in this area. I may ask silly questions.

this is the memory map of the stm32f407 on the discovery board from its datasheet
https://s24.postimg.org/u1qp6ts8z/Memory_Map.png

and the following is the icf file that I may use
/*###ICF ...
by yosoufe
Tue Jan 31, 2017 5:43 pm
Forum: STM32 Support
Topic: STM32F4 & IAR
Replies: 4
Views: 4201

STM32F4 & IAR

Hi

I am trying to run the chibios on stm32f4-Discovery board with IAR! In the version that I have downloaded from the sourceforge there is no demo example for IAR and STM32F4. I have tried to use the STM32F3 demo. The blinking demo is working but I've got this warning during the debug session. This ...