Search found 12 matches

by mrguen
Wed Sep 02, 2020 12:28 pm
Forum: General discussion
Topic: SPI partly working when using hardware, library or code CS management
Replies: 5
Views: 371

Re: SPI partly working when using hardware, library or code CS management

The command was not correct. I can have it work when managing the CS pin in the code. I did not tested more the other two methods.
by mrguen
Mon Aug 31, 2020 3:20 pm
Forum: General discussion
Topic: SPI partly working when using hardware, library or code CS management
Replies: 5
Views: 371

Re: SPI partly working when using hardware, library or code CS management

@fpiSTM Yes this is a recent component (2019). So there is hardly any info available. I guess I have to analyze the signals. I will do some more test and let you know.
by mrguen
Mon Aug 31, 2020 10:00 am
Forum: General discussion
Topic: SPI partly working when using hardware, library or code CS management
Replies: 5
Views: 371

Re: SPI partly working when using hardware, library or code CS management

@fpiSTM Yes I did read the WIKI and use SPI_CONTINUE in example 2, but maybe not correctly?
by mrguen
Sun Aug 30, 2020 4:12 pm
Forum: General discussion
Topic: SPI partly working when using hardware, library or code CS management
Replies: 5
Views: 371

SPI partly working when using hardware, library or code CS management

Hello, Maybe some of you know well the SPI? I am trying to communicate between STM32F401RCT6 and an ADC module MCP3561. The expected com on SPI is attached at the end of the message. The SPI used is SPI2 with alternate pins const byte SPI_MOSI = PC3; const byte SPI_MISO = PC2; const byte SPI_SCK = P...
by mrguen
Mon Aug 17, 2020 3:36 pm
Forum: General discussion
Topic: How to use SPI2
Replies: 14
Views: 2048

Re: How to use SPI2

@fpiSTM
About __HAL_RCC_I2C1_CLK_DISABLE(); I saw that there was an incompatibility on some boards with I2C1 so I tried in case it would solve the problem.

Yes, uncommenting PB_3 and PB_5 affectation to SPI1 worked.

So the question might be: why it was commented?

Thanks
by mrguen
Mon Aug 17, 2020 1:11 pm
Forum: General discussion
Topic: How to use SPI2
Replies: 14
Views: 2048

Re: How to use SPI2

I a m sorry but I can't make SPI work with alternate pins to drive a TFT. It works with default pins (PA5,PA7) but not when using SPI.setMOSI(PB_5); SPI.setSCLK(PB_3); SPI.begin(); // even when adding this in any case __HAL_RCC_I2C1_CLK_DISABLE(); ON STM32F401RCT6 other pins are defined as #define T...
by mrguen
Wed Jul 15, 2020 11:34 am
Forum: General discussion
Topic: How to use SPI2
Replies: 14
Views: 2048

Re: How to use SPI2

Hello, Thanks for the code example.

1) I get the error
'AFIO_DEBUG_SW_ONLY' was not declared in this scope

on STM32F401RCT6 (CoreBoard) / STM32 Cores 1.9.0

2) Is it possible to use the remapped SPI2 (SCK: PB13, MOSI: PC3, MISO: PC2)?
by mrguen
Wed Mar 11, 2020 5:10 pm
Forum: Custom design boards
Topic: Other USB_CONNECT pin on STM32F4xx
Replies: 3
Views: 721

Re: Other USB_CONNECT pin on STM32F4xx

Thanks. I will try with another pin.
by mrguen
Wed Mar 11, 2020 2:02 pm
Forum: Custom design boards
Topic: Other USB_CONNECT pin on STM32F4xx
Replies: 3
Views: 721

Other USB_CONNECT pin on STM32F4xx

Could someone tell me if it would be possible to modify the pin used for USB_CONNECT. The pin used on the STM32F401RC board I am using is PD2 but I would be using this pin that is also SDIO_CMD to communicate with an SD CARD. So I would like to change it.
by mrguen
Fri Mar 06, 2020 7:17 am
Forum: General discussion
Topic: Compile time so slow
Replies: 19
Views: 2997

Re: Compile time so slow

Just tested Blink compilation this morning. It took 2m40s on my Icore 4570 / Windows 10 system. So, yes for a sketch that uses around 30-50% of the resources it takes more than 10 minutes. I really can't see a difference when deacivating AVG antivirus. I really can't go into any details. The archite...

Go to advanced search