July 01, 2025, 01:14:59 AM

Recent posts

#21
Neo6502 / Neo6502 / Assembler Programmin...
Last post by mscha - June 22, 2025, 10:35:08 AM
I installed the neo6502-firmware-1.0.0 on a windows laptop using ubuntu (wsl). 
I found ./src/arch/neo6502/+diskimage/sandbox/.obj/apps/+asm/asm
Is this an emulator which works similar to the "asm" I run on my neo6502?
#22
New Products release / New products in stock
Last post by olimex - June 20, 2025, 01:16:55 PM
It's Friday and we got some new products for you: USB-C hub, card reader, breadboard version of SHTC3 sensor, KFL05 and KP05 bearings https://olimex.wordpress.com/2025/06/20/friday-new-products-usb3-hub-with-usb-c-connector-usb-c-card-reader-shtc3-sensor-for-breadboard-kfl05-and-kp05-bearings/ #usb #hub #cardreader #kfl05 #kp05
#23
A20 / Re: LIME2 sun4i-codec not work...
Last post by LubOlimex - June 20, 2025, 08:15:21 AM
Just the first two + reboot. I didn't use olinuxino-overlay, audio was already enabled without running anything. I didn't use olinuxino-overlay at all.

About the hardware we connect both right and left channels but I guess for mono just one is ok, as long as it is setup properly in the alsamixer settings. We have resistors and capacitors in series to ground tho, to filter. This is the excerpt from the MICRO board that comes with headphones output:

https://imgur.com/a/CmWlsZv

#24
A20 / Re: LIME2 sun4i-codec not work...
Last post by zeallin - June 20, 2025, 05:46:38 AM
Thank you very much my friend!

1. For the audio output, I just have a add-on board which wired the HPOUTL and HPCOM from GPIO-1 to a speaker (mono) , which works before
2. Ohh I will try to do apt update and apt upgrade, and see if the boot info is correct
3. So the steps you used should be (please correct my if I am wrong):
- use a fresh image to boot
- run apt update and apt upgrade, then u-boot-install
- use olinuxino-overlay to turn on sun4icodec
#25
A20 / Re: LIME2 sun4i-codec not work...
Last post by LubOlimex - June 19, 2025, 11:20:10 AM
Ok here is some empirical info since I tested today with same board T2-OLinuXino-LIME2-IND and LIME2-SHIELD and some wav file. It played just fine (there was also sound on the headphones attached):

root@a20-olinuxino:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: sun4icodec [sun4i-codec], device 0: CDC PCM Codec-0 [CDC PCM Codec-0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@a20-olinuxino:~# aplay file_example_WAV_5MG.wav
Playing WAVE 'file_example_WAV_5MG.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

Didn't test before updating the image tho. I first ran apt update and apt upgrade to be sure I have the latest image, then rebooted. Didn't change anything in the overlays or settings.

You can find the wav file I used here:

https://ftp.olimex.com/TEMP/MP3test/file_example_WAV_5MG.wav

This means that audio is supported in the LIME2 images and config even tho it has no audio jacks by default. Here are few ideas to try:

1) Try re-writing a fresh image and running apt update and apt upgrade like me and test again. Maybe some configuration via olinuxino-overlay or other change caused the issue.

2) Maybe check if the board is properly recognized at start of boot, like this is what I got at boot:

"U-Boot 2021.04+olimex-1-20250305.102147 (Mar 05 2025 - 10:22:57 +0000) Allwinner Technology

CPU:  Allwinner A20 (SUN7I)
ID:    T2-OLinuXino-LIME2-IND Rev.N
SN:    00037DXX
MAC:  30:1F:9A:D1:XX:XX
I2C:  ready
DRAM:  1 GiB
MMC:  mmc@1c0f000: 0
"

You should get revision L, of course.

3) Since you are not using LIME2-SHIELD maybe also check the schematic of LIME2-SHIELD and compare with your hardware setup.
#26
A20 / Re: LIME2 sun4i-codec not work...
Last post by LubOlimex - June 19, 2025, 10:01:33 AM
So how is the audio output connected then? Do you have drawing or schematic? Is it similar to what we did in A20-OLinuXino-MICRO?
#27
A20 / Re: LIME2 sun4i-codec not work...
Last post by zeallin - June 19, 2025, 09:08:42 AM
Thank you very much my friend!

1. I am not using LIME2-SHIELD since we used GPIO-1 with our addon board
2. The overlay of LIME2-SHIELD seems not found in the olinuxino-overlay tool
3. It is the amazing T2-OLinuXino-LIME2-IND, version Rev.L
#28
JTAG / Re: ARM-USB-TINY-H working / A...
Last post by LubOlimex - June 19, 2025, 08:23:45 AM
Even with cabling confirmed working it can be either a problem with this specific JTAG or wiring of this specific board or config for your custom board or OCD JTAG (or both).

My advice is to also test both JTAGs with some simpler and standard STM32 board (like some discovery board or similar) if you can borrow and then we can deduct if it is a problem with this specific JTAG or something related to the wiring or config of the target.
#29
JTAG / Re: ARM-USB-TINY-H working / A...
Last post by jhersh - June 18, 2025, 05:32:50 PM
The board is self powered. As I mentioned, I used the identical short cable as I used on the TINY which works great. Yes, it is attached directly to the OCD, just like I did with the TINY. I haven't used the OCD device in years, so I'm not sure if it is working for other targets, but I would expect that whatever is going on would also be the same issue on another board.
#30
A20 / Re: LIME2 sun4i-codec not work...
Last post by LubOlimex - June 18, 2025, 02:38:38 PM
I am not sure if audio is enabled for the LIME2 since the board has no audio jacks, I think it is not enabled on purpose to have more free GPIOs. Are you using LIME2-SHIELD? Try enabling the overlay for LIME2-SHIELD instead. It might be in olinuxino-overlay. Which variant of the LIME2 board? I will test too.