Search found 184 matches

by GrumpyOldPizza
Wed Oct 25, 2017 12:42 pm
Forum: Cores
Topic: STM32L4 Core
Replies: 139
Views: 10639

Re: STM32L4 Core

gato_ wrote:
Wed Oct 25, 2017 9:05 am
Well, it does show as the newest one in the boards manager. version 0.0.26
The board manager is not up to date I believe. There is some experimental code on github.
by GrumpyOldPizza
Wed Oct 25, 2017 12:41 pm
Forum: Cores
Topic: STM32L4 Core
Replies: 139
Views: 10639

Re: STM32L4 Core

I really like the diagram ;-) Need to send me a bigger image of that ;-) It's actually pretty trivial (apart from the bazillion I2C peripheral flags). The interrupt handler is a simple state machine: I2C_STATE_READY I2C_STATE_SLAVE_RECEIVE I2C_STATE_SLAVE_TRANSMIT I2C_STATE_MASTER_RESTART I2C_STATE_...
by GrumpyOldPizza
Tue Oct 24, 2017 3:07 pm
Forum: Cores
Topic: STM32L4 Core
Replies: 139
Views: 10639

Re: STM32L4 Core

Did you sync to the latest code on github ? I just want to exclude the possibility where something is already fixed there, especially the USB Serial hanging.
by GrumpyOldPizza
Tue Sep 19, 2017 2:08 pm
Forum: Cores
Topic: STM32L4 Core
Replies: 139
Views: 10639

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 For debugg...
by GrumpyOldPizza
Sat Sep 16, 2017 1:21 pm
Forum: Cores
Topic: STM32L4 Core
Replies: 139
Views: 10639

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 Looks like I busted the logic somewhere along the line. The onRequest() needs to also reset the tx buffer ... I need to rework ...
by GrumpyOldPizza
Sat Sep 09, 2017 12:46 pm
Forum: STM Nucleo boards
Topic: STM32L476RG
Replies: 14
Views: 1811

Re: STM32L476RG

I have been trying to use SDIO mode. I've changed the variant.cpp and variant.h looking the variant.cpp given for nucleo-dragonfly. However, not succeeded. Can you look at the codes given below, please? Should I do anything more? #include "FS.h" #include "stm32l4_wiring_private.h" void setup() { //...
by GrumpyOldPizza
Fri Sep 08, 2017 2:09 pm
Forum: Cores
Topic: STM32L4 Core
Replies: 139
Views: 10639

Re: STM32L4 Core

gato_ wrote:
Fri Sep 08, 2017 1:28 pm
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
Looks like I busted the logic somewhere along the line. The onRequest() needs to also reset the tx buffer ...
by GrumpyOldPizza
Fri Sep 08, 2017 12:17 pm
Forum: Cores
Topic: STM32L4 Core
Replies: 139
Views: 10639

Re: STM32L4 Core

gato_ wrote:
Thu Sep 07, 2017 9:18 am

The slave appers to be sending a 0 always. I checked that with a logic analyzer
Image
That is the 2nd bug. The I2S SLAVE should send back a NACK rather than to send dummy data.
by GrumpyOldPizza
Fri Sep 08, 2017 12:15 pm
Forum: Cores
Topic: STM32L4 Core
Replies: 139
Views: 10639

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 GrumpyOldPizza
Fri Sep 08, 2017 12:10 pm
Forum: STM Nucleo boards
Topic: STM32L476RG
Replies: 14
Views: 1811

Re: STM32L476RG

I'm a new user of Nucleo STM32l476RG. I'm wondering what the purposes of tools->DOSFS menu in arduino ide is. Can we use for this menu for data logging with SDIO mode? The STM32L4 core as a filesystem called DOSFS (which among other things allows stream writes, an a power safe mode). It does suppor...