Error "No ST-LINK detected!" i get only when i disconnect st-link v2 dongle from USB and try to upload from Arduino IDE. Maybe missing drivers, maybe st-link v2 is stuck in DFU mode, maybe core or Arduino IDE need to be updated.
I don't understand what BOOT0 have to do with ST-LINK Utility. I tried ...
Search found 150 matches
- Tue Jan 28, 2020 7:22 pm
- Forum: General discussion
- Topic: [SOLVED]Interesting problem
- Replies: 46
- Views: 126422
- Tue Jan 28, 2020 5:31 pm
- Forum: General discussion
- Topic: [SOLVED]Interesting problem
- Replies: 46
- Views: 126422
Re: Interesting problem
What error Arduino IDE report?
- "No ST-LINK detected!"
- "No target connected. Unable to connect to ST-LINK!"
- "Unable to connect to the MCU device!"
Also, when using STM32 ST-LINK Utility, when you click "connect to target", does it connect or you get error "cannot connect to target"? Or you can ...
- "No ST-LINK detected!"
- "No target connected. Unable to connect to ST-LINK!"
- "Unable to connect to the MCU device!"
Also, when using STM32 ST-LINK Utility, when you click "connect to target", does it connect or you get error "cannot connect to target"? Or you can ...
- Tue Jan 28, 2020 3:57 pm
- Forum: General discussion
- Topic: [SOLVED]Interesting problem
- Replies: 46
- Views: 126422
Re: Interesting problem
Maybe not related, but got to ask. Do you have STM32F103C8/B chip or chinese clones like SK32F103C8 or GD32F103C8?
But i agree with others, if you are compiling with Arduino IDE, and using Roger's core, why not upload from Arduino IDE? In my experience, uploading with st-link needed reset only when ...
But i agree with others, if you are compiling with Arduino IDE, and using Roger's core, why not upload from Arduino IDE? In my experience, uploading with st-link needed reset only when ...
- Tue Jan 28, 2020 9:40 am
- Forum: General discussion
- Topic: [SOLVED]Interesting problem
- Replies: 46
- Views: 126422
Re: Interesting problem
In your code, do you use pins PA13 or PA14? (SWDIO and SWCLK) Or in some way set them as inputs/output (individually or as portA manipulation). Maybe it's in conflict with st-link's pins.
- Wed Jan 15, 2020 1:41 am
- Forum: General discussion
- Topic: [Solved] Use timer for precise interrupt
- Replies: 14
- Views: 15563
Re: Use timer for precise interrupt
You also need
in your setup.
Code: Select all
timerBase->setMode(1, TIMER_OUTPUT_COMPARE); // 1 is channel number 1, can be 1,2,3 or 4
- Sat Dec 28, 2019 9:49 pm
- Forum: General discussion
- Topic: LTO isn't working?
- Replies: 9
- Views: 12178
Re: LTO isn't working?
In my experience, since I have some project that include both interrupts and timer, LTO was working on 1.7.0 core version. You try to downgrade from board manager and test it. And, for me, O3 with LTO produce much faster code then with just O3 (when measured with logic analizer).
- Sun Dec 22, 2019 8:49 pm
- Forum: General discussion
- Topic: [Q] How to know how much RAM memory microcontroller have at compile time?
- Replies: 6
- Views: 10555
Re: [Q] How to know how much RAM memory microcontroller have at compile time?
That example looked too advanced for my LVL1 coding skills

I tried to implement it and failed. As you mentioned, it can't be used because it is not constant.
- Sun Dec 22, 2019 11:57 am
- Forum: General discussion
- Topic: [Q] How to know how much RAM memory microcontroller have at compile time?
- Replies: 6
- Views: 10555
Re: [Q] How to know how much RAM memory microcontroller have at compile time?
I hope my explanation was clear enough.
It was very clear and very helpfull. Thank you.
Yes, i could use (for example):
#ifdef ARDUINO_BLUEPILL_F103C8
#define RAM_SIZE 0x3a00
#endif
But, for my personal use, i edited platform.txt and added new macro for available RAM.
So, it should look ...
- Sat Dec 21, 2019 5:16 pm
- Forum: General discussion
- Topic: [Q] How to know how much RAM memory microcontroller have at compile time?
- Replies: 6
- Views: 10555
Re: [Q] How to know how much RAM memory microcontroller have at compile time?
I know size of RAM available, but i want to write a code that can calculate it at compile time, without the need to comment/uncomment lines depending of CPU/core i had selected from menu.
I am using STM32F103C8 (blue pill) and STM32F401CC, and same code can be used for both of them. I ordered ...
I am using STM32F103C8 (blue pill) and STM32F401CC, and same code can be used for both of them. I ordered ...
- Sat Dec 21, 2019 1:33 pm
- Forum: General discussion
- Topic: [Q] How to know how much RAM memory microcontroller have at compile time?
- Replies: 6
- Views: 10555
[Q] How to know how much RAM memory microcontroller have at compile time?
Hi, i am using some large array, but, to be able to reserve it at compile time, i need information how much there is it. I tried to look for some #define in core's code, but i didn't find any. I'm just trying to write something in Arduino IDE, that can be used on both cores (STM32 ST and Roger's ...