Search found 145 matches
- Sat Dec 28, 2019 9:49 pm
- Forum: General discussion
- Topic: LTO isn't working?
- Replies: 9
- Views: 8104
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: 6640
- 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: 6640
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 like this: ...
- 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: 6640
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 STM32F...
- 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: 6640
[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 cor...