Search found 258 matches

by rew
Fri Aug 02, 2019 12:35 pm
Forum: STM32 Support
Topic: Documentation contact at ST...
Replies: 1
Views: 77

Documentation contact at ST...

Does anybody know contact information for the STM32 documentation group? They should get their shit together... Or rather, they might want to correct the word "SHIT" in RM0091. (and the two arrow directions should be reversed, also in fig 245).
by rew
Fri Jul 12, 2019 8:19 am
Forum: STM32 Support
Topic: Unhandled exception - how to debug
Replies: 26
Views: 396

Re: Unhandled exception - how to debug

Two suggestions: First: All of the unhandled exceptions share the same code: "somthing bad happened, stop the system". Those share the same physical code in the flash memory, so when the processor stops there, the debugger doesn't know what triggered it, it looks up the program counter add...
by rew
Sun Jun 30, 2019 6:19 pm
Forum: STM32 Support
Topic: SPI - lcd interface with ILI9341 driver Topic is solved
Replies: 15
Views: 495

Re: SPI - lcd interface with ILI9341 driver Topic is solved

OK. Me too was wrong: The chip has an SPI interface, no I2C. The chip needs 9 bits per transfer: 8 bits for data/command and whether or not those 8 bits are data or command. You get to choose (or the board manufacturer did that for you), if you want to use a separate GPIO line for the command/data b...
by rew
Sat Jun 29, 2019 7:18 am
Forum: STM32 Support
Topic: SPI - lcd interface with ILI9341 driver Topic is solved
Replies: 15
Views: 495

Re: SPI - lcd interface with ILI9341 driver Topic is solved

You should link the datasheet. What I THINK I'm looking at, is NOT what Giovanni interpreted...

I THINK this is a combined I2C and SPI device. It can do both. By using the right lines you can do either I2C or SPI.
by rew
Sat Jun 29, 2019 7:12 am
Forum: STM32 Support
Topic: Dropping bytes with 3 mb/s UART
Replies: 2
Views: 169

Re: Dropping bytes with 3 mb/s UART

You could also... just turn on the peripheral yourself and when the first "data available" interrupt happens, you busy-wait for all the data. Now you might say that's inefficient, because interrupt driven you might still be able to do other stuff, but the fact that you are dropping bytes m...
by rew
Wed Jun 19, 2019 8:04 pm
Forum: STM32 Support
Topic: GDB debugging.
Replies: 6
Views: 215

Re: GDB debugging.

It is just a normal "timer" interrupt. Or maybe USB. I don't know. But I can never step through MY code because it keeps going into the interrupt handler when I single-step the target.....
by rew
Wed Jun 19, 2019 6:55 am
Forum: STM32 Support
Topic: GDB debugging.
Replies: 6
Views: 215

GDB debugging.

I use arm-gcc and gdb under Linux (ubuntu).

When I try to debug my code under gdb, when I stop in say "init_something ()" and then type "next", the next instruction is always some interrupt handling stuff. Is there a way to get this to work normally?
by rew
Mon Jun 17, 2019 8:48 am
Forum: STM32 Support
Topic: STM32L496 external oscillator
Replies: 7
Views: 310

Re: STM32L496 external oscillator

It would have multiple solutions, the right one could depend on other constraints and configurations, it is not so obvious. If you don't see how to automate something, try doing it by hand a few times. So, external clock: 8 MHz, wanted clock 168 MHz, that's divide by 1, times 21. But wait! there ar...
by rew
Fri Jun 07, 2019 8:10 am
Forum: STM32 Support
Topic: STM32L496 external oscillator
Replies: 7
Views: 310

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: 12
Views: 1633

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...

Go to advanced search