Search found 15 matches

by gato_
Fri Dec 15, 2017 11:54 am
Forum: Cores
Topic: STM32L4 Core
Replies: 141
Views: 11672

Re: STM32L4 Core

Nope. Cleared manually slave's flags OVR, NACKF and STOPF. The error_interrupt routine keeps executing, but there is no error catched. And still, the result is the same. So it must be the logic telling when to stop transmitting. I'll check that
by gato_
Fri Dec 15, 2017 11:27 am
Forum: Cores
Topic: STM32L4 Core
Replies: 141
Views: 11672

Re: STM32L4 Core

Well, learnt how to debug properly with opencd and dbg :). I'm posting what I've found out so far. First, I had to deactivate clock stretching, as the incomplete transaction was hanging the system. the executed code is this one: #include <Wire.h> const int N=6; byte buffer[N]; void setup() { for (in...
by gato_
Thu Dec 14, 2017 12:32 pm
Forum: STM32generic
Topic: L476RG: I2C slave mode and serialUSB not working
Replies: 1
Views: 33

Re: L476RG: I2C slave mode and serialUSB not working

just noticed

Code: Select all

//TODO I2C slave mode for chips that use something else than I2C_IT_BUF
in Wire.cpp:1 .....
Is there no WORKING implementation of the slave mode anywhere? tried GrumpyOldPizza's core as well, with no success....
by gato_
Thu Dec 14, 2017 11:49 am
Forum: STM32generic
Topic: L476RG: I2C slave mode and serialUSB not working
Replies: 1
Views: 33

L476RG: I2C slave mode and serialUSB not working

I implemented a custom L476RG board. Tested Blink, tested USART1- 3, I2C1-3, and everything works fine. But: -SerialUSB is not working at all -Slave onRequest event doesn`t seem to execute at all checked a variant of i2cScanner: // ----------------------------------------------------- // i2c_scanner...
by gato_
Fri Nov 10, 2017 11:17 am
Forum: Cores
Topic: STM32L4 Core
Replies: 141
Views: 11672

Re: STM32L4 Core

I finally had time to setup the debugging toolchain in eclipse. Any advice on how to efficiently transform a sketch into an eclipse project? That would be helpful
by gato_
Wed Oct 25, 2017 11:30 am
Forum: Cores
Topic: STM32L4 Core
Replies: 141
Views: 11672

Re: STM32L4 Core

Well, here is what I tried so far: Inserted this to print statements int the EventCallback, I2C_EVENT_TRANSMIT_REQUEST case: if (events & I2C_EVENT_TRANSMIT_REQUEST) { _tx_write = 0; if(_requestCallback) { (*_requestCallback)(); } for (int i=0;i<_tx_write;i++){Serial.print(_tx_data[i]);Serial.print(...
by gato_
Wed Oct 25, 2017 9:40 am
Forum: Cores
Topic: STM32L4 Core
Replies: 141
Views: 11672

Re: STM32L4 Core

tried not to even instantiate the serial object in the slave. it never answers the i2c request. Any interrupts that might not be initialized unless the serial object is called? EDIT: okay, so just instantiating the object in the slave (Serial.begin()) does not fix things. It turns out that I inserte...
by gato_
Wed Oct 25, 2017 9:05 am
Forum: Cores
Topic: STM32L4 Core
Replies: 141
Views: 11672

Re: STM32L4 Core

Well, it does show as the newest one in the boards manager. version 0.0.26
by gato_
Tue Oct 24, 2017 8:35 am
Forum: Cores
Topic: STM32L4 Core
Replies: 141
Views: 11672

Re: STM32L4 Core

curioser and curioser. And frustrating. I have managed to make the requestFrom example work, under certain conditions: -The slave device must be on before the master device AND a serial terminal must be open for the slave device. Under those conditions, the master (COM8) makes the request, and the s...
by gato_
Tue Sep 19, 2017 9:57 am
Forum: Cores
Topic: STM32L4 Core
Replies: 141
Views: 11672

Re: STM32L4 Core

Actually, the onReceive() call doesn't seem to have any problems. And I am having some doubts about what happens with the onRequest() one. Are you using any environment to check the registers? if so, which one? what pins are employed for debugging? Thank you. Otherwise, the core is great