hybridfree/eevblog-posts huggingface dataset:
Mini keyring flashlights - possible to reprogram the MCU? - Page 1
Forum section: electronics / general

author: SolderSucker
author_rank: Regular Contributor
timestamp: September 10, 2025, 01:54:35 pm
content: I have one of these mini flashlights as featured in a Big Clive video a few months ago:Is there any way to reprogram the MCU? Unfortunately the markings on the MCU have been erased.I ask this because in order to switch the flashlight on you need to rapidly double click the button. Due to some arthritis pain in my fingers I find this a pain (literally) but if I could program the MCU to accept a slightly less rapid double click that should be good.I love the flashlight, the rapid double click to switch it on is my only slight issue.

author: squadchannel
author_rank: Frequent Contributor
timestamp: September 10, 2025, 02:09:38 pm
content: instead of hunting down countless Chinese chips, it might be easier to just use an ATtiny. The tiny404, 414, or 424 are 14-pins, but it depends on the pin layout.

author: BennoG
author_rank: Frequent Contributor
timestamp: September 14, 2025, 04:57:22 pm
content: I have the same one, if you long press it it will also go on until you release it.Benno
Debugging Raspberry Pi Pico SPI with microSD (with Oscilloscope) - Page 1
Forum section: electronics / general

author: SC
author_rank: Newbie
timestamp: August 29, 2025, 09:00:28 am
content: Hello everyone,I'm trying to understand why the adafruit microsd connected to raspberry pi pico w with SPI is not working.So in IMG01 in cyan is the CS (GPIO13), in yellow the SCK (GPIO10) and in violet the MOSI or TX (GPIO11).Same color in IMG02, but in IMG02 the signal is from raspberry pin (without connecting to microSD), while IMG01 is connecting also to the SI pin of microsd. Why this difference?Thanks

author: dobsonr741
author_rank: Frequent Contributor
timestamp: September 10, 2025, 01:11:47 am
content: You have 4 channels, turn on SPI protocol decoding. Threat the scope as logic analyzer.

author: iMo
author_rank: Super Contributor
timestamp: September 10, 2025, 07:00:43 am
content: With an sdcard you have 4 signals - CS (or SS), MOSI, MISO, CLK.SPI protocol when writing the data1 from the MCU to the sdcard (MOSI) it also reads the data2 from the sdcard to the MCU (MISO) with the same clock (so after writing data1 you have also read data2).When the sdcard is not connected the MISO is floating.If you want to experiment without the sdcard connected wire a 10k pullup resistor to MISO and you have to read FF hexa.
Which MCU/MPU would you recommend for Edge AI (IoT + object detection)? - Page 1
Forum section: electronics / general

author: jh990714
author_rank: Newbie
timestamp: September 08, 2025, 09:32:17 am
content: Hi everyone,I'm looking into doing some Edge AI work for an IoT project (think simple object detection like defect detection).So far, I’ve looked at a few options:STM32N6, Kendryte K210, Allwinner V853I’m mainly interested in:Running light object detection models (YOLO-tiny, MobileNet)Has anyone here used these chips in practice, or is there another MCU/MPU you’d recommend for Edge AI IoT projects?Thanks!

author: brucehoult
author_rank: Super Contributor
timestamp: September 08, 2025, 03:38:04 pm
content: Kendryte K210 is getting pretty old now. I don't think there's anything it can do that a CV1800B / SG2000 / SG2002 won't handle?

author: mark03
author_rank: Frequent Contributor
timestamp: September 08, 2025, 04:29:33 pm
content: All of them! At least, if you believe the marketing material. I'm far more curious which MCU to use if I *don't* need Edge AI...</sarcasm>Sorry... I can imagine it's also frustrating to choose between vendors when your use case is the only thing they are advertising, all day long.STM32N6 looks nice, but (and I wonder how true this is in general), the AI aspects are locked down tight. So IMO it would come down to whose software tools you like best, since you'll be stuck using them. Or, more likely, whose tools you hate least, if the quality of their driver stacks is anything to go by.

author: fchk
author_rank: Frequent Contributor
timestamp: September 09, 2025, 10:34:43 am
content: Quote from: jh990714 on September 08, 2025, 09:32:17 amNVidia Jetson Orin NX, maybe paired with a Hailo 8 Module.Cuda support is excellent in this field - almost everything supports it.At work we use an AGX Orin (the bigger version) with two Hailo modules and two cameras for surveilance applications. The GPU mainly runs image preprocessing tasks, and the Hailos do object recognition for the two streams.

author: dobsonr741
author_rank: Frequent Contributor
timestamp: September 10, 2025, 01:09:43 am
content: Perhaps share some details of the project. Otherwise every responder optimizes to there own preferences, which they will not state. Personal learning? Fortune 100 corporate project? Somewhere in between?

author: darkspr1te
author_rank: Frequent Contributor
timestamp: September 10, 2025, 06:14:59 am
content: this might help you get started ,https://hackaday.com/2025/09/07/image-recognition-on-0-35-watts/darkspr1te
jlink question - Page 1
Forum section: electronics / general

author: bigendian
author_rank: Regular Contributor
timestamp: September 04, 2025, 12:18:27 pm
content: Hi,i have here a jlink clone i bought several years ago on ebay, when i was a newby on such pods and thought it was a regular jlink. So i was in total good faith.Of course at every fw upgrade it get blocked by Segger. I can re-flash it by jtag and have it working again, but it is somtehing i don't like/want to do.So i have some job boards with cortex-M "jlink" connector. Do you think i can use some other cheaper programmer ? Or, better to get a regular jlink ?Regards,angelo

author: GromBeestje
author_rank: Frequent Contributor
timestamp: September 04, 2025, 08:41:58 pm
content: When you re-flash, make sure you match the serial number and licenses. If they mismatch it will pop up a clone detected message.

