Search found 196 matches

by stevestrong
Fri Jun 05, 2020 11:07 am
Forum: Libraries & Hardware
Topic: [Solved] Hardware Timer
Replies: 3
Views: 57

Re: Hardware Timer

You should set the mode after pausing the timer, so check the order of the functions: TimerX.pause(); ... TimerX.refresh(); TimerX.attachInterrupt(..); TimerX.resume(); Btw, you set the mode for channel 2 and attach the interrupt on channel 3... And there is no need to set compare mode if you only w...
by stevestrong
Fri Jun 05, 2020 9:25 am
Forum: General discussion
Topic: Need to change Vector table Address
Replies: 8
Views: 94

Re: Need to change Vector table Address

If it is working with Keil, then compare the build process of Keil with the build process of Arduino, then you will figure out what you have to change. It also depends what kind of upload method do you select in Arduino. Comparing the build messages for different upload methods also helps to underst...
by stevestrong
Fri Jun 05, 2020 7:45 am
Forum: Maple & Maple mini etc
Topic: No COM Port - STM32F103RC8T6
Replies: 12
Views: 2161

Re: No COM Port - STM32F103RC8T6

You can press the reset button when the "Searching for .." message appears in the Arduino message window when upload starts. This should force the board to present himself as DFU device, if the bootloader is installed. If no bootloader is installed, you have to install one or use STLink for upload, ...
by stevestrong
Fri Jun 05, 2020 7:32 am
Forum: General discussion
Topic: Problem with serial after waking up from stop/deepsleep
Replies: 3
Views: 80

Re: Problem with serial after waking up from stop/deepsleep

Before writing something to the USB serial you have to wait till it is activated. Serial.begin(); // no need for baudrate, because USB serial does not need it while (!Serial); delay(10); // needed by Arduino serial port monitor Btw, this has not been yet tested by anyone else, so do not expect for a...
by stevestrong
Thu Jun 04, 2020 7:57 am
Forum: General discussion
Topic: Problem with serial after waking up from stop/deepsleep
Replies: 3
Views: 80

Re: Problem with serial after waking up from stop/deepsleep

You can try

Code: Select all

Serial.end(); // before going to sleep
and

Code: Select all

Serial.begin(); // at wake up
by stevestrong
Wed Jun 03, 2020 6:04 pm
Forum: General discussion
Topic: STM32F103 Strange Behavior
Replies: 5
Views: 359

Re: STM32F103 Strange Behavior

In my case the app was always compiled for upload with STLink (vector at 0x08000000), the same BIN worked when uploaded with Cube programmer, and it failed when uploaded with STLink. In the later case the FLASH was corrupted (empty), and the utility sw had a freeze.
by stevestrong
Wed Jun 03, 2020 4:02 pm
Forum: Libraries & Hardware
Topic: New CAN Bus Library for the stm32f103
Replies: 8
Views: 364

Re: New CAN Bus Library for the stm32f103

Well, some of those registers (e.g. GPIO) are also defined in the libmaple core, and he still redefines them...

Anyway, I think we have to ask again the OP which core he actually used.
by stevestrong
Wed Jun 03, 2020 3:56 pm
Forum: Libraries & Hardware
Topic: New CAN Bus Library for the stm32f103
Replies: 8
Views: 364

Re: New CAN Bus Library for the stm32f103

It will not compile for libmaple, because it uses digitalToggle() function, which does not exist in libmaple core...
I am sure PIO uses the official ST core 8-)
by stevestrong
Wed Jun 03, 2020 3:34 pm
Forum: Libraries & Hardware
Topic: New CAN Bus Library for the stm32f103
Replies: 8
Views: 364

Re: New CAN Bus Library for the stm32f103

I don't think that it is for libmaple.
Under "Instalation" is stated:
The library was developed using Platformio and STM32duino
.
by stevestrong
Wed Jun 03, 2020 3:28 pm
Forum: General discussion
Topic: STM32F103 Strange Behavior
Replies: 5
Views: 359

Re: STM32F103 Strange Behavior

I also observed strange STLink upload behavior during the CDC bootloader development. At a certain point I could not upload the BIN file with STlink but I could upload it using Eclipse and starting the debug session, or with STMCUbe programmer. And the fail uploads varied somehow dependent on the co...

Go to advanced search