Search found 1754 matches

by fpiSTM
Mon May 22, 2023 8:15 am
Forum: General discussion
Topic: TIM2 PWM newbie needs help with bare metal code
Replies: 26
Views: 7759

Re: TIM2 PWM newbie needs help with bare metal code

You should pay attention of 2 things: 1- ino is converted in cpp so all handler have to be prefixed with extern "C" 2- Timer irq handler are already defined by the core to use within Arduino API. So you have to disable this usage to be able to define your own one. To achieve this you can s...
by fpiSTM
Mon May 22, 2023 8:10 am
Forum: IDE's
Topic: Blink uses 97% of program storage space
Replies: 6
Views: 6799

Re: Blink uses 97% of program storage space

You probably used STM32 core version 1.x before. Now 2.x provides access to all peripherals for all pins which increase the size in flash.
Anyway as stated before you can reduce this size using some customization.
by fpiSTM
Sat May 20, 2023 4:44 pm
Forum: IDE's
Topic: Blink uses 97% of program storage space
Replies: 6
Views: 6799

Re: Blink uses 97% of program storage space

You can do some optimization to reduces spaces depending of your needs: https://github.com/stm32duino/Arduino_Core_STM32/wiki/HAL-configuration#example-of-blinkino-for-nucleo-l031k6-with-32768-bytes-of-flash-and-8192-bytes-of-ram In your case you should not disable SPI and optimizes SPI pinmap array...
by fpiSTM
Fri May 19, 2023 9:09 am
Forum: General discussion
Topic: Reserve last page of Flash for virtual EEPROM
Replies: 2
Views: 629

Re: Reserve last page of Flash for virtual EEPROM

Simpliest way would be to define in a boards.local.txt a new entry for the board and name it with EE: `3dprinter.menu.pnum.EBB42_V1_1_EE.upload.maximum_size=130048` Like this you will have only to select the one you want. Or you can add a new option in the 3D printer menu to set the correct upload_m...
by fpiSTM
Fri May 12, 2023 2:44 am
Forum: General discussion
Topic: hard i2c vs soft i2c
Replies: 2
Views: 1748

Re: hard i2c vs soft i2c

It uses hardware.
by fpiSTM
Thu May 11, 2023 4:22 pm
Forum: General discussion
Topic: No Port & Permission denied: macOS
Replies: 2
Views: 749

Re: No Port & Permission denied: macOS

Set executable permission. chmod a+x.
by fpiSTM
Sat May 06, 2023 5:22 pm
Forum: General discussion
Topic: analogRead() Freezes the program
Replies: 12
Views: 1624

Re: analogRead() Freezes the program

Generic uses HSI. So not an HSE issue.
https://github.com/stm32duino/Arduino_C ... lock.c#L22

Go to advanced search