author: thm_w
author_rank: Super Contributor
timestamp: September 04, 2025, 11:55:15 pm
content: You can:- Do whats suggested above- Buy a newer clone- Buy a real jlink $500- Buy jlink mini $50- Build/buy any generic programmer that will work with your mcu (blackmagic probe, stlink, etc.)https://www.eevblog.com/forum/microcontrollers/sts-gdb-server-probe-rs-jlink-etc-what-are-the-differences-between-them/

author: GromBeestje
author_rank: Frequent Contributor
timestamp: September 05, 2025, 07:45:04 am
content: If your MCU is supported by OpenOCD, it will work with a JLink clone without issues.

author: hans
author_rank: Super Contributor
timestamp: September 05, 2025, 11:18:29 am
content: If you just need basic program/debug functionality, use OpenOCD instead of JLink instead.OpenOCD can talk through various USB dongles, including JLink at a low-level (more like bitbanging), but it will not use JLink's APIs. Those APIs contain accelerated routines for certain targets, which is faster, but also means support is limited. E.g. the DLLs for JLink v8 doesn't support Cortex-M7 or the M23/M33 cores, while OpenOCD does (if your MCU family has support, which may lack behind a bit).A second benefit is that you're not using JLink's software outside of the TOS, don't get hammered by firmware updates, etc.

author: bigendian
author_rank: Regular Contributor
timestamp: September 05, 2025, 02:01:37 pm
content: Hi friends, thansk a lot.issue is that some sw (maybe jlink tools only ?) see the old fw version and update it, this is what happend.Yestyerday, an umbrella python tool used from the customer called jlink tools probably, that upgdraded/blocked the jlink.Would do as suggested- will reflash the clone to be working back-- ordered a blackmagic probeThanks a lot
MCU Due-Core and Display 4dsystems - Page 1
Forum section: electronics / general

author: zGugaFarias
author_rank: Newbie
timestamp: August 27, 2025, 01:44:41 pm
content: I have a project using a Due Core and a 4D System display. Currently, it is working as follows: the texts to be displayed on the display are created within the Workshop 4 display IDE. However, for practical reasons, I am trying to create an image dictionary in order to form words from the combination of images. I already have the images with all the characters I want, but I don't know how I should integrate them into the code to make it work as expected.
The world's smallest microcontroller! - Page 1
Forum section: electronics / general

author: Picuino
author_rank: Super Contributor
timestamp: August 26, 2025, 11:51:08 am
content: For now, this is the smallest microcontroller on the market.Arm 32-bit Cortex-M0+ CPU with 16kB of flash and 1kB of SRAM. Size: 1.3776 mm² 1.6 x 0.861mm*https://www.ti.com/about-ti/newsroom/news-releases/2025/2025-03-11-ti-introduces-the-world-s-smallest-mcu--enabling-innovation-in-the-tiniest-of-applications.html*https://www.ti.com/product/MSPM0C1104?hqs=epd-msp-procbr-mspm0_small-pr-pf-ew25-wwe#featuresI have heard of even smaller microcontrollers (Smartdust), but I have not been able to find any documentation on them.

author: squadchannel
author_rank: Frequent Contributor
timestamp: August 26, 2025, 12:08:50 pm
content: https://www.eevblog.com/forum/microcontrollers/think-big-with-the-worlds-smallest-microcontroller
ESP32-S3-WROOM-1U Soc, vs modules in the wild.   - Page 1
Forum section: electronics / general

author: viper
author_rank: Regular Contributor
timestamp: August 19, 2025, 05:37:35 am
content: I am working on a light commercial project. I think I have homed in in the S3, primarily for the audio DSP work I need for now, but also I don't mind building and developing around a flagship that could serve other purposes, or have more power on tap if ever needed.With that said, I am still open to other idea, but I have another thread where we went through this. In this thread, I am mostly focused on the listed Soc vs other modules or Soms that I might want to consider for a really good price? What I am mostly after is the external omni antenna will be a must anyway as it will be in an enclosure. Other is the WROOM is just a chip and I'd almost prefer to have it on a very basic board with buttons so it could get programmed, tested, and inserted in a custom PCB as a 'daughter board'.I know there are lots of options, but most are geared towards DIY and proto work, and I'd like to find options with good qty discounting or other options. I could go a totally different direction and consider these installed in a custom PCB and we program them, but my post is my thought at the moment.If I was dreaming, I might want a module with header pins, basic switches, and maybe some status LEDs, that's about it. But I might find adding a socket to another PCB is just too expensive.But even for development, I guess I do need to ask for ideas or thoughts on Dev kits for these? I would have to toss it on a bread board anyway but I just can't keep up with all the options out there.Sorry if this thread feel vague. I'm stirring the witches pot right now.
AVRDUDE_PROG - Page 1
Forum section: electronics / general

author: AVRDUDE_PROG
author_rank: Newbie
timestamp: August 22, 2025, 08:59:00 pm
content: Hi everyone,I’d like to share a small project that may be useful for AVR developers.👉 avrdude_prog is a graphical user interface (GUI) for avrdude, designed to make flashing and configuring AVR microcontrollers easier.✨ Features:Read/write Flash and EEPROM memoryConfigure fuse bits and lock bits with a visual interfaceSupports multiple programmers and chipsHex file upload with just a few clicksWorks on WindowsLightweight and portable (no installation required)🎯 Who is it for?Hobbyists working with Arduino/AVR boardsEmbedded developers who prefer a GUI over command lineAnyone who wants a quick and visual way to configure fuse bits📥 Download & Docs:Official website:https://yourdevice.net/proekty/avrdude-progForum (support & questions):https://yourdevice.net/forum/viewtopic.php?f=18&t=1348Telegram group:https://t.me/+RfIPhxqswnJlYTUyYouTube tutorials:https://youtube.com/playlist?list=PLyqq0R-QRbOcfeLSFlZ_9sPLlgI5uY2SjDOWNLOAD AVRDUDE_PROG
stm32c071 2.5MSPS ADC question - Page 1
Forum section: electronics / general

