Search found 25 matches

by MGeo
Fri Oct 30, 2020 10:14 pm
Forum: General discussion
Topic: WHICH CORE?!
Topic: WHICH CORE?!
Replies: 20
Views: 1142

Re: WHICH CORE?!

Worth assessing the 'Bus Factor' https://en.wikipedia.org/wiki/Bus_factor when considering where to invest your time and effort in open source efforts. Times change, individual priorities change, as they should. A project or core associated with a specific individual has a very low Bus Factor, progr...
by MGeo
Sun Oct 25, 2020 5:18 pm
Forum: General discussion
Topic: Variant.h pin definitions unclear?
Replies: 9
Views: 418

Re: Variant.h pin definitions unclear?

Wow, that was fast! Seems to be working for me. I sounds like I need to study up on pin number (PA4) vs PinName (PA_4) form to better understand which to use when. Up until now I've always been using pin number form and things have worked as expected, but I can see advantages of PinName enum. Thanks...
by MGeo
Sun Oct 25, 2020 11:52 am
Forum: General discussion
Topic: Variant.h pin definitions unclear?
Replies: 9
Views: 418

Re: Variant.h pin definitions unclear?

A quick test sketch: uint32_t PA_4_PinNum = pinNametoDigitalPin(PA_4); PinName A2_PinName = analogInputToPinName(A2); PinName PA4_PinName = analogInputToPinName(PA4); Serial.println(PA_4_PinNum); Serial.println(A2_PinName); Serial.println(PA4_PinName); Prints out: 48 4 4 PA_4 then gives 48, not 55.
by MGeo
Sun Oct 25, 2020 10:15 am
Forum: General discussion
Topic: Variant.h pin definitions unclear?
Replies: 9
Views: 418

Re: Variant.h pin definitions unclear?

Apologies, I should have clarified why I am raising the question. I am working with an SPI device with CS pin as PA4. I call to SPI.begin with (optional) PA4 pin as a parameter. // initialize SPI: SPI.begin(PA4); SPI.cpp has numerous checks to test if _pin argument is greater than NUM_DIGITAL_PINS s...
by MGeo
Sun Oct 25, 2020 2:46 am
Forum: General discussion
Topic: Variant.h pin definitions unclear?
Replies: 9
Views: 418

Re: Variant.h pin definitions unclear?

mrburnette wrote:
Sat Oct 24, 2020 11:39 pm
The variant file you linked to defines A2

Code: Select all

#define PA4  A2
Umm, thanks. I think you got it backwards. The variant file defines PA4 as A2. The definition of A2 is the item in question. Also, this is regarding an existing Nucleo variant.

Thanks,
George
by MGeo
Sat Oct 24, 2020 11:04 pm
Forum: General discussion
Topic: Variant.h pin definitions unclear?
Replies: 9
Views: 418

Variant.h pin definitions unclear?

I'm running into trouble with invalid digital pin definition values from variant.h on a Nucleo-F401RE. I am using PA4 as a digital output pin. PA4 is returned as a uint value of 55, when I am expecting some value below NUM_DIGITAL_PINS of 52. Looking at variant.h it is now defined as A2. It is a mys...
by MGeo
Wed Sep 16, 2020 9:07 am
Forum: Ideas & suggestions
Topic: Bare metal STM32 programming
Replies: 23
Views: 5258

Re: Bare metal STM32 programming

Nothing stopping you, go ahead and do it. The challenges I've run into with bare metal (which I think of as CMSIS / LL / c and asm register access to hardware as opposed to using Arduino higher level functions) is name collisions, multiple definitions and hard coded interrupts in core implementation...
by MGeo
Wed Sep 16, 2020 12:10 am
Forum: STM32F4 based boards
Topic: Continued issues with WeAct STM32F411
Replies: 10
Views: 918

Continued issues with WeAct STM32F411

I see this board presents challenges. With v1.9.0 core, Blink sketch and upload via J-Link SWD I have problems with board immediately losing the SWD connection and I am unable to debug. After that I am unable to connect to the board over SWD with or without hardware reset. I have to fully erase the ...
by MGeo
Sat May 23, 2020 10:32 am
Forum: Projects
Topic: (Arduino_Core_STM32) Libcanard based UAVCAN node
Replies: 13
Views: 4541

Re: (Arduino_Core_STM32) Libcanard based UAVCAN node

Hi flof, Pretty hard to say without a better understanding of your setup. Could you post a pic or diagram of your setup and how exactly you are testing? CAN bus hello world can be a big first step. Either everything is hooked up right and it just works or its not and you get nothing. I've found that...
by MGeo
Sat May 02, 2020 8:11 pm
Forum: STM boards (Discovery, Eval, Nucleo, ...)
Topic: Nucleo F072
Topic: Nucleo F072
Replies: 5
Views: 1536

Re: Nucleo F072

It turns out I was looking at a NUCLEO-F072RB variant as well. I want to make use of the USB Full-speed device (crystal-less) feature. The mapping is indeed different than the Disco F072RB board. Follwing the wiki directions (https://github.com/stm32duino/wiki/wiki/Add-a-new-variant-%28board%29), I ...

Go to advanced search