Search found 149 matches

by colin
Mon Aug 17, 2015 8:27 pm
Forum: Open Discussion about the Commercial Options
Topic: Sad to see more restricted commercial use
Replies: 11
Views: 3937

Sad to see more restricted commercial use

Hi Giovanni, I was personally saddened to read that the ChibiOS licensing has changed (from GPL+exception to straight GPLv3) and now requires registration for any commercial use (closed source), and then has limits on number of units produced unless a license is purchased. Just knowing that I can't ...
by colin
Tue Mar 31, 2015 11:18 pm
Forum: General Support
Topic: SPI send problems
Replies: 11
Views: 2962

Re: SPI send problems

Hi, You are right, I interpreted wrongly the figure 224 in my reference manual. Thanks. But I have another related question. Can I configure the SPI driver so that I can transmit data on the rising edge, but receive data on the falling edge? This is how SPI always works in modes 1 and 2. (CPOL=0 CP...
by colin
Tue Mar 31, 2015 8:19 pm
Forum: General Support
Topic: Time unit conversion macros
Replies: 4
Views: 969

Re: Time unit conversion macros

This is an example of a situation where Git and GitHub's features that make it easy to share, review, and merge changes would really shine. The author has made some apparently useful changes/fixes to ChibiOS but doesn't have time to formally submit the patches. But it would take only a few seconds t...
by colin
Fri Mar 27, 2015 10:09 pm
Forum: ChibiOS/HAL
Topic: sdcErase() in HAL 3.0
Replies: 16
Views: 2720

Re: sdcErase() in HAL 3.0

Actually it seems like the hypothetical sdcErase() and sdcSecureErase() have contrary characteristics. Suppose, as is generally the case, I don't need secure erase. Then I want to help the SD card controller do wear-leveling and optimize performance by marking unused regions of the flash as erased (...
by colin
Wed Mar 25, 2015 9:13 pm
Forum: General Support
Topic: Issues with memcpy
Replies: 5
Views: 1110

Re: Issues with memcpy

Occasionally you may encounter a compiler or toolchain bug. But most often when changing the compiler optimization level causes a change in behavior from C or C++ code, it indicates that the code is depending on some undefined behavior in the language. (See also A Guide to Undefined Behavior in C an...
by colin
Wed Mar 25, 2015 8:36 pm
Forum: General Support
Topic: chibios_rt::Mutex no unlock methods
Replies: 6
Views: 1255

Re: chibios_rt::Mutex no unlock methods

Thargon, is this the code you are talking about? void Mutex::unlock(void) { chMtxUnlock(&mutex); } void Mutex::unlockS(void) { chMtxLockS(&mutex); } This code has been in ChibiOS ch.cpp/ch.hpp since Aug 2014. Yikes, I think this is a bad bug: It seems that Mutex::unlockS() should call chMtx...
by colin
Tue Mar 24, 2015 7:42 pm
Forum: General Support
Topic: chibios_rt::Mutex no unlock methods
Replies: 6
Views: 1255

Re: chibios_rt::Mutex no unlock methods

Thargon, is this the code you are talking about?

Code: Select all

 void Mutex::unlock(void) {

    chMtxUnlock(&mutex);
  }

  void Mutex::unlockS(void) {

    chMtxLockS(&mutex);
  }


This code has been in ChibiOS ch.cpp/ch.hpp since Aug 2014.
by colin
Fri Mar 06, 2015 1:27 am
Forum: STM32 Support
Topic: chprintf argument warning message
Replies: 6
Views: 1069

Re: chprintf argument warning message

Are there multiple BaseSequentialStream types in that version of ChibiOS? I think at some point there was one in the HAL and one in the RT kernel. Maybe gcc is confused. Also is there more of the error message missing? It says "note:" which usually follows an actual warning or error messag...
by colin
Thu Mar 05, 2015 12:06 am
Forum: STM32 Support
Topic: Threads are dying, I cannot find the issue :(
Replies: 55
Views: 6201

Re: Threads are dying, I cannot find the issue :(

Now I am less sure. Something funny is going on: My firmware is stuck, I am pausing and resuming execution. Note how current thread changes, but p_current is always the same? http://i.imgur.com/SvvrUCC.png http://i.imgur.com/C20tIQI.png http://i.imgur.com/HuPW6gP.png #define ON_UNLOCK_HOOK onUnlock...
by colin
Wed Mar 04, 2015 11:17 pm
Forum: Development and Feedback
Topic: [QUALITY] The MISRA topic
Replies: 24
Views: 5333

Re: [QUALITY] The MISRA topic

Personally I would prefer the code to be clean and readable to meeting some draconian rules like "macros must be surrounded by parentheses". It seems like many of the MISRA rules may be more of a burden and cost to readability than is worth the benefit of being "MISRA compliant" ...

Go to advanced search