Search found 341 matches

by rew
Mon Oct 26, 2020 12:57 pm
Forum: STM32 Support
Topic: Jump to bootloader.
Replies: 6
Views: 157

Re: Jump to bootloader.

Polux wrote:in your last post, you wrote 3 times cpsid, but your code is "cpsie
yeah. The startup code does cpsid where the d stands for Disable. Then to revert that I need to Enable the same stuff, so the instrution becomes cpsie.
by rew
Fri Oct 23, 2020 11:57 am
Forum: STM32 Support
Topic: Jump to bootloader.
Replies: 6
Views: 157

Re: Jump to bootloader.

You said "board.h" and the only I could find was "boardInit" which is called late in halInit and I tried adding my code in main before alInit, and that was too late. You mean __early_init in board.c . I added my code there and... that's too late: It doesn't work. I moved the call...
by rew
Thu Oct 22, 2020 5:10 pm
Forum: STM32 Support
Topic: Jump to bootloader.
Replies: 6
Views: 157

Jump to bootloader.

I've wanted a "jump to bootloader" functionality for a while. Doing that from the application by resetting everything and then jumping to the location specified in "system memory" doesn't work. I am apparently not resetting enough, so the bootloader doesn't work. Setting a variab...
by rew
Sat Oct 10, 2020 9:58 pm
Forum: STM32 Support
Topic: STM32F030x4 ADC blocks other threads Topic is solved
Replies: 6
Views: 215

Re: STM32F030x4 ADC blocks other threads Topic is solved

Does CHIBIOS always ask for an interrupt at the end of the buffer? I'd think that chibos would disable the IRQ if the user-code doesn't ask to be notified. This means that in circular mode, you can have the ADC converting at max speed and the latest converted value is simply available in a memory lo...
by rew
Sat Oct 10, 2020 9:35 pm
Forum: STM32 Support
Topic: Synchronization ADC and center-aligned PWM STM32F405
Replies: 13
Views: 315

Re: Synchronization ADC and center-aligned PWM STM32F405

Again, my suggestion of lowering the "max PWM" is to try to measure WHEN the sampling happens. If you find it only goes wrong above 87% PWM, then you know the sampling is happening say 6.5% into the 50 microsecond PWM period. Then I hope that this 3.25 microseconds can be traced to "s...
by rew
Thu Oct 08, 2020 10:12 am
Forum: STM32 Support
Topic: Synchronization ADC and center-aligned PWM STM32F405
Replies: 13
Views: 315

Re: Synchronization ADC and center-aligned PWM STM32F405

1) You'll get a 10kHz noise coming from the motor. 2) VESC is able to do the sampling in the right moments. It also uses chibios, so... take a look at the source code. 3) The ADC is not infinitely fast. It takes some time to gather the samples. Are you using all three ADCs? The 'F405 has three ADCs....
by rew
Wed Sep 30, 2020 9:04 am
Forum: STM32 Support
Topic: STM32F405 ADC
Replies: 14
Views: 220

Re: STM32F405 ADC

Is this from Ubuntu repository or the one from ARM? The one from repositories is known to have problems. just FYI: I accidentally used that one again. :-( The symptoms were a crash a few seconds after booting. Slow enough for me to get some work done working on my software, and allowing me to "...
by rew
Wed Sep 23, 2020 7:55 am
Forum: Development and Feedback
Topic: Make the _unhandled_exception function "weak".
Replies: 1
Views: 131

Make the _unhandled_exception function "weak".

I've been struggling with debugging exceptions for quite a while now. One of the things that I hate to do is to modify a library-type of code. That creates an upgrade nightmare: Either future patches no longer apply or I start over and end up with the library without the patches if I simply install ...
by rew
Wed Sep 02, 2020 9:53 pm
Forum: STM32 Support
Topic: LWIP DHCP problem.
Replies: 10
Views: 402

Re: LWIP DHCP problem.

My Makefile has:

Code: Select all

  LDSCRIPT= $(STARTUPLD)/STM32F746xG.ld
OK. I've now found two more ldscripts.
by rew
Mon Aug 31, 2020 2:08 pm
Forum: STM32 Support
Topic: LWIP DHCP problem.
Replies: 10
Views: 402

Re: LWIP DHCP problem.

My application (the one that calls "lwip_init" with the options struct to request DHCP) does NOTHING with buffers. It is the "mac driver in chibios that allocates a buffer for the packet when macWaitTransmitDescriptor is called from os/various/lwip/lwipthread.c (i.e. also chibios code...

Go to advanced search