techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

4.8K
active users

#AVR

0 posts0 participants0 posts today

🛠️ Après avoir galéré à détecter mon nouveau programmateur sur breadboard (avec avrdude et Atmel Studio 4), je me suis souvenu que j’en avais un autre, un mySmartUSB light de Laser & Co GmbH, bien en evidence sur mon atelier de poche.
Test avec avrdude → ça fonctionne enfin ! 🎉
Je posterai une autre photo du banc de prog sur breadboard quand j’aurai fini d'étendre mon linge 😉, et de mater Terrifier 3
#AVR #avrdude #AtmelStudio #électronique

Looking to find some folks who know about the events system and TCB timers on the newer #AVR microcontrollers. I am encountering some strange behaviour.

Specifically, as far as I can tell, only event system channels 0 and 1 seem to be connected to event inputs on the TCB timers on my ATtiny1626 chip. Code which works fine on those two channels fails to do anything if all I do is switch it to any of channels 2 to 5.

This is troubling because in my current application, I need 3 channels.

Working on embedded toy project which includes an 8-bit #avr MCU (AT90CAN128) - Its been quiet a while and in last years or so when it came to embedded STM32Fxxx where MCUs of choice...
The 8-bitter is fast enough, 128k are more then enough and it has everything on board I need. Ok I had to think of Interger vs Floating Point arithmetics here and there, but thats also fun - esp when programming in #rustlang.

tl;dr Too often we approach simple tasks with much too complex hard- & software

Hoping maybe the #Fediverse hive mind has some ideas about a problem.

My old workhorse Onkyo AV receiver died a few months back, and I replaced it with a Denon AVR-S970H. And it's driving me nuts.

My #TV is old, from the final generation of plasmas. Great picture. Sound is okay, but it only understands stereo and mono in uncompressed or AC-3 formats. Anything else sent to it - different codec, or multichannel/surround - is ignored and you get no sound. But that's okay!

Most of the things I watch that have stereo sound I just want to listen to through the TV anyways - TV shows, old non-spectacle movies, documentaries, all that sort of stuff. When I have a Big Movie with a #surround soundtrack, that's when I want to listen to it through the fancy speakers and the #AVR.

With my old #Onkyo, this was easy: the receiver always played the sound through itself and also sent it to the TV. If I wanted simple stereo, I'd just mute the receiver. If it was a surround sound thing, the TV just ignored it.

The #Denon... doesn't do this. I have to configure whether to output the sound through the TV, or through the AVR. There's no option for "both".

1/2

A few years ago, I started wondering if there is a way to program an AVR microcontroller without the Arduino IDE which is slow on older computers that I have. This was the starting point for the projects ucmf and yauclib:

While ucmf is a framework for compiling microcontroller projects similar to CMake, yauclib is for hardware abstraction similar to the Arduino software library. Both are in development and only support a few AVR microcontrollers so far (and Arduinos based on them).

I consider ucmf to be ready to use. yauclib still needs a lot of work, especially drivers and hardware-independent interrupt handling mechanisms.

The code for both projects is on Codeberg:

codeberg.org/ncc1988/ucmf

codeberg.org/ncc1988/yauclib

Summary card of repository ncc1988/ucmf
Codeberg.orgucmfucmf (microcontroller make frontend) is a tool to faciliate the compilation of programs for microcontrollers using make.

Gloomy day so rather than gardening I'm inside playing with electronics. I got a Z80 a while ago but I never used it. I'm going to stick it on a breadboard. I don't have any RAM or ROM chips but I do have some ATmega328 chips (the arduino ones) so I can program one of those to act like a memory. Maybe load new programs through the serial port, eh?

New version of the Freestanding implementation for #GCC 15.1.0 available

The code has been branched off and a docker container for #AVR is released.

Want to try out some of the proposals for #Freestanding C++?
Want to mess around with modules?
For the AVR processor (probably the one in your #Arduino board)?

#CPP #Embedded #CppModules

Docker image at hub.docker.com/repository/dock

Source code based on official GCC 15.1.0 with further Freestanding proposals baked in:

gitlab.com/avr-libstdcxx/gcc/-

Q: So, anything new? What'd you do today?

A: Oh, dug through menus in a new AV receiver to find its MAC addresses, configured my network DHCP server to give it a static address, and then wrote some iptables rules to keep that address from being able to reach outside the LAN. Pretty standard stuff.

Looking for a "DO NOT CONNECT THIS MACHINE TO THE INTERNET NO MATTER HOW MUCH IT NAGS" warning sign to print out.

Made a set of scripts and stuff to build the AVR compiler and avrdude. You can use them to build and install directly in your system, create a ubuntu package for it, or make a docker image. It's at a working state, which may be as far as I take it. At some point I may create releases and publish the images, but for now if you want to use it you gotta do it yourself. PRs welcome.

gitlab.com/strange-crew/images

There's also an example program build using cmake.

#programming #c #c++ #avr #arduino

GitLabStrange Crew / images / avr-tools · GitLabGitLab.com