Search found 32 matches

by MGeo
Sat Mar 27, 2021 12:57 pm
Forum: General discussion
Topic: Some problems about freeRTOS
Replies: 6
Views: 606

Re: Some problems about freeRTOS

rtos alone would not solve that 'multi-core' problem. in effect for a real smp, you have one os (e.g. arduino core or rtos) thread running on each core of the mcu. it is a 'brave new world', it may not be surprising if we'd ever see 8 core or more duinos A start?: https://www.freertos.org/STM32H7_D...
by MGeo
Sat Mar 27, 2021 8:23 am
Forum: General discussion
Topic: Some problems about freeRTOS
Replies: 6
Views: 606

Re: Some problems about freeRTOS

Some form of RTOS is essential to manage the complexity of these increasingly complex Arm cores, hardware debuggers too IMHO. This guy Dave Nadler does a deep dive on newlib issues with FreeRTOS https://nadler.com/embedded/newlibAndFreeRTOS.html Not a pretty sight. Fix was documented here https://gi...
by MGeo
Thu Mar 25, 2021 9:40 pm
Forum: General discussion
Topic: Precompiled HAL/LL files possible?
Replies: 23
Views: 1568

Re: Precompiled HAL/LL files possible?

I don't know. Anyway some of the drawback on Windows are the network access and the antivirus... Hmm, I'm not sure that 'just use Linux because it decides to not worry about scanning for viruses' is a durable argument. It is certainly not an option in work environments. I do have dual boot Ubuntu a...
by MGeo
Thu Mar 25, 2021 8:08 am
Forum: General discussion
Topic: Precompiled HAL/LL files possible?
Replies: 23
Views: 1568

Re: Precompiled HAL/LL files possible?

Thanks for the replies. I sounds like a smarter IDE with incremental build features could provide an improvement on a project by project basis (ie each quick and dirty test project will still drive a new folder / full rebuild).
by MGeo
Wed Mar 24, 2021 10:42 am
Forum: General discussion
Topic: Precompiled HAL/LL files possible?
Replies: 23
Views: 1568

Precompiled HAL/LL files possible?

I've been playing around with this somewhat out of date core based on libopencm3 project here https://github.com/Serasidis/arduino_opencm3 It relies on precompiled archive files for the libopencm3 library files (found here https://github.com/Serasidis/arduino_opencm3/tree/master/stm32/libopencm3/lib...
by MGeo
Sat Feb 27, 2021 9:41 am
Forum: General discussion
Topic: Getting USART instance from HardwareSerial?
Replies: 2
Views: 330

Re: Getting USART instance from HardwareSerial?

Perfect, thanks Frederic. For anyone finding this thread I found that in C++/ino you need to cast the return pointer to avoid an invalid conversion from 'void*' error (works as is in C). #if defined(SBUS_INVERT) // derive USART instance from pin definitions USART_TypeDef *uart_tx = (USART_TypeDef *)...
by MGeo
Fri Feb 26, 2021 10:34 am
Forum: General discussion
Topic: Getting USART instance from HardwareSerial?
Replies: 2
Views: 330

Getting USART instance from HardwareSerial?

Hi, I am using an F303K8, and hoping to use the F3's built in USART pin inversion capabilities to avoid extra external hardware inverters. I have found the LL functions to do this and it works (see minimal sketch below), but it requires me to explicitly define the USART instance (USART1 in this case...
by MGeo
Fri Oct 30, 2020 10:14 pm
Forum: General discussion
Topic: WHICH CORE?!
Topic: WHICH CORE?!
Replies: 20
Views: 2906

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

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

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.

Go to advanced search