• Welcome to Andy's Workshop Forums. Please login or sign up.
 
May 15, 2024, 10:20:23 pm

News:

SMF - Just Installed!


Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - ris2t

1
stm32plus C++ library / Building with Ac6 SystemWorkBench
December 24, 2016, 06:39:52 pm
Hi

Building the latest STM32 4.0.5 with the Ac6 SystemWorkBench (Mars 4.5.2) and getting the following error thats not making alot of sense (my C++ KB is very outdated).


/home/raymond/workspaceC/stm32plus/include/crc/BigEndianCrc.h:31:31: error: invalid conversion from 'int' to 'stm32plus::Endian' [-fpermissive]
class CrcPeripheral<BIG_ENDIAN> : public CrcBase {


I do note that the work bench seems to embedd, 5.4.1 compiler which I see another post flags as incompatible.
arm-none-eabi-g++ (GNU Tools for ARM Embedded Processors) 5.4.1 20160609

However its just this one error I'm encountering and rejigging SystemWorkBench to an older version looks to be non trivial.

Any help appreciated.
2
Hi

Novice question I'm hoping for some guidance on. Using STM32F4 Discovery board.

I've taken the stm32plus-examples-net-web-client (RMII) project and extended it to read a DHT11 (humidity and temp sensor) on pin PA03.

Within the DHT11 code I'm using the GPIO template to initialize the pins.
    GpioA<DigitalOutputFeature<GPIO_Speed_50MHz,Gpio::PUSH_PULL,Gpio::PUPD_NONE,GPIO_PORT_NUMBER> > pa_out;

GpioA<DigitalInputFeature<GPIO_Speed_50MHz,Gpio::PUPD_NONE,GPIO_PORT_NUMBER> > pa_in;

In isolation the two pieces of code work fine, I can do Ethernet and separately DHT11 reading.

However when joined in various orders ethernet and DHT11 readings fail. I get the impression the port isn't setup any more.

Question:

Is it possible to declare multiple instance of the GpioA template on the same port group, or should I be using something like GpioPinInitialiser::initialise.

Look for any guidance on why declaring GpioA would clash with the ethernet classes.

Thanks
Raymond