Search found 11 matches

by gato_
Fri Nov 10, 2017 11:17 am
Forum: Cores
Topic: STM32L4 Core
Replies: 139
Views: 10632

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: 139
Views: 10632

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: 139
Views: 10632

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: 139
Views: 10632

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: 139
Views: 10632

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: 139
Views: 10632

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
by gato_
Fri Sep 08, 2017 1:28 pm
Forum: Cores
Topic: STM32L4 Core
Replies: 139
Views: 10632

Re: STM32L4 Core

There is more. Commenting that line just fixed the 1 byte example. On trying to send several, it freezes again....
Ok. I think I will take a look on the I2c implementation
by gato_
Thu Sep 07, 2017 11:24 am
Forum: Cores
Topic: STM32L4 Core
Replies: 139
Views: 10632

Re: STM32L4 Core

ok. Traced it back to function TwoWire::write(), line 175 of Wire.cpp: size_t TwoWire::write(uint8_t data) { /* if (!_tx_active) { return 0; } */ if (_tx_write >= BUFFER_LENGTH) { return 0; } _tx_data[_tx_write++] = data; return 1; } with that lines commented, it does react. So the question is, why ...
by gato_
Thu Sep 07, 2017 9:18 am
Forum: Cores
Topic: STM32L4 Core
Replies: 139
Views: 10632

Re: STM32L4 Core

I finally decided to do a custom board based on stm32l476. After modifying the variants file, I've managed to make almost everything to work, but there has been an issue. My board is meant to be a subsystem of a bigger one. As such, it communicates through I2C, as slave. No problem arises when the m...
by gato_
Tue Apr 04, 2017 6:36 am
Forum: Cores
Topic: STM32L4 Core
Replies: 139
Views: 10632

Re: STM32L4 Core

It has USB hooked up, but USB_VBUS is hooked up the wrong way, so you have to mess with a solder brigde. Can you elaborate on that? I would really like to work on the l476 platform, and I don't mind giving away, say, the LCD. What adjustments would be required to use the STM32L476GDiscovery? Thank ...