Search found 121 matches

by wurstnase
Mon Feb 12, 2018 3:26 pm
Forum: General Support
Topic: Building project and board configuration outside chibios tree Topic is solved
Replies: 4
Views: 955

Re: Building project and board configuration outside chibios tree Topic is solved

Hi,

I checked my folder and Makefile.

You can add a CONFDIR in your Makefile which points to the chconf.h, mcuconf.h and halconf.h.

In my case:

Code: Select all

CHIBIOS = ../../chibios
CONFDIR = ./conf
by wurstnase
Wed Feb 07, 2018 9:18 pm
Forum: General Support
Topic: Sampling Problem, help!
Replies: 3
Views: 748

Re: Sampling Problem, help!

ADC_SQR3_SQ1_N(ADC_CHANNEL_IN0) | ADC_SQR3_SQ1_N(ADC_CHANNEL_IN1)

This is wrong. Each conversion has it's own sequence. Please check the reference manual and testhal for it.
by wurstnase
Sun Jan 28, 2018 10:16 pm
Forum: STM32 Support
Topic: Vector definitions
Replies: 2
Views: 595

Re: Vector definitions

The main mistake I couldn't identify :)

E.g. using chThdSleepMilliseconds in locked state. But with the debug options enabled in chconf.h it is very simple to catch them, and learning...
by wurstnase
Sun Jan 28, 2018 7:31 pm
Forum: STM32 Support
Topic: Vector definitions
Replies: 2
Views: 595

Vector definitions

Hi all, I'm playing with a very custom STM32F103VCT6 board. Unfortunately it will hit an unhandled exception. When I'm adding a void VectorFC(void) { while (true) ; } in main, I run in the next unhandled exception. Any hints are welcome. https://github.com/Wurstnase/chibios-rt-stm32f103vc Edit: Just...
by wurstnase
Fri Jan 26, 2018 3:38 am
Forum: Bug Reports
Topic: Setting up GPT and changing interval Topic is solved
Replies: 8
Views: 1642

Setting up GPT and changing interval Topic is solved

Hi, setting up the GPT and changing the interval has different results. Setup the GPT in continuous mode will set the ARR to interval. Changing the interval will set the ARR to interval -1. hal_gpt_lld.c void gpt_lld_start_timer(GPTDriver *gptp, gptcnt_t interval) { gptp->tim->ARR = (uint32_t)(inter...
by wurstnase
Thu Jan 25, 2018 1:38 pm
Forum: User Projects
Topic: u8g2 ported to ChibiOS first draft - working
Replies: 9
Views: 2366

Re: u8g2 ported to ChibiOS first draft - working

Another idea is to use the continuous mode and reset the counter by yourself. This could make the timer more accurate. e.g. void init_somewhere(void) { /* check your timer. this can be 16bit or 32bit */ gptStartContinuous(&GPTD4, 0xFF); } void doint_things(void) { gptGetCounterX(&GPTD4) = 0;...
by wurstnase
Thu Jan 25, 2018 7:18 am
Forum: User Projects
Topic: u8g2 ported to ChibiOS first draft - working
Replies: 9
Views: 2366

Re: u8g2 ported to ChibiOS first draft - working

Instead of F_TIM you could use STM32_SYSCLK or probably the one for the timer, when it is different. I guess there is somewhere a macro for it. I'm now doing it like this #define fsmc_time_ns2i(ns) \ ((((ns) * 1000) * (STM32_SYSCLK / 1000000) / 1000000) + 1) #define fsmc_delay(ns) \ gptPolledDelay(&...
by wurstnase
Fri Jan 05, 2018 4:04 pm
Forum: Development and Feedback
Topic: RTC on Nucleo64
Replies: 2
Views: 639

Re: RTC on Nucleo64

Hi Giovanni,

for the demo you are maybe right.
But the patch-file shouldn't hurt. It only defines the RTC clock frequency in the board.h file.
by wurstnase
Thu Jan 04, 2018 11:48 pm
Forum: Development and Feedback
Topic: RTC on Nucleo64
Replies: 2
Views: 639

RTC on Nucleo64

Hi, on newer boards, 2 or 3 years ago, there is a LSE installed. Please check: http://www.st.com/content/ccc/resource/technical/document/user_manual/98/2e/fa/4b/e0/82/43/b7/DM00105823.pdf/files/DM00105823.pdf/jcr:content/translations/en.DM00105823.pdf There are three possible default configurations ...
by wurstnase
Tue Dec 19, 2017 10:23 am
Forum: ChibiOS/HAL
Topic: Proper way to shutdown
Replies: 3
Views: 964

Re: Proper way to shutdown

- NVIC Done with the NVIC-loop?!? - SysTick OK, done. - Any peripheral (note that hosted application HAL would reset everything on start anyway but better do it cleanly) sdStop should do this? I guess I should also reset the pal also? Probably a halInit() will do this? - Clocks <- HAL does not do t...

Go to advanced search