Search found 188 matches

by GrumpyOldPizza
Tue Jan 30, 2018 3:37 pm
Forum: Cores
Topic: STM32L4 Core
Replies: 150
Views: 13143

Re: STM32L4 Core

Ok, I'll beg for forgiveness on not following directions... :). I'm more or less following the design philosophy of this https://www.safetty.net/download/pont_eres2_2016_extract.pdf For this high integrity scheduler co-operative scheduler I would want to hook SysTick, and be aware of any higher pri...
by GrumpyOldPizza
Tue Jan 23, 2018 4:52 pm
Forum: Cores
Topic: STM32L4 Core
Replies: 150
Views: 13143

Re: STM32L4 Core

Ok thanks trying to follow you. I see there is armv7m_systick_notify() in armv7m.c, would I be able to register my own callback via this function, with context = NULL? Or is it best to set up a Timer object for that? void armv7m_systick_notify(armv7m_systick_callback_t callback, void *context) { ar...
by GrumpyOldPizza
Mon Jan 22, 2018 3:30 pm
Forum: Cores
Topic: STM32L4 Core
Replies: 150
Views: 13143

Re: STM32L4 Core

Hello, Very nice work on this core, I'm impressed. I'm still working through the 15 pages of posts here and I've been studying the code to familiarize myself. I've been introduced to this core through the interesting Hackflight work here https://github.com/simondlevy/Hackflight/tree/master/src I'm ...
by GrumpyOldPizza
Wed Jan 10, 2018 1:21 pm
Forum: Cores
Topic: STM32L4 Core
Replies: 150
Views: 13143

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: Clock stretching is needed. Otherwise the Wire1.onRequest() callback h...
by GrumpyOldPizza
Wed Oct 25, 2017 12:42 pm
Forum: Cores
Topic: STM32L4 Core
Replies: 150
Views: 13143

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: 150
Views: 13143

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: 150
Views: 13143

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: 150
Views: 13143

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: 150
Views: 13143

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: 2292

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() { //...