Search found 121 matches

by wurstnase
Mon Sep 03, 2018 5:23 pm
Forum: Small Change Requests
Topic: clang: cast to 'GPIO_TypeDef *' from smaller integer type 'unsigned int' Topic is solved
Replies: 9
Views: 1477

Re: clang: cast to 'GPIO_TypeDef *' from smaller integer type 'unsigned int' Topic is solved

It's simple a palSetLine where this happened.

Just have an idea. Probably clang uses the stdint from my OS instead of the arm cross compiler.

I will check it later.

Btw.: It's not a problem while compiling. Just ctags/clang showing me an error.
by wurstnase
Mon Sep 03, 2018 2:03 pm
Forum: Small Change Requests
Topic: clang: cast to 'GPIO_TypeDef *' from smaller integer type 'unsigned int' Topic is solved
Replies: 9
Views: 1477

clang: cast to 'GPIO_TypeDef *' from smaller integer type 'unsigned int' Topic is solved

Hi, I've got ctags with my vim working. But now I get an error: cast to 'GPIO_TypeDef *' from smaller integer type 'unsigned int' In hall_pal_lld.h (in my case for STM32F103) I found /** * @brief Decodes a port identifier from a line identifier. */ #define PAL_PORT(line) \ ((GPIO_TypeDef *)(((uint32...
by wurstnase
Wed Aug 01, 2018 4:08 pm
Forum: ChibiOS/RT
Topic: _unhandled_exception when running a chThdSleep (running chibi from a bootloader)
Replies: 5
Views: 1113

Re: _unhandled_exception when running a chThdSleep (running chibi from a bootloader)

Can you please explain what you've done before and what you changed afterwards?
by wurstnase
Sun Jul 29, 2018 6:08 pm
Forum: ChibiOS/RT
Topic: _unhandled_exception when running a chThdSleep (running chibi from a bootloader)
Replies: 5
Views: 1113

Re: _unhandled_exception when running a chThdSleep (running chibi from a bootloader)

I had some issues when jumping from os-less chibi bootloader to a none chibios application. Finally I reset also CONTROL and PRIMASK register and going an extra round with a NVIC_SystemReset(). I write a magic code into a backup register (e.g. BKP->DR42 = 0x4242). If this key exist after bootup, I d...
by wurstnase
Tue Jul 24, 2018 3:21 pm
Forum: Open Discussion about the Commercial Options
Topic: Firmware updates on customer side
Replies: 3
Views: 1486

Re: Firmware updates on customer side

Thanks Giovanni, development and purchasing/production is in the same company. So for 1.) For a single unique STM32F103 I need 1 license. When there are probably 2 or more 'applications' on it, I also need just one for this core (e.g. firmware and bootloader). Additionally I need to count how many s...
by wurstnase
Tue Jul 24, 2018 11:56 am
Forum: Open Discussion about the Commercial Options
Topic: Firmware updates on customer side
Replies: 3
Views: 1486

Firmware updates on customer side

Hi, we are planning to buy the small commercial option for our project. I have currently no idea how the licensing will work with compiling etc. 1.) I buy 1000 licenses 2.) Doing coding 3.) Supply application with ChibiOS RT 3.1) Each application needs one license . some time later . 4.) Making upda...
by wurstnase
Sun Jul 15, 2018 1:59 pm
Forum: Bug Reports
Topic: Setting up GPT and changing interval Topic is solved
Replies: 8
Views: 1649

Re: Setting up GPT and changing interval Topic is solved

It takes some time and thinking for me also, that -1 is correct. Running the TIM with 10MHz. ARR = 1 0 1 0 1 0 1 0 1 ^ ^ ^ ^ So in this case the ARR resets with 5MHz. One tick takes 100ns. One period needs 200ns. (2x) ARR = 2 0 1 2 0 1 2 0 1 2 0 1 2 ^ ^ ^ ^ So in this case the ARR resets with 3.33MH...
by wurstnase
Fri Jul 13, 2018 9:04 am
Forum: ChibiOS/HAL
Topic: Serial Driver Timeout has no effect
Replies: 10
Views: 1442

Re: Serial Driver Timeout has no effect

I've overlooked. Now also found in the RT posix simulator:

Code: Select all

iqResetI(&SD1.iqueue);


My serial line gets some noise in the very beginning. That will solve it nicely. :)

Thanks again.
by wurstnase
Fri Jul 13, 2018 7:55 am
Forum: ChibiOS/HAL
Topic: Serial Driver Timeout has no effect
Replies: 10
Views: 1442

Re: Serial Driver Timeout has no effect

Probably it is a good idea to add a flush in the queue directly?

Something like:

Code: Select all

#define iqFlushI(iqp) \
do { \
  (iqp)->q_wrptr = (iqp)->q_rdptr; \
  (iqp)->q_counter = 0; \
} while(0)
by wurstnase
Thu Jul 12, 2018 2:19 pm
Forum: ChibiOS/HAL
Topic: Serial Driver Timeout has no effect
Replies: 10
Views: 1442

Re: Serial Driver Timeout has no effect

Perfect. Thanks.

Go to advanced search