Search found 250 matches

by rew
Fri Jun 07, 2019 8:10 am
Forum: STM32 Support
Topic: STM32L496 external oscillator
Replies: 6
Views: 168

Re: STM32L496 external oscillator

Speaking about clocks. I would personally like it better if chibios provided more help in determining those M/N/P/Q/R values. I would then specify: #define MCU_CLOCK 168000000 #define CRYSTAL_FREQ 25000000 and a little program would #include my specifications and spit out the include file that the c...
by rew
Mon Apr 29, 2019 8:07 pm
Forum: STM32 Support
Topic: STM32F7 bootloader based on ChibiOS
Replies: 10
Views: 1246

Re: STM32F7 bootloader based on ChibiOS

Just FYI: If I'd write such a bootloader, I'd link the bootloader to <top-of-flash>. When bootloading, the bootloader will write all application bytes, except for the vectors at 0x08000000 (8 bytes). Those need to be stored somewhere else. Downloading the bootloader to the chip is now a bit more dif...
by rew
Thu Mar 21, 2019 10:08 am
Forum: General Support
Topic: ARMV6-M
Replies: 6
Views: 630

Re: ARMV6-M

Not sure why there are two threads about this. I wrote something about "good code" and workaround in the other thread. I think I did not explain clearly. The proper way to write the code is apparently: __attribute__((used)) void *retaddr; __attribute__((noinline)) void xxxxtest(void) { ret...
by rew
Mon Mar 04, 2019 5:52 pm
Forum: STM32 Support
Topic: STM32F072: serial output stops after 16 chars.
Replies: 0
Views: 93

STM32F072: serial output stops after 16 chars.

Edit: Found it! See at the bottom. I have a project where I need to do serial communication all of a sudden. I enabled the serial driver (actually it already was), and issue the "sdStart ()" call. Then when I write to the port, I get only 16 characters... This is a test Hello on the seria ...
by rew
Mon Feb 25, 2019 9:03 am
Forum: STM32 Support
Topic: Interesting Error on STM32F030K6 with remapped serial
Replies: 15
Views: 632

Re: Interesting Error on STM32F030K6 with remapped serial

... the compiler bug, .... https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88167 there is no easy way to workaround this. What about this: * you take the compiler ASM output, fix it and include it in an "#if GCC_BUG_PRESENT" as an alternative to the better code. Leave the original in the #el...
by rew
Sun Feb 24, 2019 10:19 pm
Forum: STM32 Support
Topic: Big Binary
Replies: 3
Views: 295

Re: Big Binary

Or define a static array: static char dummy[DUMMY_SIZE] = { 1,2,3, }; Assigning the first few values means the array has to be initialized, I expect the compiler to do this in a "dumb" fashion, i.e. allocate an area as large as the dummy variable and fill it with the full initial value (i....
by rew
Sun Feb 24, 2019 10:13 pm
Forum: STM32 Support
Topic: Where to start STM32H7 support
Replies: 148
Views: 12891

Re: Where to start STM32H7 support

Hey Tridge, long time no see! (ran into your name much more often like a decade ago.... I don't think we've met). Could it be that the SPI module is in byte mode while the FIFO is in word mode. Or the other way around. IIRC the SPI peripheral was designed for a 16-bit CPU, all registers are limited ...
by rew
Sun Dec 09, 2018 8:53 pm
Forum: STM32 Support
Topic: STM32F745xx debugging help
Replies: 10
Views: 695

Re: STM32F745xx debugging help

Yup! that counts as

Code: Select all

"lots of trouble to install an non-distro compiler"?

Other users on my system can't use it out-of-the-box etc etc.
by rew
Sat Dec 08, 2018 12:42 pm
Forum: STM32 Support
Topic: STM32F745xx debugging help
Replies: 10
Views: 695

Re: STM32F745xx debugging help

For Ubuntu 12.04/14.04/16.04/16.10 32/64-bit user, PPA is available at https://launchpad.net/~team-gcc-arm-embedded/+archive/ubuntu/ppa. So now what? I Have ubunut 18.04? This looks unmaintained to me if there hasn't been a release/update in two years. How do I see the difference between "aban...
by rew
Sat Dec 08, 2018 10:09 am
Forum: STM32 Support
Topic: STM32F745xx debugging help
Replies: 10
Views: 695

Re: STM32F745xx debugging help

I was using some special compiler (lots of trouble to install) before 2016. In 2016 I was relieved that suddenly the distro compiler simply worked. So 2018 I need to go back to the "lots of trouble to install an non-distro compiler"? Anyway, I've narrowed it down to the linking phase. I ca...

Go to advanced search