Search found 32 matches

by TravisT
Fri Nov 10, 2017 7:42 am
Forum: General Discussion and Questions
Topic: Custom board change CAN pins
Replies: 4
Views: 83

Re: Custom board change CAN pins

I was able to get this working. Had to dig into the "can.c" file under "ports/stm32" I was able to change the PB12 to PB5 and test that CAN2 worked with this change. It is strange that this is not as easily configurable as the other communications peripherals. // assumes Init parameters have been se...
by TravisT
Fri Nov 10, 2017 6:56 am
Forum: General Discussion and Questions
Topic: multi peripheral functionality on same pin
Replies: 3
Views: 169

Re: multi peripheral functionality on same pin

Ignore that last post. I posted on the wrong topic, and have not yet found how I can delete a post.
by TravisT
Fri Nov 10, 2017 6:55 am
Forum: General Discussion and Questions
Topic: Custom board change CAN pins
Replies: 4
Views: 83

Re: Custom board change CAN pins

Maybe I am not seeing it, but it seems like the CAN interface is one of the few that do not let me pass different pin assignments to, like SPI. I looked up the pin alternative function from the REPL and both B13 and B5 do not show CAN as options, even though I know from the STM32CUBEMX and the DFU d...
by TravisT
Fri Nov 10, 2017 6:49 am
Forum: General Discussion and Questions
Topic: multi peripheral functionality on same pin
Replies: 3
Views: 169

Re: multi peripheral functionality on same pin

Maybe I am not seeing it, but it seems like the CAN interface is one of the few that do not let me pass different pin assignments to, like SPI. I looked up the pin alternative function from the REPL and both B13 and B5 do not show CAN as options, even though I know from the STM32CUBEMX and the DFU d...
by TravisT
Fri Nov 10, 2017 5:51 am
Forum: General Discussion and Questions
Topic: Custom board change CAN pins
Replies: 4
Views: 83

Custom board change CAN pins

For many peripherals you can change the assigned pins from the "mpconfigboard.h" file. It appears you can change the CAN names, but it does not show the pin number assignments that can be changed. I looked through several other board files hoping for some guidance but did not find a good example. Th...
by TravisT
Wed Nov 08, 2017 3:54 pm
Forum: General Discussion and Questions
Topic: External oscillator for HSE
Replies: 7
Views: 128

Re: External oscillator for HSE

Thanks for who has put time in for helping me. Like all fun issues on new hardware there was two variables at work here. 1 - Settings for external clock source and not a crystal 2 - Making sure you remove pin configurations that might affect the system boot. In particular I am thinking the USB VBUS ...
by TravisT
Wed Nov 08, 2017 3:25 pm
Forum: General Discussion and Questions
Topic: External oscillator for HSE
Replies: 7
Views: 128

Re: External oscillator for HSE

Because I am using the same clock frequency (8MHz) it looks like there is not much else to change. From what I can see all I should need to change is is RCC_HSE_ON to RCC_HSE_BYPASS. What I am having a struggle with, is if this is true why am I able to program with DFU but not be able to use the USB...
by TravisT
Wed Nov 08, 2017 1:58 pm
Forum: General Discussion and Questions
Topic: External oscillator for HSE
Replies: 7
Views: 128

Re: External oscillator for HSE

@chrismas9
Thanks for the suggestion. I looked at it a little, but I will see if I can find any more to compare against.
by TravisT
Wed Nov 08, 2017 1:56 pm
Forum: General Discussion and Questions
Topic: External oscillator for HSE
Replies: 7
Views: 128

Re: External oscillator for HSE

Based on what I have seen so far it would appear I just need to edit two things. micropython/ports/stm32/modmachine.c https://github.com/micropython/micropython/blob/4a93801c12898898744131f57d79cf216d0861b3/ports/stm32/modmachine.c // re-configure PLL // even if we don't use the PLL for the system c...
by TravisT
Wed Nov 08, 2017 6:48 am
Forum: General Discussion and Questions
Topic: External oscillator for HSE
Replies: 7
Views: 128

Re: External oscillator for HSE

@pythoncoder Thanks for taking the time to look over my issue. As you said I can hunt, and I have spent a little time looking through the code. I spent a little too much time hunting before realize the STM32 HAL has been moved into a separate repo. Regarding power usage on the oscillator, I can unde...