Quantcast
Channel: acassis – Alan C. Assis
Browsing all 870 articles
Browse latest View live

How to extern PLL I2S audio clock on MCO2 pin at stm32_bringup() of NuttX

Basically I just this it: ... #include "chip.h" #include "stm32_gpio.h" #include "stm32_rcc.h" ... /* Extern PLLI2S clock on MCO2 (PC9) */ #define BOARD_CFGR_MC02_SOURCE RCC_CFGR_MCO2_PLLI2S #define...

View Article


Testing NuttX RTOS on QEMU for SMP ARM 64-bit

Compilitation: $ make distclean -j $ ./tools/configure.sh -l qemu-armv8a:nsh_smp $ make -j Running: $ qemu-system-aarch64 -cpu cortex-a53 -smp 4 -nographic -machine...

View Article


A nice board to control CNC

https://www.tindie.com/products/philba/picocnc

View Article

Debugging the STM32 I2S driver of NuttX to see how it works

I’m porting the I2S driver from STM32F4 to STM32F7 and decided to see how things work on STM32F4Discovery board. Now I can compare it with my driver for STM32F7: nxplayer> play /tmp/yes.wav...

View Article

Still debugging youuuu! Yep, still figuring out how to get I2S audio working...

More debugging… I was out of luck because nxplayer just blocks when I tried to play some audio, so I modified nxplayer_main.c to just read the argument from argv[1] and play it. This way I could start...

View Article


More I2S debugging

nsh> nxplayer NxPlayer version 1.05 h for commands, q to exit nxplayer> play /data/yes.wav nxplayer_playinternal: ============================== nxplayer_playinternal: Playing file /data/yes.wav...

View Article

STM32F7 OpenOCD and GDB debugging

(gdb) mon reset halt Unable to match requested speed 2000 kHz, using 1000 kHz Unable to match requested speed 2000 kHz, using 1000 kHz target halted due to debug-request, current mode: Thread xPSR:...

View Article

Step by step debugging NuttX on STM32F7 with OpenOCD

First remember to enable debug symbols on your firmware, otherwise GDB will not find the function names: $ make menuconfig Build Setup ---> Debug Options ---> [*] Generate Debug Symbols Now you...

View Article


Finally I2S on STM32F7 is not generating the DMA timeout

A�DE board_cs4344_initialize: minor 1 stm32_i2sbus_initialize: port: 2 i2s_dump_regs: I2S2: After initialization i2s_dump_regs: CR1:0000 CR2:0700 SR:0002 DR:0000 i2s_dump_regs: I2SCFGR:0000 I2SPR:0002...

View Article


Image may be NSFW.
Clik here to view.

Habemus I2S in STM32F7

View Article

Image may be NSFW.
Clik here to view.

Why is Linux and open source in general in danger now?

If you’ve been in a cave the last few days, you probably missed the biggest security flaw in Linux history: Back Door XZ-Utils (CVE-2024-3094)! Firstly, why is this so important? After all, backdoors...

View Article

Using ZModem on NuttX to transfer files

On NuttX side run “rz” command to receive files: nsh> rz**B0900000000a87c**B0800000000022d On Linux side run: $ stty 115200 cs8 -parenb -crtscts -F /dev/ttyACM0 $ sz –zmodem nuttx_logo.txt >...

View Article

Image may be NSFW.
Clik here to view.

Bluetooth Audio choking/cutting on Ubuntu 22.04

Since I installed Ubuntu 22.04 I noticed that my Bluetooth Headset audio was really bad, cutting all the time. Then I searched in many places how to improve it, but nothing worked. The suggestion to...

View Article


How to fix: esptool.py not found

I was getting this error while compiling NuttX for an ESP32 board: LD: nuttx CP: nuttx.hex MKIMAGE: ESP32 binary esptool.py not found. Please run: "pip install esptool" Run make again to create the...

View Article

How to create my own ESP32 bootloader partition?

Basically you need to create a CSV with the partition information and run a python script to build the binary partition: python3 gen_esp32part.py partitions.csv binary_partitions.bin This is the...

View Article


Flashing Meadow OS using meadow CLI 2.0

After building Meadow using the ./build.sh command, put the Meadow-F7Micro board in DFU mode and run: $ meadow firmware write -f nuttx/Meadow.OS.bin This is the output of the command: Writing firmware...

View Article

How to uninstall to Meadow.CLI

$ dotnet tool uninstall WildernessLabs.Meadow.CLI --global

View Article


COBS

COBS is a nice alternative to HDLC. Useful link: https://blog.mbedded.ninja/programming/serialization-formats/consistent-overhead-byte-stuffing-cobs/

View Article

Dumping Flash of Wio Terminal (SAMD51P19A)

After opening Wio Terminal I saw a pad pins near the Buzzer with these labels: SWDC SWDIO SWO RST GND 3V3 Then I soldered a DuPont femea wires and connected to JLink this way: SWDC SWCLK 9 SWDIO SWDIO...

View Article

Enabling CUDA support for Blender

I was trying to use my Laptop GPU with CUDA support to render images faster on Blender, but I receiving this error message when trying to enable it on Edit -> Preferences -> System -> Cycles...

View Article
Browsing all 870 articles
Browse latest View live


Latest Images