Search found 359 matches

by utzig
Sat Apr 01, 2017 4:29 pm
Forum: AVR Support
Topic: Cannot make software serial send more than one character
Replies: 27
Views: 15551

Re: Cannot make software serial send more than one character

Maybe this driver can be used to make a hardware independent software serial driver later on? I think it could be a complex driver on top of the EXT, GPT and PAL drivers. I'm with you on this. I'll try to clean it up and merge it initially as an AVR driver, but next we can step-by-step change the l...
by utzig
Fri Mar 31, 2017 1:16 am
Forum: AVR Support
Topic: Cannot make software serial send more than one character
Replies: 27
Views: 15551

Re: Cannot make software serial send more than one character

Ok, got it to work! You won't believe this but the problem is the ISR vector. Your where defining it like this: #define AVR_SDS_RX_VECT PCINT0_vect But it actually is this: #define AVR_SDS_RX_VECT INT0_vect So the MCU was resetting because there was not INT0 handler! Also in the block where you writ...
by utzig
Fri Mar 31, 2017 12:21 am
Forum: AVR Support
Topic: Cannot make software serial send more than one character
Replies: 27
Views: 15551

Re: Cannot make software serial send more than one character

I was able to get it working here on an ATmega1280 with your previously posted code (single state machine). I had to change the pin mapping and rolled back the config to get 4800 bps. const SerialConfig softserial_config = { UBRR(4800), /* No use, just a placeholder.*/ USART_CHAR_SIZE_8, 52, (1 << C...
by utzig
Thu Mar 30, 2017 10:21 pm
Forum: AVR Support
Topic: Cannot make software serial send more than one character
Replies: 27
Views: 15551

Re: Cannot make software serial send more than one character

If you end up solving the issue before I get started, even better! :)
by utzig
Thu Mar 30, 2017 6:24 pm
Forum: AVR Support
Topic: Cannot make software serial send more than one character
Replies: 27
Views: 15551

Re: Cannot make software serial send more than one character

Please copy your latest .c/.h version somewhere. I will try later today.
by utzig
Wed Mar 29, 2017 12:26 am
Forum: AVR Support
Topic: Doubt on I2C LLD
Replies: 5
Views: 3915

Re: Doubt on I2C LLD

That is not a ChibiOS thing. That is standard I2C. Your LCD manual may be providing the wrong address than. I'm curious, what LCD model is that? Where is the DS?
by utzig
Tue Mar 28, 2017 11:53 pm
Forum: AVR Support
Topic: Cannot make software serial send more than one character
Replies: 27
Views: 15551

Re: Cannot make software serial send more than one character

The following causes "U" to flood the console: while (true) { //debug("USART1\r\n"); //chThdSleepSeconds(1); chprintf((BaseSequentialStream*) &SDS, "USARTS\r\n"); chThdSleepSeconds(1); } Probably CPU resetting. Some non-handled interrupt maybe? I will try to test i...
by utzig
Fri Mar 24, 2017 12:23 am
Forum: AVR Support
Topic: Doubt on I2C LLD
Replies: 5
Views: 3915

Re: Doubt on I2C LLD

In I2C the address goes in the upper 7 bits and the LSb defines if it is a read or a write. So if you're reading 0xA0 you're actually sending to address 0x50.
by utzig
Thu Mar 23, 2017 2:21 pm
Forum: AVR Support
Topic: AVR os-less OSAL Topic is solved
Replies: 23
Views: 32833

Re: AVR os-less OSAL Topic is solved

Applied to trunk.
by utzig
Thu Mar 23, 2017 1:45 pm
Forum: AVR Support
Topic: Cannot make software serial send more than one character
Replies: 27
Views: 15551

Re: Cannot make software serial send more than one character

carldong,

If you don't mind, please create a pastebin/gist of this (with syntax highlighting), even better with the whole file/code. Also, it might be a non-AVR specific thing that is going wrong there which would have a better chance of being found by posting in General.

Cheers,
Fabio Utzig

Go to advanced search