Search found 28 matches

by mikenick42
Thu Mar 11, 2021 1:53 am
Forum: AVR Support
Topic: Illegal opcode on ATtiny Topic is solved
Replies: 2
Views: 4040

Illegal opcode on ATtiny Topic is solved

Hi, I'm trying to modify the ATtiny demos to work on an ATtiny85 and keep getting: /tmp/ccqAUctt.s: Assembler messages: /tmp/ccqAUctt.s:255: Error: illegal opcode jmp for mcu avr25 make: *** [../../ChibiOS/os/common/ports/AVR/compilers/GCC/rules.mk:174: build/obj/chcore.o] Error 1 make: *** Waiting ...
by mikenick42
Thu Feb 25, 2021 12:29 am
Forum: AVR Support
Topic: C++ on the AVR port Topic is solved
Replies: 4
Views: 12336

C++ on the AVR port Topic is solved

Has anyone had any luck with C++ on the AVR port of ChibiOS? I know the STM port can do it but when I try renaming main.c and moving it in the Makefile I get: /usr/lib/avr/include/avr/io.h:623:6: warning: #warning "device type not defined" [-Wcpp] # warning "device type not defined&qu...
by mikenick42
Tue Jun 02, 2020 2:19 pm
Forum: Small Change Requests
Topic: LWIP improvements Topic is solved
Replies: 27
Views: 30520

Re: LWIP improvements Topic is solved

Giovanni, I can put together a patch with my changes for the iGMP flag. It's only a couple lines, but my concern is that for my quick-and-dirty solution, I added #include stlib.h to lwipopts.h because with the IGMP true I needed to define LWIP_RAND as (uint32)rand() which may or may not be the right...
by mikenick42
Fri May 29, 2020 4:56 pm
Forum: Small Change Requests
Topic: LWIP improvements Topic is solved
Replies: 27
Views: 30520

Re: LWIP improvements Topic is solved

Hi all, I'm curious about what happened with #7 from geebee's driver. I'm trying to get a PTP driver working with multicast and when I add the NETIF_FLAG_IGMP flag to lwip_thread.c, everything seems to work. It looks like you may be working on a more flexible solution to the problem though, and I wo...
by mikenick42
Sun May 06, 2018 1:59 am
Forum: AVR Support
Topic: 18.2 on an Arduino Uno Topic is solved
Replies: 8
Views: 26220

Re: 18.2 on an Arduino Uno Topic is solved

Yeah, I saw the verification fail when I was about halfway through that last post. It looks like the '-D' flag was added to the default avrdude command generated by the Makefile. So the flash was never being erased when I reprogrammed it. If I take that out everything works fine. Thanks for the help.
by mikenick42
Sat May 05, 2018 12:00 am
Forum: AVR Support
Topic: 18.2 on an Arduino Uno Topic is solved
Replies: 8
Views: 26220

Re: 18.2 on an Arduino Uno Topic is solved

I have no reason to believe there's anything wrong with my hardware. I'm using a generic UNO clone and a usbASP clone. They've both worked fine in the past. I have the same results with both the RT and NIL projects. When I run 'make program' on the stable_16.1.x branch everything works fine, but whe...
by mikenick42
Mon Apr 30, 2018 11:27 pm
Forum: AVR Support
Topic: 18.2 on an Arduino Uno Topic is solved
Replies: 8
Views: 26220

Re: 18.2 on an Arduino Uno Topic is solved

Thanks. I can help if there's anything you need me to test.
by mikenick42
Mon Apr 30, 2018 3:20 am
Forum: AVR Support
Topic: 18.2 on an Arduino Uno Topic is solved
Replies: 8
Views: 26220

18.2 on an Arduino Uno Topic is solved

Hi, It's been a while since I've been able to work on any of this and am having some issues getting the 18.2.x stable branch to run on an Uno. If I revert to stable_16.2.x I can run the demos and everything seems fine, but when I checkout stable_18.2.x, the board seems to program but the led doesn't...
by mikenick42
Thu May 04, 2017 3:28 am
Forum: AVR Support
Topic: Fast system tick on AVR
Replies: 8
Views: 5482

Re: Fast system tick on AVR

Hi Giovanni, There are a couple of 8bit counters and one 16bit counter. It looks like in tickless mode the 16bit counter is used, and in periodic mode an 8bit counter is used. st_lld.c has the divider for tickless mode hard-coded to 1024. I played with that quite a while ago and I think had some suc...
by mikenick42
Wed May 03, 2017 2:39 am
Forum: AVR Support
Topic: Fast system tick on AVR
Replies: 8
Views: 5482

Re: Fast system tick on AVR

Hi Giovanni, I've used the hal PWM drivers before and they're definitely nice. But for this project I'm driving an SSR that has an AC load. So once I enable the output line, the load won't turn back off until there's a zero-crossing, so I don't think traditional PWM would work. I think I want basica...

Go to advanced search