Search found 12 matches

by atomiclama
Tue Feb 25, 2020 2:49 pm
Forum: Bug Reports
Topic: KEIL compilation problem
Replies: 7
Views: 15771

Re: KEIL compilation problem

Fantastic thank you.
by atomiclama
Tue Feb 25, 2020 10:50 am
Forum: Bug Reports
Topic: KEIL compilation problem
Replies: 7
Views: 15771

Re: KEIL compilation problem

Thanks alexblack this saved me a lot of time searching for the problem.

alexblack wrote:The problem is in the file "chcore_timer.h" - static inline functions use stStartAlarm and others. This file must be linked with extern "C" also.
[/code]


Giovanni Looking forward to the update of the file.
by atomiclama
Fri Dec 06, 2019 10:05 am
Forum: STM32 Support
Topic: LLD Versions
Replies: 4
Views: 3127

Re: LLD Versions

Great thanks
Now to move my git over to master.
Cheers
Andy
by atomiclama
Thu Dec 05, 2019 2:25 pm
Forum: STM32 Support
Topic: LLD Versions
Replies: 4
Views: 3127

Re: LLD Versions

Ah neat,

Is this something you plan on doing soon?
if not is there any git diff/pull requests/ etc so that I could do it on my local repo? A link would be good.

Thanks for the fast response.

Cheers
Andy
by atomiclama
Thu Dec 05, 2019 2:10 pm
Forum: STM32 Support
Topic: LLD Versions
Replies: 4
Views: 3127

LLD Versions

Hi
I'm using the STM32F405 chip and I'd like to use the UART idle detection to detect a break in data transmission on a UART.
My implementation will need to receive packets of data of indeterminable length that are separated by a pause in transmission.

It looks like this has only been implemented ...
by atomiclama
Mon Oct 21, 2019 11:36 am
Forum: STM32 Support
Topic: SPI CPP wrapper problems.
Replies: 10
Views: 7192

FIXED SPI CPP wrapper problems.

Ok school boy error

void aquire(void) {
spiAcquireBus(spip);
SPIConfig config;
config.circular = false;
config.end_cb = NULL;
config.cr1 = SPI_CR1_MSTR | SPI_CR1_BR_2;
config.cr2 = 0;
spiStart(spip, &config);
}

config needed to be const.

Thanks for you time Giovanni
by atomiclama
Sat Oct 19, 2019 2:58 pm
Forum: STM32 Support
Topic: SPI CPP wrapper problems.
Replies: 10
Views: 7192

Re: SPI CPP wrapper problems.

Giovanni wrote:Those options cannot fix anything, it is detection code.


Oh yeah I understand that.

Problem is how to find it :D
by atomiclama
Sat Oct 19, 2019 1:28 pm
Forum: STM32 Support
Topic: SPI CPP wrapper problems.
Replies: 10
Views: 7192

Re: SPI CPP wrapper problems.

OK with the following minimum TRUE in chconf.h my test code ran.

CH_DBG_SYSTEM_STATE_CHECK
CH_DBG_ENABLE_CHECKS
CH_DBG_FILL_THREADS

unfortunately the main code does not.

gets to _unhandled_exception:

ch.dbg.panic_msg == 0
by atomiclama
Sat Oct 19, 2019 12:20 pm
Forum: STM32 Support
Topic: SPI CPP wrapper problems.
Replies: 10
Views: 7192

Re: SPI CPP wrapper problems.

OK just enabled all debuggin options in chconf.h and now it is working with out a crash. :o

I'll go through and find which one is responsible for the change and report back.
by atomiclama
Sat Oct 19, 2019 12:02 pm
Forum: STM32 Support
Topic: SPI CPP wrapper problems.
Replies: 10
Views: 7192

Re: SPI CPP wrapper problems.

Nope spiStart is called from within the aquire method.


void aquire(void) {
spiAcquireBus(spip);
SPIConfig config;

config.circular = false;
config.end_cb = NULL;
config.cr1 = SPI_CR1_MSTR | SPI_CR1_BR_2;
config.cr2 = 0;
spiStart(spip, &config);
}