Search found 35 matches

by Koen
Wed Jan 25, 2017 1:22 pm
Forum: Development and Feedback
Topic: USB Mass Storage Device
Replies: 112
Views: 112171

Re: USB Mass Storage Device

Hey, I will but I have too much to do until next weekend.
by Koen
Sat Jan 07, 2017 2:27 am
Forum: Development and Feedback
Topic: USB Mass Storage Device
Replies: 112
Views: 112171

Re: USB Mass Storage Device

I've been mixing the different versions, fixing issues and adding quite some code to achieve both Chapter 9 and MSC compliance these past few days. Here is the interesting bit :
**
Device is considered compliant with the Bootability specification.
**
Summary Log Counts [ Fails (0); Aborts ...
by Koen
Fri Jan 06, 2017 6:14 pm
Forum: Development and Feedback
Topic: USB Mass Storage Device
Replies: 112
Views: 112171

Re: USB Mass Storage Device

What about MSC tests ?
by Koen
Tue Jan 03, 2017 2:40 pm
Forum: Development and Feedback
Topic: USB Mass Storage Device
Replies: 112
Views: 112171

Re: USB Mass Storage Device

I'll look into it.

I wonder about USB HS DMA too. I tried it with ST library and found two bugs before it started to enumerate. ST does not recommend it because of the alignment issues ,there is no example online and very few questions on ST community. It doesn't seem to be used much. It then ...
by Koen
Tue Jan 03, 2017 8:46 am
Forum: ChibiOS/HAL
Topic: STM32F103 i2c won't work with MPU6050
Replies: 18
Views: 17709

Re: STM32F103 i2c won't work with MPU6050

It's an hardware error in F1 : it won't be fixed, ever. You can only work-around it. Anyway, enable debug checks to avoid these easy traps.
by Koen
Mon Jan 02, 2017 10:58 pm
Forum: ChibiOS/HAL
Topic: STM32F103 i2c won't work with MPU6050
Replies: 18
Views: 17709

Re: STM32F103 i2c won't work with MPU6050

Did you enable debug checks in chconf.h ? I checked the repository and the code should trigger an error as you are asking to receive 1 byte :

msg_t i2c_lld_master_receive_timeout(I2CDriver *i2cp, i2caddr_t addr,
uint8_t *rxbuf, size_t rxbytes,
systime_t timeout) {
[...]
#if ...
by Koen
Mon Jan 02, 2017 10:51 pm
Forum: ChibiOS/HAL
Topic: STM32F103 i2c won't work with MPU6050
Replies: 18
Views: 17709

Re: STM32F103 i2c won't work with MPU6050

If I recall correctly, early STM32 had major I2C hardware problems and ST later released a library named CPAL to help deal with it.

Have you seen this : m ?
"To get the library to function and detect the MPU6050, I had to modify the I2CdevreadBytes function to add in specific support for the ...
by Koen
Mon Jan 02, 2017 10:29 pm
Forum: ChibiOS/RT
Topic: Stuck in idle_thread after wake from STOP
Replies: 4
Views: 5551

Re: Stuck in idle_thread after wake from STOP

The example above (with more logic of course) works great to always be in the lowest consumption configuration possible.
by Koen
Mon Jan 02, 2017 8:41 pm
Forum: ChibiOS/RT
Topic: Stuck in idle_thread after wake from STOP
Replies: 4
Views: 5551

Re: Stuck in idle_thread after wake from STOP

Hello, it might be easier with Idle thread hooks (chconf.h) :

#define CORTEX_ENABLE_WFI_IDLE TRUE

/**
* @brief Idle thread enter hook.
* @note This hook is invoked within a critical zone, no OS functions
* should be invoked from here.
* @note This macro can be used to activate a power ...
by Koen
Mon Jan 02, 2017 7:01 pm
Forum: Development and Feedback
Topic: USB Mass Storage Device
Replies: 112
Views: 112171

Re: USB Mass Storage Device

The speeds in the first post above are with 25MHz SDIO, the second with 50MHz SDIO. I'll send you the modified files by the end of the week, there's a bit left to be tested/verified.