Search found 35 matches
- Fri Dec 21, 2018 2:18 pm
- Forum: Bug Reports
- Topic: otg_core_reset: wrong operation sequence? Topic is solved
- Replies: 5
- Views: 4481
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) ;
- Mon Dec 10, 2018 3:47 pm
- Forum: Small Change Requests
- Topic: chprintf and finite timeout Topic is solved
- Replies: 3
- Views: 3635
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?
Can I reset both the queues from an ordinary task, not from an interrupt?
- Mon Dec 10, 2018 2:21 pm
- Forum: Small Change Requests
- Topic: chprintf and finite timeout Topic is solved
- Replies: 3
- Views: 3635
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
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
- Tue Dec 04, 2018 7:57 pm
- Forum: ChibiOS/HAL
- Topic: chprintf and 64-bit numbers
- Replies: 9
- Views: 4332
Re: chprintf and 64-bit numbers
The modified chprintf.c attached.
Also, you'll need to add something like
to the chprintf.h
Regards,
Vladimir
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
- Tue Dec 04, 2018 5:56 pm
- Forum: Bug Reports
- Topic: otg_core_reset: wrong operation sequence? Topic is solved
- Replies: 5
- Views: 4481
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...
- Tue Dec 04, 2018 5:45 pm
- Forum: ChibiOS/HAL
- Topic: chprintf and 64-bit numbers
- Replies: 9
- Views: 4332
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
Regards,
Vladimir
- Wed Nov 28, 2018 12:09 am
- Forum: ChibiOS/HAL
- Topic: chprintf and 64-bit numbers
- Replies: 9
- Views: 4332
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
- Tue Nov 27, 2018 7:20 pm
- Forum: ChibiOS/HAL
- Topic: chprintf and 64-bit numbers
- Replies: 9
- Views: 4332
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
Regards,
Vladimir
- Tue Nov 27, 2018 4:11 pm
- Forum: ChibiOS/HAL
- Topic: chprintf and 64-bit numbers
- Replies: 9
- Views: 4332
chprintf and 64-bit numbers
Hi,
Is it possible to use 64-bit values with chprintf?
Regards,
Vladimir
Is it possible to use 64-bit values with chprintf?
Regards,
Vladimir
- Sat Oct 27, 2018 11:20 am
- Forum: ChibiOS/HAL
- Topic: usb_pump thread does not restore after chSysDisable/Enable
- Replies: 6
- Views: 3225
Re: usb_pump thread does not restore after chSysDisable/Enable
Thanks, Giovanni, I will give it a try.