author: RobinD
author_rank: Newbie
timestamp: August 15, 2025, 09:04:17 am
content: Hi all.I'm currently using an STM32C071 for a project. It's specs show the ADC can run at 2.5MSPS.I don't need that but was just curious. How the hell are you supposed to use the ADC running at that rate?There is not much time to do anything useful between samples?The max clock frequency is only 48MHz on the processor.Maybe it's so you can grab a sample very quickly?Is there something I'm missing?CheersRob

author: cv007
author_rank: Frequent Contributor
timestamp: August 15, 2025, 10:38:27 am
content: DMA.

author: RobinD
author_rank: Newbie
timestamp: August 15, 2025, 12:52:08 pm
content: How is that going to help. Once DMA has moved the data wherever it needs to go you still only have 20 clock cycles before the next ADC value comes in!

author: ataradov
author_rank: Super Contributor
timestamp: August 15, 2025, 02:26:14 pm
content: You have two buffers. One is filled by the DMA, the other one is processed. This reduces processing overhead.And in many cases you need to sample a short buffer and just do analysis on that.

author: SiliconWizard
author_rank: Super Contributor
timestamp: August 15, 2025, 02:52:23 pm
content: Exactly, or sometimes you just need to be able to get one sample of a signal triggered by some event with a very short conversion time and that's what you can get with a faster ADC.

author: hans
author_rank: Super Contributor
timestamp: August 16, 2025, 09:49:53 am
content: I'd say this is more for burst acquisition yes.48M/2.5M=19.2 cycle/sample. Only useful for the simplest of signal processing tasks. Maybe like averaging/oversampling etc.If you oversample by a factor 5 at say 4 cycles/sample cost, that leaves 76 cycles per ADC sample to process. That already opens a lot more possibilities.But I think the real use is in the hardware sequencer. E.g. configure 4 channels for the ADC to sequence, which can be completed within a few us, and then fire an interrupt or transfer with DMA to some (circular) buffer.This chip also has a advanced motor control timer, which could make it a low-cost BLDC or stepper driver. FOC algorithms may need current sense per output phase which is sampled synchronous to the PWM drive signals. Here a 2us ADC sampling window is still quite significant at e.g. 25kHz PWM (40us period).
esp32p4: VBAT, RTC and CHIP_PU - Page 1
Forum section: electronics / general

author: exe
author_rank: Unknown
timestamp: August 11, 2025, 08:02:55 pm
content: Hi!I'd like to to have my RTC ticking while P4 is off. So, I figured I need to supply VBAT. Question: does CHIP_PU need to be low or high? Or, better, is clock ticking when CHIP_PU is low? What about LP cores?My current understanding is the following, but I can't confirm it as I don't have a devboard where VBAT would be separated from 3v3 rail.- clock is always ticking as long as VBAT is provided- both HP and LP cores only work when CHIP_PU is high- to enable power saving mode, LP and RTC, I need:- apply power to VBAT- set CHIP_PU high- DO NOT provide power to LDOs or any other pins (3v3 rail)
ESP8266 NodeMcu V3 PCB - Schematic - Page 1
Forum section: electronics / general

author: 2X
author_rank: Frequent Contributor
timestamp: August 09, 2025, 05:35:06 pm
content: Hello,I have the below ESP8266 NodeMcu V3 and I can't find an exact schematic for this version. I found one (on the attached image) but it has a crystal X1 where is not in my PCB and also don't contain the resistor networks where are in my PCB. Do you know where I could an accurate schematic for this version?I want the schematic because I want to replicate part of this PCB in order to create my own PCB to fit in enclosure where I want and contain some other components on it like relays etc.Wireless Module NodeMcu V3 V2 Lua WIFI Development Board ESP8266 ESP32 With Pcb Antenna And Usb Port ESP-12E CP2102https://www.aliexpress.com/item/1005002350648139.html?spm=a2g0o.order_list.order_list_main.262.16911802Z24fAf#nav-specification

author: DLJ
author_rank: Contributor
timestamp: August 09, 2025, 05:46:57 pm
content: The board that you show, does have tracks and a footprint for X1. X1 connects to pins 7 and 8 of the CH340. The device is not fitted on your board and the pads seem to be covered with solder resist. So I would suspect that the schematic does match your board.
Freescale 9SO8PA16 PORT A2 not a high z input??? - Page 1
Forum section: electronics / general

author: Circlotron
author_rank: Super Contributor
timestamp: August 12, 2025, 11:08:51 am
content: Got this setup with the above micro where switch contacts go to several inputs. First a 5k1 pullup to +5 volts, then a series 470K then a 100nF to ground, then to the IO pin. Works great and I've been using this arrangement in noisy environments for years.Drew out a new board and this time I used port A2 as an input because it made for a convenient board layout. Because of the 470K that is part of the input low pass filter the pin only gets pulled down to +4.3V from +5V. All the other inputs are fine.This port A2 pin when used as an output is open collector, but I'm most definitely using it as an input only. It can be used as some sort of serial data TX or RX. I'm not interested in that. Just want to use it as a plain vanilla digital input. I've definitely got the DDRs right. Written in assembly.Have I overlooked something? Would be a nuisance to get a new board made just because of this.
Nordic nrf52840 pro micro board not recognized - Page 1
Forum section: electronics / general

author: hal9001
author_rank: Regular Contributor
timestamp: August 07, 2025, 10:13:11 am
content: I picked up a pro micro board and want to use the nrf connect SDK in Visual Studio. Im able to build sample project but the board wont be recognized even when I put it in bootloader mode by connect rst pin to gnd fast 2 times . Arduino ide is able to recognize and program it ok. What am I doing wrong in VS?

