HALMX :: MXBluePillF103C8 Roadmap

Development of new Cores using the STMCubeMX and HAL
User avatar
GrumpyOldPizza
Posts: 173
Joined: Fri Apr 15, 2016 4:15 pm
Location: Denver, CO

Re: HALMX :: MXBluePillF103C8 Roadmap

Postby GrumpyOldPizza » Thu Jun 09, 2016 6:02 pm

zmemw16 wrote:istr reading that using a usart in a spi mode allows strange numbers of bits to be sent; e.g. 9 ?

stephen


Yes and no. In SPI mode it sends a start-bit and a stop-bit (minimally). But during start/stop bits, it does not send a clock strobe. Hence the SPI slave will not see those bits. But you have essentially 10 bits elapsed time for every 8 bits you send. But if you read sensor data with 2MHz SPI clock, using DMA, this probably does not hurt ...

zmemw16
Posts: 1099
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Re: HALMX :: MXBluePillF103C8 Roadmap

Postby zmemw16 » Thu Jun 09, 2016 11:07 pm

apols, some devices use an odd format - 9 i thought data bits and usart was a way of interfacing to them.

off to google on the topic

Code: Select all

stm32 usart spi 9 data bits


results, 1st is a forum, 2nd and 3rd are ST pdf's
the 4th is going the other way, usart as spi :)

stephen

User avatar
RogerClark
Posts: 5601
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: HALMX :: MXBluePillF103C8 Roadmap

Postby RogerClark » Sun Jun 19, 2016 11:15 pm

Just a note for future reference

The core for the Arduino STAR OTTO seems to have I2C (Wire) code built into the core (not as a library), which uses the HAL

I suspect that this is going to be the quickest way to add Wire to the HAL MX core.

User avatar
Vassilis
Posts: 294
Joined: Thu May 21, 2015 6:42 am
Location: Thessaloniki, Greece
Contact:

Re: HALMX :: MXBluePillF103C8 Roadmap

Postby Vassilis » Mon Jun 20, 2016 11:13 am

Thanks!

User avatar
Vassilis
Posts: 294
Joined: Thu May 21, 2015 6:42 am
Location: Thessaloniki, Greece
Contact:

Re: HALMX :: MXBluePillF103C8 Roadmap

Postby Vassilis » Mon Jun 20, 2016 7:43 pm

Today, I slightly modified the Arduino STAR OTTO's Wire core library to meet the F1 series needs. At the moment, the wire example sketch is compiled without error. Tomorrow I will test the core library on a real I2C slave component.
There are some definition names in the STM32F469xx.h library that are used with different names in the F1 libraries such as HAL_I2C1 (F469) instead of I2C1 (F103) .

User avatar
RogerClark
Posts: 5601
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: HALMX :: MXBluePillF103C8 Roadmap

Postby RogerClark » Mon Jun 20, 2016 9:37 pm

Hi Vassilis

I hope the Wire library has not interfered with the studies for your exams.

I was going to look at the Wire library at the weekend, but I do not have much spare time at the moment.

User avatar
Vassilis
Posts: 294
Joined: Thu May 21, 2015 6:42 am
Location: Thessaloniki, Greece
Contact:

Re: HALMX :: MXBluePillF103C8 Roadmap

Postby Vassilis » Tue Jun 21, 2016 12:38 pm

@Roger
Don't worry. I need a break from studying.

I sent you with a PR with the Wire (I2C) core library. The core library has been tested only on DS1307 device by using the RTCx library. The RTCx library can be downloaded from the "Library manager" on Arduino IDE (Sketch -> Include library -> Manage libraries).

-= The wire library has not been tested 100%. I sent the Pull Request only for testing purpose. =-

User avatar
RogerClark
Posts: 5601
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: HALMX :: MXBluePillF103C8 Roadmap

Postby RogerClark » Tue Jun 21, 2016 10:39 pm

Vassilis

No Worries....

I will accept the pull request and test on a BMP085 barometer module.

PS. I got an email from Francesco at Arduino.cc, and he has nearly finished the SDIO function.

So perhaps we can add this as a library.

Hopefully, he will email me when it is pushed to github.

User avatar
ekawahyu
Posts: 87
Joined: Wed Apr 13, 2016 6:17 am

Re: HALMX :: MXBluePillF103C8 Roadmap

Postby ekawahyu » Wed Jul 27, 2016 4:41 pm

I am trying to use the SPI interface and would like to know if somehow this will be integrated in the core in the future or will it remain as library forever? What is the reason to keep it as a library?

User avatar
Vassilis
Posts: 294
Joined: Thu May 21, 2015 6:42 am
Location: Thessaloniki, Greece
Contact:

Re: HALMX :: MXBluePillF103C8 Roadmap

Postby Vassilis » Wed Jul 27, 2016 5:32 pm

ekawahyu wrote:I am trying to use the SPI interface and would like to know if somehow this will be integrated in the core in the future or will it remain as library forever? What is the reason to keep it as a library?


If you use it as library (library folder), you can save some flash and ram memory in case you don't want to include it in your project.


Return to “CubeMX and HAL”

Who is online

Users browsing this forum: No registered users and 1 guest