Search found 33 matches

by MasterT
Sun Oct 24, 2021 5:13 pm
Forum: IDE's
Topic: Upload code issue on Linux-Ubuntu
Replies: 13
Views: 17945

Re: Upload code issue on Linux-Ubuntu

Updates: 1. doesn't matter serial monitor closed or not; 2. same apply to arduino IDE; 3. dmesg shows no difference: [151249.020810] usb 1-4: new high-speed USB device number 24 using xhci_hcd [151249.169512] usb 1-4: config 1 interface 2 altsetting 0 endpoint 0x84 has an invalid bInterval 255, chan...
by MasterT
Sun Oct 24, 2021 12:54 am
Forum: IDE's
Topic: Upload code issue on Linux-Ubuntu
Replies: 13
Views: 17945

Upload code issue on Linux-Ubuntu

Hi, IDE 1.8.16 with latest stm32 boards 2.1.0 everything work flawlessly (serial & uploading - mass storage) till I put laptop into hibernation. After waking up arduino serial monitor still responsive and comm link is o'k, but uploading is dead. Connecting-reconnecting USB , restarting Nucleo - ...
by MasterT
Fri Jun 25, 2021 9:34 pm
Forum: General discussion
Topic: STM32H7 Portenta H7 I2S problem
Replies: 3
Views: 1940

Re: STM32H7 Portenta H7 I2S problem

Could you post a code ? Including SystemClock_Config(void).
by MasterT
Thu Jun 24, 2021 12:46 am
Forum: General discussion
Topic: STM32H7 Portenta H7 I2S problem
Replies: 3
Views: 1940

Re: STM32H7 Portenta H7 I2S problem

Get errata H7, there is something: 2.12 SPI 2.12.1 Spurious DMA Rx transaction after simplex Tx traffic Description With empty RXFIFO, SPI/I2S can spuriously generate a DMA read request upon enabling DMA receive traffic (by setting RXDMAEN bit), provided that the preceding completed transaction is a...
by MasterT
Fri Jun 18, 2021 6:44 pm
Forum: IDE's
Topic: How to change -0s default to -03?
Replies: 1
Views: 1474

How to change -0s default to -03?

Whenever I select another board all settings reset to default, including compiler flags -0s. How to make -03 as default?
I find that AVR boards are referenced to platform.local.txt, what about nucleo?
by MasterT
Mon May 31, 2021 2:42 pm
Forum: General discussion
Topic: Looking for working DMA ADC tutorial
Replies: 10
Views: 10910

Re: Looking for working DMA ADC tutorial

I commented out
// SystemClock_Config();
bit it's called anyway, so remove function completely out of sketch.
by MasterT
Sun May 30, 2021 9:50 pm
Forum: General discussion
Topic: Looking for working DMA ADC tutorial
Replies: 10
Views: 10910

Re: Looking for working DMA ADC tutorial

This is my way, how to configure some peripheral that I can't get a library : 1. Run CubeMX - generate a code. Very likely cube would skip some parts, for example start-pwm() for timers channels. So, next step to check what is missing. 2. Get pack of examples bind to Cube MX, for specific mcu series...
by MasterT
Wed May 26, 2021 1:33 pm
Forum: General discussion
Topic: To set all free pins as analog via Arduino IDE
Replies: 14
Views: 6656

Re: To set all free pins as analog via Arduino IDE

Something like this /// , called ones from setup(). And certanly, you should stuck all GPIO_PIN_0 |..........| GPIO_PIN_15, and repeat for each A, B, C...G ports, depends on MCU. Check programming reference manual how many GPIO ports its has. Thanks, ag123. I am doing this to reduce the consumption...
by MasterT
Wed May 26, 2021 12:57 am
Forum: General discussion
Topic: To set all free pins as analog via Arduino IDE
Replies: 14
Views: 6656

Re: To set all free pins as analog via Arduino IDE

Something like this void cfg_Pins1(void) { GPIO_InitTypeDef GPIO_InitStruct = { 0, 0, 0, 0, 0}; __HAL_RCC_GPIOA_CLK_ENABLE(); __HAL_RCC_GPIOB_CLK_ENABLE(); __HAL_RCC_GPIOC_CLK_ENABLE(); //DAC: /**DAC1 GPIO Configuration PA4 ------> DAC1_OUT1 PA5 ------> DAC1_OUT2 */ GPIO_InitStruct.Pin = GPIO_PIN_4|...
by MasterT
Mon May 24, 2021 9:37 pm
Forum: General discussion
Topic: NUCLEO-G474RE BMP183 Output Problem
Replies: 20
Views: 7387

Re: NUCLEO-G474RE BMP183 Output Problem

Try:

Code: Select all

  // SPI.begin(CS_PIN);
  SPI.beginTransaction(CS_PIN, SPISettings(8000000, MSBFIRST, SPI_MODE0));

Go to advanced search