author: PhilipGilmore
author_rank: Newbie
timestamp: August 07, 2025, 10:27:44 am
content: As far as I know, the nrf connect sdk only detects boards with JLink-based integrated debuggers, like the nRF52840-DK. Your board does not have a debugger on it.

author: hal9001
author_rank: Regular Contributor
timestamp: August 08, 2025, 12:41:28 am
content: Quote from: PhilipGilmore on August 07, 2025, 10:27:44 amCheers!
Chipset Recommendation for a Custom eSPI Diagnostic Card - Page 1
Forum section: electronics / general

author: jh990714
author_rank: Newbie
timestamp: August 06, 2025, 03:15:28 am
content: I'm planning to build a custom diagnostic card for modern PC motherboards that connects to the eSPI bus.I'm looking for a suitable chip or a good design approach to implement the following two key features:[Required Features]eSPI to UART: To monitor serial console logs.eSPI Port 80h POST Code Analysis: To display boot codes.[My Question]Are there any recommended chips or design methods that can handle both of these functions?I'm having trouble finding the right solution, as simple eSPI-to-UART bridge chips don't seem to support POST code analysis, while full Super I/O chips feel like overkill with too many features I don't need.I would appreciate any advice from those with experience in this area.Thank you
Modern equivalent of STLC2690 (MCU with Bluetooth and FM receiver) - Page 1
Forum section: electronics / general

author: microvia
author_rank: Regular Contributor
timestamp: August 04, 2025, 09:08:27 am
content: Hi,I am looking for a modern equivalent of ST Micro's STLC2690 with a Bluetooth audio 5.x audio receiver and an FM radio receiver (RDS not mandatory).I am currently using a PIC16F MCU along with a SI4702 chip, and an external KRC-86B Bluetooth 4.0 module. I would like to find an MCU which integrates all this.Some JL (Jieli) AC69xx chips do it, but don't allow tuning to a specific channel through I2c (they only use a 'next channel' pin).I will need zero-crossing detection as well (or at least the equivalent of the TxCKI pin on PICs for counting pulses).If capacitive sense is available it's even better.Any recommandation greatly appreciated. Thanks.
STLINK external loader for STM32H743 & QSPI W25Q256  PB2/PB10/PD11/PD12/PE2/PD13 - Page 1
Forum section: electronics / general

author: up8051
author_rank: Frequent Contributor
timestamp: August 03, 2025, 07:16:44 pm
content: Hello,Does anyone have a ready to use .STLDR file for STLINK in the following configuration?- STM32H743- W25Q256CLK - PB2nCS - PB10IO0 - PD11IO1 - PD12IO2 - PE2IO3 - PD13So far I have been using JLINK, but in the configuration where nCS was connected to PB6,unfortunately the new PCB has moved the pin to PB10 and JLINK does not support such a configuration.I found a project on GitHub by Clive Turvey, but it doesn't work properly.https://github.com/cturvey/stm32extldr/tree/main/h7_w25q256Reading and erasing work, but attempting to write always results in a verification error.The connection between the uP and the QSPI Flash is correct because my firmware reads the memory ID and can also read and write to it.I need to load bitmaps into memory at the production stage.BR JarekC
Error No 16148 - Page 1
Forum section: electronics / general

author: nassih
author_rank: Newbie
timestamp: August 02, 2025, 11:10:00 am
content: hi.I want to flash the r5f212ba of the r8c family with usb uart whose connection is below but I have an error (Error No 16148: Kernel Error Response: 0x0 0x0 Baud Rate change failed - check clock and baud rate)tanks
How to program the JieLi MCU AC695X using open source jl-uboot-tool? - Page 1
Forum section: electronics / general

author: kprasadvnsi
author_rank: Newbie
timestamp: June 08, 2025, 03:27:29 am
content: I have a firmware update package with isd_download.exe that works on Windows. These are files I have..app.binbr23loader.bincfg_tool.bindownload.batisd_config.iniisd_download.exejl_isd.binjl_isd.fwota.binuboot.bootAnybody know how to flash it using the jl-uboot-tool ?https://github.com/kagaimiq/jl-uboot-toolThis is what I got for my MCU when using jl-uboot-tool.```Searching for some JieLi devices..Found a device: BR23 UBOOT1.00 (1.00) at /dev/sg0Waiting for [/dev/sg0] try! ok (BR23 UBOOT1.00 1.00)Chip: BR23 - AC635N/AC695N seriesRunning loader with argument 0x0001.The Loader has been successfully installed.================ Quick info ==================** BR23 (AC635N/AC695N series) **>> Chip key: 0xFFFF <<- Online device:ID: 0xeb6014Type: 0x03 (SPI NOR flash on SPI0)==============================================.------------------------------------------------------.| _____________ .------------------------------. || /___ __ ___/ | JieLi UBOOT Tool || / / / / | - Das Shell - || __ / / / / `------------------------------. || / /_/ / / /____ -*- JieLi tech console -*- | || `____/ /______/ Type 'help' or '?' for help. | || `------------------------------' |`------------------------------------------------------'=>JL:```

author: zezo2030
author_rank: Contributor
timestamp: August 01, 2025, 06:49:22 pm
content: hithey have a support team on ding talk app.
New to eSPI – Capturing BIOS POST codes with Fintek F81216E? - Page 1
Forum section: electronics / general

