Search found 35 matches

by tsichevski
Fri Dec 21, 2018 2:18 pm
Forum: Bug Reports
Topic: otg_core_reset: wrong operation sequence? Topic is solved
Replies: 5
Views: 4442

Re: otg_core_reset: wrong operation sequence? Topic is solved

My program got stuck in the same loop again. I fixed it (I hope) by inserting a delay between setting the reset bit and reading it back: /* Core reset and delay of at least 3 PHY cycles.*/ otgp->GRSTCTL = GRSTCTL_CSRST; osalSysPolledDelayX(3); while ((otgp->GRSTCTL & GRSTCTL_CSRST) != 0) ;
by tsichevski
Mon Dec 10, 2018 3:47 pm
Forum: Small Change Requests
Topic: chprintf and finite timeout Topic is solved
Replies: 3
Views: 3596

Re: chprintf and finite timeout Topic is solved

Thank you, Giovanni.

Can I reset both the queues from an ordinary task, not from an interrupt?
by tsichevski
Mon Dec 10, 2018 2:21 pm
Forum: Small Change Requests
Topic: chprintf and finite timeout Topic is solved
Replies: 3
Views: 3596

chprintf and finite timeout Topic is solved

Hi,

is it possible to use finite timeouts with chprintf()? I use this function to emit data to a serial line, which may asynchronously disconnect in the middle of the call, in which case my task hangs forever :(

Regards,
Vladimir
by tsichevski
Tue Dec 04, 2018 7:57 pm
Forum: ChibiOS/HAL
Topic: chprintf and 64-bit numbers
Replies: 9
Views: 4292

Re: chprintf and 64-bit numbers

The modified chprintf.c attached.

Also, you'll need to add something like

Code: Select all

/**
 * @brief   Long long type support.
 */
#if !defined(CHPRINTF_USE_LONGLONG) || defined(__DOXYGEN__)
#define CHPRINTF_USE_LONGLONG          TRUE
#endif


to the chprintf.h

Regards,
Vladimir
by tsichevski
Tue Dec 04, 2018 5:56 pm
Forum: Bug Reports
Topic: otg_core_reset: wrong operation sequence? Topic is solved
Replies: 5
Views: 4442

otg_core_reset: wrong operation sequence? Topic is solved

Hi, My MCU is stmf405. From time to time, my program gets stuck inside the otg_core_reset() in the following endless loop: /* Core reset and delay of at least 3 PHY cycles.*/ otgp->GRSTCTL = GRSTCTL_CSRST; while ((otgp->GRSTCTL & GRSTCTL_CSRST) != 0) ; According to the MCU RM: The application ca...
by tsichevski
Tue Dec 04, 2018 5:45 pm
Forum: ChibiOS/HAL
Topic: chprintf and 64-bit numbers
Replies: 9
Views: 4292

Re: chprintf and 64-bit numbers

Done. There can I send the patched files? This forum does not allow to attach .c files :(

Regards,
Vladimir
by tsichevski
Wed Nov 28, 2018 12:09 am
Forum: ChibiOS/HAL
Topic: chprintf and 64-bit numbers
Replies: 9
Views: 4292

Re: chprintf and 64-bit numbers

Hi, It depends on code size increase, it is just an utility and it is meant to run also on 8 bits cores, some compilers don't have 64 bits types at all. Giovanni In any case it should be coded with conditionals, like the following: #ifdef CHPRINTF_USE_LONGLONG .... #endif // CHPRINTF_USE_LONGLONG
by tsichevski
Tue Nov 27, 2018 7:20 pm
Forum: ChibiOS/HAL
Topic: chprintf and 64-bit numbers
Replies: 9
Views: 4292

Re: chprintf and 64-bit numbers

If I add the 64-bit support, would it be appropriate to add it to ChibiOS somehow?
Regards,
Vladimir
by tsichevski
Tue Nov 27, 2018 4:11 pm
Forum: ChibiOS/HAL
Topic: chprintf and 64-bit numbers
Replies: 9
Views: 4292

chprintf and 64-bit numbers

Hi,
Is it possible to use 64-bit values with chprintf?
Regards,
Vladimir
by tsichevski
Sat Oct 27, 2018 11:20 am
Forum: ChibiOS/HAL
Topic: usb_pump thread does not restore after chSysDisable/Enable
Replies: 6
Views: 3206

Re: usb_pump thread does not restore after chSysDisable/Enable

Thanks, Giovanni, I will give it a try.

Go to advanced search