Search found 25 matches

by fredbox
Mon Feb 03, 2020 9:46 pm
Forum: General discussion
Topic: Two instances of HardwareTimer problem
Replies: 2
Views: 229

Re: Two instances of HardwareTimer problem

See http://gammon.com.au/interrupts section "Hints for writing ISRs".
by fredbox
Sun Feb 02, 2020 9:27 pm
Forum: General discussion
Topic: SerialUSB doesn't work on Maple Mini
Replies: 28
Views: 1877

Re: SerialUSB doesn't work on Maple Mini

You can simplify the led line to

Code: Select all

led = 1 - led;
If led is 0 then 1 - led = 1.
If led is 1 then 1 - led = 0.
by fredbox
Wed Jan 29, 2020 12:24 am
Forum: General discussion
Topic: [SOLVED]Interesting problem
Replies: 41
Views: 1368

Re: Interesting problem

If using libmaple, you may need enableDebugPorts(). See https://github.com/rogerclarkmelbourne/ ... sh_debug.h
by fredbox
Tue Jan 28, 2020 11:00 pm
Forum: General discussion
Topic: [SOLVED]Interesting problem
Replies: 41
Views: 1368

Re: Interesting problem

You might want to try the STM32 Cube programmer for your stlink. Test setup - STLink connected to SWD and power pins on blue pill. Both boot jumpers = 0. USB not connected. ./stm32CubeProg.sh 10 /tmp/arduino_build_151098/sketch_jan25a.ino.bin -s ------------------------------------------------------...
by fredbox
Tue Jan 28, 2020 4:59 am
Forum: General discussion
Topic: [SOLVED]Interesting problem
Replies: 41
Views: 1368

Re: Interesting problem

The STlink v2 with STlink utilities doesn't not allow me to re-flash without using reset pin I'm using the STM core v1.8.0 without any bootloader. There are three wires connected from the ST-Link adapter - SWDIO, SWCLK, and GND. Power is via the USB port. Both boot jumpers are at 0. Uploading the b...
by fredbox
Mon Jan 27, 2020 11:19 pm
Forum: PR's bugs and enhancements
Topic: [Solved] HardwareSerial 3 error on Maple Mini board
Replies: 6
Views: 373

Re: HardwareSerial 3 error on Maple Mini board

It was more of a puzzle to me than an actual problem. I'm reviewing the fix on Github to understand how you solved it. Thanks.
by fredbox
Mon Jan 27, 2020 11:11 pm
Forum: General discussion
Topic: Compile time so slow
Replies: 11
Views: 506

Re: Compile time so slow

I saw this come across the RSS feed a short while ago: We’re excited to announce that Arduino IDE 1.8.11 is here! In addition to the usual load of bugfixes and small improvements under the hood, the latest version includes: Improved support for Mac OS X (the app is now notarized and strictly follows...
by fredbox
Sun Jan 26, 2020 3:38 pm
Forum: PR's bugs and enhancements
Topic: [Solved] HardwareSerial 3 error on Maple Mini board
Replies: 6
Views: 373

Re: HardwareSerial 3 error on Maple Mini board

For "hello world" using the pin names gives the smallest code size: HardwareSerial Serial3((uint32_t)PB11,PB10); // 8528 bytes flash - 676 bytes ram HardwareSerial Serial3(USART3); // 8452 bytes flash - 676 bytes ram HardwareSerial Serial3(PB_11, PB_10); // 8352 bytes flash - 676 bytes ram
by fredbox
Sun Jan 26, 2020 2:38 am
Forum: PR's bugs and enhancements
Topic: [Solved] HardwareSerial 3 error on Maple Mini board
Replies: 6
Views: 373

[Solved] HardwareSerial 3 error on Maple Mini board

HardwareSerial Serial3(USART3); // compiles HardwareSerial Serial3(PB_11, PB_10); // compiles HardwareSerial Serial3(PB11, PB10); // error: call of overloaded 'HardwareSerial(int, int)' is ambiguous All three examples work if the board type is changed to a blue pill. Casting PB11 to an int lets it ...
by fredbox
Thu Jan 23, 2020 3:27 pm
Forum: General discussion
Topic: [SOLVED]Timer changes since 1.6
Replies: 14
Views: 560

Re: [SOLVED]Timer changes since 1.6

Instead of configuring a timer, you can use HAL_SYSTICK_Callback() which fires every millisecond. See viewtopic.php?p=644#p644 for blinky example using systick.

Go to advanced search