author: jh990714
author_rank: Newbie
timestamp: August 04, 2025, 07:32:32 am
content: Hi all,I’m still learning eSPI and BIOS debugging, and I’m experimenting with a Fintek F81216E chip on a custom board.I can receive BIOS debug messages (console output) over UART without any issues, but I cannot capture Port 80h POST codes.My setup:Intel PCH running AMI BIOSF81216E connected to the eSPI bus (CLK, CS#, IO0~3)BIOS “Port 80h Redirection” only offers LPC or PCIe, no eSPIA commercial eSPI POST decoder works on the same lines, so I know the codes are thereQuestions:Can the F81216E actually capture POST codes over eSPI, or only BIOS debug logs?Do I need to configure it in a special way to see port 80h writes?Any tips from someone who has tried this would be greatly appreciated!Sorry if this is a beginner-level question — I’m still figuring out eSPI POST decoding.Thanks in advance for any insights.
[solved] looking for the SAM3716 datasheet - Page 1
Forum section: electronics / general

author: lamoule74
author_rank: Contributor
timestamp: July 29, 2025, 09:59:10 am
content: Hey fellows,Not sure I'm in the good forum's section...Sorry for that in advance.I'm trying to find the datasheet of this component : SAM3716 ;it's a lowcost effect processor.I want to know what PINs are VCC and what voltage is supposed to supply the IC...Do you think this one (same familly) got similar pinout ?https://www.alldatasheet.net/datasheet-pdf/pdf/1179202/ETC1/SAM3703.htmlPlease, I need some help.Cheers.

author: Uunoctium
author_rank: Frequent Contributor
timestamp: July 29, 2025, 10:29:31 am
content: You can find it at scribd, but download needs an accounthttps://de.scribd.com/document/708863659/DSP-Dream-SAM3716

author: gamalot
author_rank: Super Contributor
timestamp: July 29, 2025, 10:55:35 am
content: I just googled and then downloaded it by clicking on the first link of the results.

author: lamoule74
author_rank: Contributor
timestamp: July 29, 2025, 12:35:57 pm
content: well it seems we don't have the same google results...Thank you !
STM8 : WS2812 using SPI library - Page 1
Forum section: electronics / general

author: JoeLaBidouille
author_rank: Newbie
timestamp: July 27, 2025, 03:45:25 pm
content: Hi all,For my needs, I wrote this small library to control WS2812 LED strips or panels using the SPI on the STM8:https://github.com/fivevolts/STM8WS2812In case someone finds it useful for a project!Thanks
STM32 Nucleo F446RE showing up as "UNDEFINED" instead of "NODE_F446RE" - Page 1
Forum section: electronics / general

author: heronet
author_rank: Newbie
timestamp: July 25, 2025, 09:48:22 am
content: Hi everyone!I bought a STM32 Nucleo F446 board from Aliexpress(No Digikey/ Mouser in my country). The board works all good, but one thing I noticed is that the Mass storage device shows up as "UNDEFINED" instead of "NODE_F446RE" or "NOD_F446RE" or "NUCLEO" as it should. Is this normal for this board or any nucleo board?Heres the stm32cubeprogrammer output-------------------------------------------------------------------STM32CubeProgrammer v2.20.0-------------------------------------------------------------------ST-LINK SN : 066FFF545253675187185139ST-LINK FW : V2J45M31Board : --Voltage : 3.26VSWD freq : 4000 KHzConnect mode: NormalReset mode : Software resetDevice ID : 0x421Revision ID : Rev ADevice name : STM32F446xxFlash size : 512 KBytesDevice type : MCUDevice CPU : Cortex-M4BL Version : 0x90Thanks in advance
What happens on CH32V CPUs when reading/writing to an unimplemented CSR? - Page 1
Forum section: electronics / general

author: HwAoRrDk
author_rank: Super Contributor
timestamp: July 24, 2025, 04:35:26 pm
content: Does anyone know what happens on CH32V CPUs if you read or write to a standardised CSR that WCH haven't implemented?For example, they don't implementmip,mie, ormtval, because the CH32V doesn't use the standard interrupt system.What would happen if, say, you readmtval, or you cleared a bit inmip? Would you read a random garbage value? Would the write be equivalent to anop? Or would something like an illegal instruction exception happen?

author: martinribelotta
author_rank: Regular Contributor
timestamp: July 24, 2025, 06:58:08 pm
content: From the datasheetmepc, mcause and mtval is implementedAcording to "The RISC-V Privileged Architecture Specification", sec. 2.1:"An attempt to access a CSR that is not implemented or not accessible in the current privilege mode must raise an illegal instruction exception."

author: HwAoRrDk
author_rank: Super Contributor
timestamp: July 24, 2025, 08:19:34 pm
content: Quote from: martinribelotta on July 24, 2025, 06:58:08 pmAh, interesting. Apparently the QingKeV3 and V4 processors implement a larger set of CSRs. I hadn't looked at those. I was looking at the QingKeV2 in the CH32V003, which only supports these:Quote from: martinribelotta on July 24, 2025, 06:58:08 pmThanks.I had a suspicion that's what might happen.I have been looking at some code (not mine) that wasn't working, and it was accessing a CSR that's non-existent on the CH32V003 within a general exception/interrupt handler, which if it generates an illegal instruction exception, would dump it right back into the same exception handler, only to repeat the same again, ad infinitum.

author: brucehoult
author_rank: Super Contributor
timestamp: July 25, 2025, 02:26:06 am
content: mtvalis really only a small convenience anyway, it doesn't tell you anything you can't work out.If the cause is illegal instruction then you can just fetch the instruction atmepcinstead of getting it frommtval. Similarly if the cause is an illegal address then you can fetch the offending load or store instruction in the same way and parse it and work outrs1+offsetyourself. Even with only 16k flash it's not THAT much code -- especially if you use self-modifying code and mutate the load/store into a move ofrs1into a known register. In fact a load can just be turned into anaddito a known destination by overwriting bits 14:0. For a store you need to copy bits 11:7 to 24:20 first.That's for RV32I of course. C adds a little more work though loads and stores have the same format there (as far asrs1andimm).Or just leave it to the user's debugger to do it.
Issue with SPI on MG32F157VCT6 - Page 1
Forum section: electronics / general

author: @ADEngineer
author_rank: Newbie
timestamp: July 19, 2025, 05:03:50 am
content: I am using MG32F157VCT6 by Megawin for testing SPI based ethernet. The data is not transferring to SPI->DR (data register). This issue is happening even in the template example provided by Megawin. I have cross-verified all the steps for initializing and setting up the SPI. Need a solution.The SPI_FLASH is the template example I used for testing whether there is data transfer or not from memory to SPI->DR.peripheral used SPI1. Pins used PA4, PA5, PA6, PA7.
Is anyone still using the Hitachi / Renesas H8/323 - HD6473238F10V - Page 1
Forum section: electronics / general

author: peter-h
author_rank: Super Contributor
timestamp: June 30, 2025, 04:01:55 pm
content: It was an interesting microcontroller chip which was in production for something like 25 years!

author: DavidAlfa
author_rank: Super Contributor
timestamp: July 04, 2025, 05:15:00 pm
content: What's the real target of this post?

author: coromonadalix
author_rank: Super Contributor
timestamp: July 04, 2025, 05:25:02 pm
content: normally lollit is to read them / clone them / copy them ... if they have memory on board ....

author: peter-h
author_rank: Super Contributor
timestamp: July 08, 2025, 02:52:34 pm
content: I have a few k of them left over from an old product and wonder if I can get rid of them

author: temperance
author_rank: Super Contributor
timestamp: July 08, 2025, 04:37:24 pm
content: They seem to go for about $24 on DigiKey. Not bad if you have a few K of them left.

author: DavidAlfa
author_rank: Super Contributor
timestamp: July 09, 2025, 02:48:16 pm
content: Put them on ebay for a reasonable price and see what happens.

author: peter-h
author_rank: Super Contributor
timestamp: July 10, 2025, 06:44:13 pm
content: I can't find anything on Digikey. Was it by any chance on their "marketplace"?

author: temperance
author_rank: Super Contributor
timestamp: July 12, 2025, 08:25:21 pm
content: https://www.digikey.gr/en/products/detail/rochester-electronics-llc/HD6473298F10V/12106171Me bad, this seems to be some variant. They are being sold by Rochester. Maybe they are interested in buying those from you.
W5500 bug - maybe it will be useful to someone - Page 1
Forum section: electronics / general

author: S. Petrukhin
author_rank: Super Contributor
timestamp: July 11, 2025, 07:18:12 pm
content: Briefly:When reading the Sn_DPORT and Sn_DIPR registers W5500 returns zeros, although the correct values are written there.After the CONNECT command, these values are read successfully.In detail:I've been using this CHIP a lot for a long time. But it always useded as a TCP server or MAC_RAW.Now I needed to implement a TCP client and, as is usually the case, I did not immediately achieve the result.The connection was not established and I decided to check the correct of filling the registers before the CONNECT command by reading the entire array of socket registers. The registers server IP address and server port return 0, MAC (which is natural) FFh. I tried writing sequentially all registers with values 1,2,3... - all other registers showed new values (which are not RO), but not the server settings.I tried to ask all the AI what are the restrictions on reading the server parameter registers W5500. The AI's was talking complete nonsense, getting lost in C perversions in the WizNet driver and not enough good documentation, they offered various stupidities. Apart from the clumsy JS code, they don't seem capable of anything.The solution turned out to be simple: I write the wrong IP address of the server. As soon as I corrected it, the connection was established and the values that I wrote down were read from the register. I specifically checked again - when reading before the connection command, I get zeros, after connection - correct values.Correct me if I'm wrong.I do not use any third-party libraries, work with the W5500 directly through registers from my library.
GD32F307 flash above 512K boundary - Page 1
Forum section: electronics / general

author: Deni
author_rank: Regular Contributor
timestamp: June 26, 2025, 04:03:38 pm
content: I am using GD32F307 with 1MB of flash and according to datasheet all 1MB of flash should be continuous. I would like to use upper 512KB as a USB disk (sort of) but I cannot write anything there.The only difference between lower and upper 512KB is that upper bank has 4KB sectors vs. 2KB for lower bank and it's starting address should be at 0x08080000.When I moved that "disk" aera to lower bank, it worked as expected. I've checked memory size register and it reports flash size of 0x400 KB as expected.Am I missing something? Any help is highly appreciated.

author: Deni
author_rank: Regular Contributor
timestamp: July 09, 2025, 09:35:37 pm
content: Solved - I've missed the fact that first 512KB uses one set of FMC control registers and the remaining flash uses another set of FMC registers (same name - suffixes 0 and 1).As always - RTFM
[STC or PIC software]  for 24ch DMX decoder board or export current PLEASE READ! - Page 1
Forum section: electronics / general

author: charlyd
author_rank: Frequent Contributor
timestamp: July 06, 2025, 10:38:21 am
content: Hi i am working on a project to swap old broken decoder pcb boards from fixtures .i want to build a PCB board with a 24ch dmx decoder. with 24 outputs. everything running on 5vso as simple as 1-24ch and every channel enables an output. there are 8x RGB led in the bar. like (A,B,C,D,E,F,G,H,I)ch1 on - A1 ch5 on - B1 ch8 on - C1 ch11 on - D1 ..... and so onch2 on - A2 ch6 on - B2 ch9 on - C2 ch12 on - D2ch3 on - A3 ch7 on - B3 ch10 on - C3 ch13 on - D3the main of the board needs to be a Programmed dmx decoder like a STC controller or a PIC controller ?can somebody help me with software (some kind of file or .bin) which i can upload into a STC or other type of chip. or multiple if needed.my gap is that i can not program these chips and just for one project i dont think it is worth learning.i am willing to pay for the program ( with a little support on how to use.) the design itself i will make nog problem.if somebody know a way to export /reverse engineer the current ( i guess protected ) STC chips- STC 12C5406 (28pin)- STC 12C1052AD (20pin)that is also worth $$$ for me so that i can burn the exports into new STC chipsany suggestions?

author: PCB.Wiz
author_rank: Super Contributor
timestamp: July 07, 2025, 12:37:50 am
content: There is a DMX example on the STC websitehttps://www.stcai.com/qtYou will need to tweak it a little for your output mappings and exact STC variant.Addit: I think the modern variant of the numbers you give, is the STC12H1k.. family.
GD32E230 deep-sleep current too high - Page 1
Forum section: electronics / general

author: Chicopy
author_rank: Newbie
timestamp: July 03, 2025, 08:05:05 am
content: Hi,I have a custom evaluation board with GD32E230C8T6.Am trying to switch into Deep-Sleep mode; RTC Alarm is used for regular wake-up every 2s.Followed demo/exampleGD32E23x_Firmware_Library_V2.3.0\Examples\PMU\Deepsleep_wakeup_RTC\The only thing I do on start is configuration of all GPIOs to digital_in with PullUp or PullDown, to not collide with external PullUp/Downs.It runs with IRC8M, also all OSCxx pins are configured as digital_in with PullDown.It works but takes about 85uA, too much.// PMU enters deepsleep modepmu_to_deepsleepmode(PMU_LDO_LOWPOWER, WFI_CMD);According to datasheet:Supply current (Deep-sleep mode), VDD=VDDA=3.3V, LDO in normal power and low driver mode, IRC40K off, RTC off, Typ 12.3uA / Max 58uA.IRC8M oscillator operating current, VDD=VDDA=3.3V, Typ 55uA (but I believe it is Off in Deep-sleep mode, or isn't it ??)IRC40K oscillator operating current VDD=VDDA=3.3V, Typ 0.41uA (this is used for RTC).Any ideas what might be wrong ?Is there any special procedure needed before turning to Deep-Sleep ?(like deactivation of some peripherals, clocks, setting some registers..)

author: voltsandjolts
author_rank: Unknown
timestamp: July 03, 2025, 09:39:18 am
content: Are you certain nothing else on your custom board is taking any current?Where are you making the current measurement?

author: Psi
author_rank: Super Contributor
timestamp: July 03, 2025, 10:01:20 am
content: 12.3uA expected but actually 85uA, So 72.7uA more than expected.72.7uA @ 3.3V = 45k ohms.That's probably a pullup/down you missed. Internal pullups can be around 30-40k.If it's not that, it's probably some hardware peripheral you have not turned off before entering sleep.(im just thinking in general, I dont know anything about GD32)

author: Chicopy
author_rank: Newbie
timestamp: July 03, 2025, 10:26:11 am
content: My mistake.I have jumpers in power rails to all chips around, but haven't noticed PullUps on I2C EEPROM are connected to the VDD of microcontroller.It takes 14uA now, correct.Thanks for your help.

author: Psi
author_rank: Super Contributor
timestamp: July 03, 2025, 11:12:24 am
content: No problem.Yep, converting excessive sleep current into a resistance is often very useful to rule in/out pullups/pulldowns from the list of possible causes.Especially when you get to know a specific MCU and what the typical pullup current is at the voltage you're using.Also useful to look for external resistors that might be the cause.
GX6605 question - Page 1
Forum section: electronics / general

author: bigendian
author_rank: Regular Contributor
timestamp: June 28, 2025, 01:38:21 pm
content: Dear all,a brief question on this SoC, c-sky architecture, GX6605, not exactly a microcontroller, hope this section is ok.I liked this chip since it's QFN but not that critical to solder, and with internal DDR. Can run linux. So i prepared some prototypes but looks like, even when the chip is well soldered (i suppose so, i see the clock), after some power off and back on, it starts to get hotter, to very hot (damaged). I supposed this chip as many similar recent with internal ddr, needs a proper power sequence, but seems not the case, since development board schematic shows no delay/timing applied between the 3 voltages, 3.3, 1.8, 1.1 at power up. So there must be something else that make the cpu get hotter -> damaged. Right now, i let hdmi and other pins disconnected, except for the spi flash for booting.Any idea well appreciated.
ESP32 Without a Hardwired Antenna (ESP32-S3 specifically) - Page 1
Forum section: electronics / general

author: Hague Tech
author_rank: Contributor
timestamp: June 23, 2025, 10:44:26 am
content: Any ESP32 experts know if the MCU will function correctly if there is no antenna connected at all providing that there is no RF or Wi-Fi functionality being implemented? For example I am trying to use ESP32-S3 for a project that does not require the use of RF at all but I like the ESP32 fmaily as it is well documented and some of them have built in flash etc. Does the chip need to have an antenna to function correctly ingeneral even if it is not used?

author: nctnico
author_rank: Super Contributor
timestamp: June 23, 2025, 12:41:03 pm
content: There is no depency on having the antenna connected in the software. Maybe Espressif has an appnote on this where it comes to what needs to be connected at a minimum.

author: tszaboo
author_rank: Super Contributor
timestamp: June 23, 2025, 01:01:54 pm
content: The versions of ESP-IDF I've seen were doing some kind of RF calibrations when coming out of boot or reset.One of the reasons the ESP32 series has very bad power consumption figures (for anything else than Wifi) is because this is handled automatically and the user has very little way of controlling when and how this happens. So they will "do RF" even if you don't ask it to do. I've seen some workarounds for this, which you should look up.If I would design it, I would terminate that unused RF port with a 50 (or 49.9 or 47) Ohm resistor in a 0603 or 0805 package.

author: nctnico
author_rank: Super Contributor
timestamp: June 25, 2025, 11:30:19 am
content: I'd check the datasheet / appnotes whether you can connect the RF output to ground through a resistor. Maybe it needs an AC coupling capacitor.

author: Hague Tech
author_rank: Contributor
timestamp: June 26, 2025, 10:04:51 am
content: Thanks for the help, I will take the advice on grounding the RF pins through a resistor and see of that helps although I am making multiple changes in the design so will be hard to know what worked/did not work.
Odd power on bug. - Page 1
Forum section: electronics / general

author: paulca
author_rank: Super Contributor
timestamp: July 04, 2025, 08:13:14 pm
content: My nor flash programmer (STM32).If the flash chip is connected when the STM32 is powered on, it will not talk, it's dead, incognito.If I remove the chip and re-insert it, there is a 80% chance it will work. Once connected and verifying reads I can hammer it, load tests, negative tests the works. The firmware, once in a stable state is solid.The same IC in a real circuit also performs flawlessly forreads. Writes untested.The flash rom is an SST39F010A (1Mbit Nor Flash) (Microchip). I can't see anything in the datasheet to suggest something that can upset it so badly when it first sees power to cause it fail to write.For now it matters less as I still need to remove the ROM, put it into the programmer, flash it and reverse. So, I can just leave the programmer power and insert the chip into the ZIF socket "powered". This works.If I move to "incircuit" programming this kind of "bug" will cause havoc.Do do I begin to find the cause?A long arm solution is to power the IC form a GPIO pin. That allows me to power cycle the IC. (Assuming all other inputs are LOW). It doesn't help with in circuit though.This is a classic "power up transient" isn't it. Something is latching the chip up in the microseconds of it powering on. Either a pin it drives high the STM is sinking to ground or wise versa.

author: paulca
author_rank: Super Contributor
timestamp: July 04, 2025, 08:39:29 pm
content: Schematic:output.pdf(47.28 kB - downloaded 7 times.)

author: edavid
author_rank: Super Contributor
timestamp: July 04, 2025, 08:53:46 pm
content: I don't know why you would think that would work. Leave all the pin drivers off until power is connected and stabilized.

author: Doctorandus_P
author_rank: Super Contributor
timestamp: July 05, 2025, 05:53:18 pm
content: This project does look a lot like a variant of:https://hackaday.com/2025/07/05/software-defined-retro-rom-makes-8-bit-easy/Which also links to a github repository:https://github.com/piersfinlayson/software-defined-retro-rom/STM32 needs a bit of startup time. After power up, one of the first thing it does is to configure some PLL's then waits for them to stabilize and then switch the clock from the internal RC oscillator to the configured clock. If your other device attempts to access the ROM chip in that timeframe, you will get undefined results.In the video of that hackaday article, it also states that the STM32 has to run at 100MHz to be fast enough to emulate the ROM. I don't know your speed, but maybe your timing is marginal.
First time with ESP32-C3 - Page 1
Forum section: electronics / general

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: June 17, 2025, 09:21:44 pm
content: HiThis is the first time I'm installing ESP-IDF extension in vscode, every thing goes as expected and I have made the first blink project, But when I run idf.py in vscode terminal I would get this error,Code:idf.py --versionidf.py : The term 'idf.py' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the pathis correct and try again.At line:1 char:1+ idf.py --version+ ~~~~~~+ CategoryInfo : ObjectNotFound: (idf.py:String) [], CommandNotFoundException+ FullyQualifiedErrorId : CommandNotFoundExceptionHow to solve it?

author: ds047
author_rank: Newbie
timestamp: June 17, 2025, 10:24:29 pm
content: Is the ‘idf.py’ file in the same directory that you are running that command in?

author: JPortici
author_rank: Super Contributor
timestamp: June 18, 2025, 07:26:49 am
content: Quote from: ali_asadzadeh on June 17, 2025, 09:21:44 pmthat looks like a powershell shell, not a python shell* i don't remember ever having to use idf.py directly *

author: betocool
author_rank: Regular Contributor
timestamp: June 18, 2025, 01:16:19 pm
content: It's very likely that the ESP IDF extension has some explicit command and all paths to that python virtual environment somewhere as part of the installation. Possibly where the ESP IDF is installed. If you don't run a shell from VS code from that virtual environment or python installation it won't work.That is why it fails, however, not knowing more about the ESP installation I can't help further. I did use ESP32 once, but I vaguely remember running into similar issues.Cheers,Alberto

author: xvr
author_rank: Frequent Contributor
timestamp: June 18, 2025, 01:23:47 pm
content: idf.py is not expected to be run directly by user - you should use buttons on status bar to work with IDF extension.IDF Extension has a start page with all tutorials about how it can be used.

author: SiliconWizard
author_rank: Super Contributor
timestamp: June 18, 2025, 03:09:52 pm
content: Quote from: xvr on June 18, 2025, 01:23:47 pmYes it is, and maybe you can actually look at official docs instead of guessing. Turns out vendors bother to write documentation (sometimes):https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/tools/idf-py.htmlAnd, for setting up the toolchain and being able to use it in a shell, there are Windows & Linux instructions:https://docs.espressif.com/projects/esp-idf/en/latest/esp32/get-started/windows-setup.html

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: June 21, 2025, 03:55:06 pm
content: thanks for your feedback, I think in vscode extension I should do everything with the command palette, LikeESP-IDF: SDK configurationto do menu-config,I got another problem regarding being able to debug a EPS32-C3 project,QuoteI don't have any Idea what might be the problem, Though I can flash and monitor the chip with UART, But I want jtag debugging
FT813Q - Page 1
Forum section: electronics / general

author: zGugaFarias
author_rank: Newbie
timestamp: June 06, 2025, 11:06:57 am
content: Hi guys, i need some help to programming my display i'm using a mcu atsams70n19 with atmel-ice in atmel studio ide but I'm not able to turn on the display through the reset in the pdn.Sorry for bad english.

author: ahsrabrifat
author_rank: Regular Contributor
timestamp: June 15, 2025, 08:30:16 am
content: What display are you using?

author: zGugaFarias
author_rank: Newbie
timestamp: June 19, 2025, 10:47:44 am
content: FT813 of 4D Systems