Search found 5955 matches

by RogerClark
Tue Jun 27, 2017 12:54 pm
Forum: Linux
Topic: Install STM32duino on Raspbian?
Replies: 16
Views: 133

Re: Install STM32duino on Raspbian?

There is something odd with the board name, as lib maple does not support the nucleo 03

I wonder if you are mixing STMs core with the PR for the LibMaple core ??
by RogerClark
Tue Jun 27, 2017 12:52 pm
Forum: STM Nucleo boards
Topic: STM32F091 ADC resolution 10 bit instead of 12 bit
Replies: 21
Views: 183

Re: STM32F091 ADC resolution 10 bit instead of 12 bit

On the subject of magic smoke, I am sure I accidentally powered a F103VET board or several hour from 5V and it survived !

I think on the whole the STM32F103 MCU is quite robust
by RogerClark
Tue Jun 27, 2017 12:49 pm
Forum: General discussion
Topic: convert PORT to int
Replies: 8
Views: 77

Re: convert PORT to int

Different port pins are part of an enum, like this: https://github.com/rogerclarkmelbourne/Arduino_STM32/blob/master/STM32F1/variants/maple_mini/board/board.h#L76 Well, actually they should be identical, but I don't know the logic behind why the pins are not taken in the same order for each variant...
by RogerClark
Tue Jun 27, 2017 10:51 am
Forum: General discussion
Topic: SD card on ILI9341 display board??
Replies: 19
Views: 260

Re: SD card on ILI9341 display board??

ag123 wrote:
Tue Jun 27, 2017 6:27 am
i shorted those spi lines, replace with wires it seemed to work just ok for me, no problems so far :?
I will do that until I get some resistors
by RogerClark
Tue Jun 27, 2017 6:05 am
Forum: General discussion
Topic: Recommended TFT LCD displays for stmduino compatible boards?
Replies: 6
Views: 76

Re: Recommended TFT LCD displays for stmduino compatible boards?

@davey

Whats your budget, as the F7 is not not going to be a cheap option and possibly you'd be paying for CPU speed you don't need
by RogerClark
Tue Jun 27, 2017 6:01 am
Forum: Projects
Topic: OV7670, Generic STM32F103RC and ILI9341 display
Replies: 90
Views: 6561

Re: OV7670, Generic STM32F103RC and ILI9341 display

Pito wrote:
Tue Jun 27, 2017 5:51 am
Btw the Ili9341 datasheet says the "write" SPI clock shall be 10MHz max..
https://cdn-shop.adafruit.com/datasheets/ILI9341.pdf
LOL

We already run it at 36Mhz :lol:
by RogerClark
Tue Jun 27, 2017 1:24 am
Forum: Linux
Topic: Install STM32duino on Raspbian?
Replies: 16
Views: 133

Re: Install STM32duino on Raspbian?

There isn't support for compiling on the RPi at the moment. However someone has submitted a PR with the files to do this. See https://github.com/rogerclarkmelbourne/Arduino_STM32/pull/283 No one has had time to test whether this PR is OK, hence its not been included yet. And after inclusion, it woul...
by RogerClark
Tue Jun 27, 2017 1:20 am
Forum: General discussion
Topic: convert PORT to int
Replies: 8
Views: 77

Re: convert PORT to int

Pins are just an index into a PIN_MAP array

I think you could use a single byte, but as the MCU is natively 32 bits, is usually best just to use int for integers unless you need to do some specific bit shifting or masking that requires an 8 bit value

So... use

int
by RogerClark
Mon Jun 26, 2017 10:08 pm
Forum: General discussion
Topic: convert PORT to int
Replies: 8
Views: 77

Re: convert PORT to int

If you want to read an entire port ( 16 bits), at the moment you will need to use the built in reference to the port struct ( device) and its input reguster.

I am sure other people have posted some snippets of code. try googling for fast GPIO access or port access
by RogerClark
Mon Jun 26, 2017 10:04 pm
Forum: General discussion
Topic: Should we still use optimisation level -Os (Small)
Replies: 15
Views: 199

Re: Should we still use optimisation level -Os (Small)

zmemw16 wrote:
Mon Jun 26, 2017 10:29 am
can't we just default it to -Os ? as now in effect, let user then change it if reqd.
srp
Yes.

It could be done