Search found 53 matches

by ceremcem
Wed Jun 19, 2019 8:14 pm
Forum: General Support
Topic: How to split halconf.h?
Replies: 5
Views: 425

Re: How to split halconf.h?

It seems that we are having a tiny communication issue here. Let me explain my proposal: Current Status 1. I'm using Chibi-project which is the command line alternative to the Chibi-Studio. 2. I'm copying the default halconf.h into application directory into the hardware declaration folder . 3. I'm ...
by ceremcem
Wed Jun 19, 2019 7:39 pm
Forum: General Support
Topic: How to split halconf.h?
Replies: 5
Views: 425

Re: How to split halconf.h?

Hi, That file is meant to be edited, it is a configuration file. Giovanni I'm trying to simplify reading and the upgrade process of application specific configuration by separating overrides from the rest of default configuration. That's why I don't want to modify the configurations in place , but ...
by ceremcem
Wed Jun 19, 2019 2:18 pm
Forum: General Support
Topic: How to split halconf.h?
Replies: 5
Views: 425

How to split halconf.h?

I prefer not to alter the default lines (eg. from "FALSE" to "TRUE"): /** * @brief Enables the PWM subsystem. */ #if !defined(HAL_USE_PWM) || defined(__DOXYGEN__) #define HAL_USE_PWM FALSE #endif ...but overwrite them at the beginning of "halconf.h": // ---------- Overw...
by ceremcem
Wed Jun 19, 2019 9:37 am
Forum: STM32 Support
Topic: spiExchange problem Topic is solved
Replies: 8
Views: 542

Re: spiExchange problem Topic is solved

Giovanni wrote:For me is hard to provide support on modified code
Giovanni


That's quite understandable. I was not aware that there were examples in the /testhal directory (I thought they were only for tests, so they are for ChibiOS developers, not for ChibiOS users). That was very useful to know.
by ceremcem
Wed Jun 19, 2019 7:57 am
Forum: STM32 Support
Topic: spiExchange problem Topic is solved
Replies: 8
Views: 542

Re: spiExchange problem Topic is solved

Giovanni wrote:Consider that those files are customized, it is not what is generated by ChibiOS XML processor.

Giovanni


I may not quite get how I should conclude this. Do you mean that the examples under /testhal are more reliable as a reference since they aren't autogenerated?
by ceremcem
Wed Jun 19, 2019 5:52 am
Forum: STM32 Support
Topic: spiExchange problem Topic is solved
Replies: 8
Views: 542

Re: spiExchange problem Topic is solved

It turns out I had a problem with configuring the IO pin alternate mode. This line helped me to make this fix : #define VAL_GPIOA_MODER (GPIOA_MODER_DEFAULT \ | PIN_MODE_ALTERNATE(GPIOA_SPI1_MOSI) \ - | PIN_MODE_INPUT(GPIOA_SPI1_MISO) \ + | PIN_MODE_ALTERNATE(GPIOA_SPI1_MISO) \ | PIN_MODE_ALTERNATE(...
by ceremcem
Tue Jun 18, 2019 3:55 pm
Forum: STM32 Support
Topic: spiExchange problem Topic is solved
Replies: 8
Views: 542

Re: spiExchange problem Topic is solved

Giovanni wrote:Are pins programmed in the correct alternate mode?

Giovanni


I think so: https://github.com/ceremcem/chibi-examp ... .h#L41-L67
by ceremcem
Tue Jun 18, 2019 3:30 pm
Forum: STM32 Support
Topic: spiExchange problem Topic is solved
Replies: 8
Views: 542

spiExchange problem Topic is solved

Hi, I'm trying to echo what I send via MOSI with MISO pin, so I just short circuited the MOSI and MISO pins. int main(void) { halInit(); chSysInit(); init_io(); // start the blinker thread chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL); spiStart(&SPID1, &test_spic...
by ceremcem
Tue Jun 11, 2019 10:11 pm
Forum: General Support
Topic: How to use custom GCC?
Replies: 5
Views: 493

Re: How to use custom GCC?

@giovanni,

New Debian installation couldn't make gcc toolchain work till I installed gcc-multilib via apt (apt-get install gcc-multilib). That's the reason I think they are correlated. However, currently I'm not able to debug further.
by ceremcem
Tue Jun 11, 2019 4:45 pm
Forum: General Support
Topic: How to use custom GCC?
Replies: 5
Views: 493

Re: How to use custom GCC?

FYI:

I've successfully reproduced the current issue on a newly installed Debian 9 stable distro inside VirtualBox. Any of the downloaded gcc toolchain (v5.3 or v8) makes the context switch work on STM32F030F4P6. I'm suspecting gcc-multilib here.

Go to advanced search