Search found 41 matches
- Thu Oct 06, 2016 1:25 am
- Forum: STM32 Support
- Topic: USB connection problem
- Replies: 3
- Views: 2558
Re: USB connection problem
Thank you for quick answer Giovanni ! I used STM32F4 Discovery board configuration, the OTG pins for STM32f407 (STM32F4 Discovery board) and for STM32f405 are the same, I checked them in Manual. What does STM32F407xx defined constant in board.h? I've tried Latest build of ChibiOS and it does the sam...
- Wed Oct 05, 2016 5:31 am
- Forum: STM32 Support
- Topic: USB connection problem
- Replies: 3
- Views: 2558
USB connection problem
I have assembled board with stm32f405 microcontroller and external crystal 8 Mhz. It uses ChibiOS 3.0.2. I wanted to test if USB interface works and ran demo from ChibiOS repository for STM32F4-Discovery board called STM32F4xx-USB_CDC. I can see that code runs from debugger, can even switch led but ...
- Sat Sep 03, 2016 3:34 pm
- Forum: General Support
- Topic: I2C Slave Driver
- Replies: 2
- Views: 2730
Re: I2C Slave Driver
I started from learning genosensor version but found it too complicated for simple I2C Slave applications so i made my own. I just extended existing I2Cv1 LLD driver, and simplified I2C Slave interface. I even used DMA which was preconfigured in "i2cStart" function. For most I2C Slave appl...
- Sat Sep 03, 2016 12:13 pm
- Forum: General Support
- Topic: I2C Slave Driver
- Replies: 2
- Views: 2730
I2C Slave Driver
Hello! I'm working on project where I2C Slave functionality is required. As I found in this forum and in documentation there is no support for I2C Slave mode so i had to implement it by myself. Im working with STM32F446RE microcontroller, but I think my API is abstract enough to be ported on other m...
- Mon Aug 29, 2016 5:33 pm
- Forum: General Support
- Topic: I2C Slave mode support?
- Replies: 116
- Views: 73421
Re: I2C Slave mode support?
I cant use Chibistudio, Im on mac, thanks anyway for provided code, i Implemented my own driver and merged it with I2Cv1 in ChibiOS 3.0
and i think Github repository is up to date (https://github.com/ChibiOS/ChibiOS)
and i think Github repository is up to date (https://github.com/ChibiOS/ChibiOS)
- Sun Aug 21, 2016 10:29 pm
- Forum: General Support
- Topic: I2C Slave mode support?
- Replies: 116
- Views: 73421
Re: I2C Slave mode support?
Still have Errors, looks like you define that function with 2 arguments and miss second argument when use it... , yes i use latest Eclipse Neon 4.6.0 and Chibios 3.0 from Github repository make -j1 all Compiling hal_i2c_lld.c ../../ChibiOS/os/hal/ports/STM32/LLD/I2Cv1/hal_i2c_lld.c: In function 'i2c...
- Sun Aug 21, 2016 8:57 pm
- Forum: General Support
- Topic: I2C Slave mode support?
- Replies: 116
- Views: 73421
Re: I2C Slave mode support?
In chibios all hal drivers have "hal_" prefix i just replaced content and including file names but I have several errors make -j1 all Compiling hal_i2c_lld.c ../../ChibiOS/os/hal/ports/STM32/LLD/I2Cv1/hal_i2c_lld.c: In function 'i2c_lld_serve_event_interrupt': ../../ChibiOS/os/hal/ports/ST...
- Sat Aug 20, 2016 12:50 pm
- Forum: General Support
- Topic: I2C Slave mode support?
- Replies: 116
- Views: 73421
Re: I2C Slave mode support?
Thank you !
I'm using ChibiOS v3.0 and don't know if it will work there, will try to replace I2Cv1 driver...
I'm using ChibiOS v3.0 and don't know if it will work there, will try to replace I2Cv1 driver...
- Fri Aug 19, 2016 1:05 pm
- Forum: General Support
- Topic: I2C Slave mode support?
- Replies: 116
- Views: 73421
Re: I2C Slave mode support?
I use STM32F446RE and ChibiOS v 3.0.
I figured out that it use I2CDv1 LLD driver... looks like it is different from the version of your I2CDv1, I tried to port your code but stuck on i2c_lld_master_transmit_timeout, looks like it works differently in v 3.0
I figured out that it use I2CDv1 LLD driver... looks like it is different from the version of your I2CDv1, I tried to port your code but stuck on i2c_lld_master_transmit_timeout, looks like it works differently in v 3.0
- Thu Aug 18, 2016 5:24 pm
- Forum: General Support
- Topic: I2C Slave mode support?
- Replies: 116
- Views: 73421
Re: I2C Slave mode support?
Thank you for quick replay! In code provided by you on page 3 of this post you use function i2cSlaveAwaitEvent which i think is implemented in "i2c_event.h" file because i didn't found it anywhere else, I guess this function just check SR1 and SR2 register for any status changes but still ...