hybridfree/eevblog-posts huggingface dataset:
Flash programming of TI DSP TMS320F243 - Page 1
Forum section: electronics / general

author: doran
author_rank: Newbie
timestamp: April 12, 2025, 09:17:19 am
content: Hello everyone!I'm working on a legacy motor control system which is built around the TI DSP TMS320F243.On one day, the system failed and it was diagnosed, that the DSP was somehow malfunctioning, so we replaced it with a new one.Of course, the flash content needs to be reprogrammed (I own the software and have the COFF file (.out file) on hand).So I connected the board to an old WinXP PC running TI code composer studio (CCS) version 3.3 using a XDS510-USB2.0 emulator. In code composer studio, I can successfully connect to the device and upload the COFF file to RAM and execute the program and the system works then flawlessly.However, using this method, the program is running from RAM only and is lost upon the next power cycle.So I need to program the COFF file to the internal Flash memory of the TMS320F243.Previously, I have done so using the "On-Chip Flash Programmer" available from the "Tools" menu bar item in code composer studio.This time however, once opening the "On-Chip Flash Programmer", an error message box, as attached, appears.We contacted TI regarding this issue, but they don't support these old devices anymore and recommend to redesign the board using more recent devices.....But since the communication to DSP works and the system works when executed from RAM, we think that it is just a small setting in the code composer studio which may be wrong....Do you guys have some ideas how to solve this problem or have some ideas what we could try out?Thank you for any help!Best regards,Doran

author: HirundoRustica
author_rank: Newbie
timestamp: April 15, 2025, 12:19:19 pm
content: Assuming that you are using XDS510, could it be that your WinXP computer still has Spectrum Digital tools and drivers installed ? if so, you might want to try "SDFlash" or "prg2xx" from Spectrum Digital ? Try to look for these programs also in CCS directories, as (I think) SDFlash was shipped with CCSv3.x (it has been 15 years, since I used CCSv3).Unfortunately, TMS320F243 is EOL for some time now, and was designed, when built-in SCI Boot-ROM was not present, so I am not aware if you have any other options...

author: doran
author_rank: Newbie
timestamp: April 15, 2025, 05:28:06 pm
content: Hi HirundoRustica,Thanks for your answer. Yes, in the mean time I learned that the "On-Chip Flash Programmer" is for F24xx device only which doesnotinclude the F243.Seems the only way is to use either SDFlash or prg2xx. However, unfortunately, I don't find those tools in the CCS installation directory.Does anyone still have these tools and could send it to me?Thank you very much in advance!Best Regards,Doran
STM32F407G, ILI9341, LVGL - white screen, can't display anything - Page 1
Forum section: electronics / general

author: FilipCichowski
author_rank: Newbie
timestamp: April 12, 2025, 12:46:41 pm
content: I followed this tutorial:https://controllerstech.com/lvgl-on-stm32-part-1/I double check my connections.I use Discovery board with STM32F407G.My display module is popular 2,8" display with ILI9341controller.The only change I introduced comparing to tutorial is reducing buffer size in line 52 of lv_conf.h to 16 bytes, because it didn't fit my RAM.I copied 1:1 LCDController.h from file attached to tutorial (just scroll to the bottom to download it).I added lv_timer_handler in main loop.I added systic handler in stm32l4xx_it.cBut I get white screen as a result. What else should I check?Any help will be appreciated!

author: eugene
author_rank: Frequent Contributor
timestamp: April 12, 2025, 02:04:09 pm
content: A common reason for this is that the SPI mode is not set correctly. There are four possible combinations of polarity and phase resulting in four modes to choose from. Typically it's set during an init() function, but I don't know how it's handled in Cube. Figure that out and try all four modes to see if one of them works.

author: FilipCichowski
author_rank: Newbie
timestamp: April 12, 2025, 03:02:53 pm
content: I tried all 4 modes. I changed Clock Polarity and Clock Phase. I tried lowering baud rate, but it's no use.

author: globoy
author_rank: Frequent Contributor
timestamp: April 12, 2025, 03:32:28 pm
content: Have you looked at your SPI bus with an oscilloscope and make sure you're actually sending data to the display controller? I know in my past I've done things like get the wrong pin for CSn or D/C, etc.Can you share a picture of the screen? A pure white screen indicates to me that you haven't successfully sent any initialization commands to the display (so not even at the point where the LVGL buffer size matters). An initialized (but not cleared) ILI9341 display will be all random pixel values.

author: FilipCichowski
author_rank: Newbie
timestamp: April 12, 2025, 03:59:07 pm
content: Problem solved.It was skill issueI accidentally connected RESET wire to PH1 instead of PC13.
STM32F407ZGT6 Based Dev. Board LXB407ZG-P1 - Page 1
Forum section: electronics / general

author: tpd
author_rank: Contributor
timestamp: April 12, 2025, 09:33:44 am
content: Hi,Is there any information on this dev. board? I bought it at Aliexpress (https://www.aliexpress.com/item/1005008302886741.html?spm=a2g0o.order_list.order_list_main.130.25b31802iyzz6E#nav-specification), but even the seller couldn't share anything useful.Are there any datasheets, manuals, examples, anything on it?Thanks

author: pcprogrammer
author_rank: Super Contributor
timestamp: April 12, 2025, 10:55:37 am
content: Looks like a simple board with the bare minimum needed for running the MCU.All you need to play with it is the information from ST:https://www.st.com/en/microcontrollers-microprocessors/stm32f407zg.htmlUnder the documentation tab you can find the datasheet and the reference manual.The bottom of the PCB shows the port pins on the silk screen. The double row 2.54mm 4x2 male pin header in the cutout gives access to the SWD interface, so programming and debugging can be done with a ST-link device. A cheap clone like thishttps://nl.aliexpress.com/item/1005003575620794.htmlwill do.To compile code all you need is the GNU compilers and a linker script. This repo seems to have example code for a STM32F407VG:https://github.com/k-code/stm32f4-examplesIs the same core but has different number of IO pins.

author: tpd
author_rank: Contributor
timestamp: April 12, 2025, 11:07:36 am
content: Thanks, damn Chinese, all their production is like this. It is a hell of job a beginner.

author: pcprogrammer
author_rank: Super Contributor
timestamp: April 12, 2025, 11:10:08 am
content: For a beginner there are simpler boards, so why did you choose this one?

author: tpd
author_rank: Contributor
timestamp: April 12, 2025, 11:12:18 am
content: I need it for pretty ambitious project, the simper ones can't manage it.
MSPM0C microcontroller family VREF - Page 1
Forum section: electronics / general

author: IconicPCB
author_rank: Super Contributor
timestamp: April 11, 2025, 03:49:28 am
content: Trying to understand whether internal VREF is accessible on the external VREF pin of the micro.Would like to use the reference voltage elsewhere in the circuit.

author: IconicPCB
author_rank: Super Contributor
timestamp: April 11, 2025, 11:54:47 am
content: Explicitly only the MSPM0G series bring the internal VREF to an external pin for the purpose of filtering/ decoupling the signal.I can not comment on the MSPM0L or MSPS0C range of product.

author: mikerj
author_rank: Super Contributor
timestamp: April 11, 2025, 11:59:52 am
content: The MSPM0C devices don't even have a VREF in pin so the answer is no. The G family parts have a pin tied to the internal Vref voltage, but it's intended for decoupling or driving an external Vref in rather than using it as a reference for external circuits, so it would likely need to be buffered in this case. The L family parts have a Vref input only.

author: IconicPCB
author_rank: Super Contributor
timestamp: April 11, 2025, 03:12:02 pm
content: I have the C family1104 development kit, i shall see about the voltage present on external input pin when internal reference selected.\If internal ref present i intended to buffer it and use it in external circuit.G family incorporates some op amps in which case expose internal V ref is no longer an issue.
Mcu Embedded TCP/IP stack recommendations  - Page 1
Forum section: electronics / general

author: JoeyG
author_rank: Regular Contributor
timestamp: April 10, 2025, 10:29:11 am
content: As well as LWIP what other stacks do you recommend?

author: eutectique
author_rank: Frequent Contributor
timestamp: April 10, 2025, 10:38:48 am
content: NetXDuo
CH32X035 Disable Code Protection - Page 1
Forum section: electronics / general

author: uliano
author_rank: Regular Contributor
timestamp: April 09, 2025, 11:26:36 am
content: Hello,I have different demo boards with CH32x035.On the C8T6 I can download firmware without troubles while on the F8U6 (both the original WCH and WeAct Studio, different boards for each model) I get the same:Code:[13:14:17] **** Start flash operation of project CH32X035F8U6 ****Link device no need to upgrade[13:14:17] Using target file c:\Users\uliano\stuff\embedded\CH32X035F8U6\obj\CH32X035F8U6.hex[13:14:17] Starting Flash Operation...[13:14:18] Error: Before operation, please ensure disable Code-Protect first.-------------------------------------End-------------------------------------This happens either with original WCH-LinkE 1.3 or non original WCH-LinkE Mini and downloading with Mounriver Studio 2.1I tried also WCHISPStudio but if I Select ChipSeries CH32X03x and Chip Model CH32X35F8U6 then Dev List becomes empty

author: Chalcogenide
author_rank: Regular Contributor
timestamp: April 09, 2025, 12:07:19 pm
content: Try WCHISP with the CH32X035 connected via USB in bootloader. It is trivial to disable code protection this way.

author: uliano
author_rank: Regular Contributor
timestamp: April 09, 2025, 01:47:06 pm
content: Quote from: Chalcogenide on April 09, 2025, 12:07:19 pmnever used a bootloader in my life...How am I supposed to do?Also, if I google "wchisp bootloader usb" I get lots of hits to other "wchisp" softwares (not the WCH ISP-Studio) which one do you mean?(sorry for being uberlame here :-( )

author: Chalcogenide
author_rank: Regular Contributor
timestamp: April 09, 2025, 02:45:48 pm
content: Well if you have the WeAct CH32X035 core board you just press the BOOT key while plugging in the USB cable, that boots the chip in its bootloader.In WCHISP studio you select the CH32X035F8U6 and as "Dnld Port" you set "USB". Then you click "Deprotect" as soon as the chip is recognized by WCHISP studio.On the CH32X035 the boot select pin is actually the USB DP, and to enter boot mode you have to pull-up the pin via a 5k (ish) resistor to 3.3V.

author: uliano
author_rank: Regular Contributor
timestamp: April 09, 2025, 03:16:05 pm
content: The chip isn't recognized...It just starts the preloaded blinky regradless if I press boot or not when I connect the usbcDevlist stays emptyEDITCan't believe how lame I am!I was not fully plugging the usbc (which makes lots of resistence in the second half) and I was only powering but not connecting the circuit.(solved thnks)
The old Bluepill with CM4F F303CC.. - Page 1
Forum section: electronics / general

author: iMo
author_rank: Super Contributor
timestamp: April 08, 2025, 12:36:44 pm
content: FYI - I found couple of stm32F303CBs in my junkbox thus I could not resist the temptation so I spent couple of minutes with a soldering job.. The Cube programmer can flash it with full 256kB of flash (it is a CC silicon, as usual..), and it works at 128MHz here as well.You will get a Cortex M4F (with the single precision FPU and an MPU), 4x 5Msps 12b ADCs (ie 2 with simultaneous sampling), 2ch 12b DAC, etc, etc.Limitation - sadly the USB clock divider in this chip is 1.5 max so no USB beyond 72MHz. Also the active header is the one with the jumper there on the below picture (it sets the USB downloader active, you have to keep the reset button pressed during power-up in order to flash the binary in via the USB).
Programming ATTINY2312 with Pickit 3 - Page 1
Forum section: electronics / general

author: ko4nrbs
author_rank: Regular Contributor
timestamp: March 31, 2025, 05:11:22 pm
content: The PCB that has the ATTiny2312 IC on it has a 2X3P programming header connector. Can this be programmed with the Pickit 3 utilizing this 2X3P header? The ATTiny232 is in the MPLAB software version 6.20 for the Pickit 3.Thank you,Bill

author: WattsThat
author_rank: Frequent Contributor
timestamp: March 31, 2025, 09:43:58 pm
content: Not a PIC guy but no, don’t think so. Could be wrong as I’m old school AVR, pre microchip purchase of Atmel.What you need is one of the $5 usb/isp dongles on eBay and open source avrdude software. The programmer needs the 10 to 6 pin adapter board, sometimes $1 more if not included.Dozens available, one example:ebay link

author: TomKatt
author_rank: Frequent Contributor
timestamp: April 01, 2025, 04:32:17 pm
content: Quote from: WattsThat on March 31, 2025, 09:43:58 pmThose USBASP dongles work like a charm and are probably the most common programmer in use.I still cannot believe that Atmel got bought by Microchip lol... It makes my head hurt looking at AVR datasheets with the Micro logo printed on it. When I think of the rivalry that went on between AVR and PIC users - it reminds me a little of modern day iOS/Android or Rigol/Siglent ;-)

author: fchk
author_rank: Frequent Contributor
timestamp: April 01, 2025, 05:43:04 pm
content: Quote from: ko4nrbs on March 31, 2025, 05:11:22 pmPICKIT3 only has ICSP for PICs.PICKIT4 and 5, PICKIT BASIC, and MPLABX SNAP implement all interfaces Microchip supports today:* PIC: ICSP* AVR/ARM/PIC16/MIPS: JTAG* AVR: ISP, dW, PDI, TPI, UPDI* ARM: SWDThey have 8 pins instead of 6 pins for a reason.

author: Andy Chee
author_rank: Super Contributor
timestamp: April 02, 2025, 02:03:01 am
content: If you've got a spare Arduino UNO floating around, you could always program the example sketch "ArduinoISP", effectively turning it into the equivalent of an eBay dongle.
Need help to configure TFT display - Page 1
Forum section: electronics / general

author: udhay_cit
author_rank: Contributor
timestamp: April 03, 2025, 06:21:45 am
content: Hi,we are planning to use a 5" capacitive touch display with Renesas RA8D1 microcontroller. The current version product we completed with an onboard HMI display from Nextion (NX8048P050_011). We are not satisfied with the touch response and display quality, so we are looking for a better display solution.The RA8D1 microcontroller has the provision for 2 lane MIPI interface but unfortunately there is no display in the market for 5" 2 lane MIPI interface, so we decided to use ICN6211 MIPI to RGB bridge IC. The screen capture of ICN6211 configurator is attached here.I need to input the "Basic settings" parameters to get the I2C configuration file. I'm not familiar with the RGB LCD display interface, so please help us to understand the setting for our specific display module.Please suggest a suitable values for the below parameter which is suitable for our LCD display(datasheet attached)HFPHSYNCHBPVFPVSYNCVBPRGB clock (in MHz)RGB clock phase adjustment - options are 0, 1/4, 1/2, 3/4

author: Nominal Animal
author_rank: Super Contributor
timestamp: April 03, 2025, 08:40:53 am
content: See page 15. Timing characteristics.The defaults areRGB clock = 25 MHzHFP = Thfp = 8(Horizontal Front Porch)HSYNC = Thw = 4(Horizontal sync pulse Width)HBP = Thbp = 8(Horizontal Back Porch)VFP = Tvfp = 8(Vertical Front Porch)VSYNC = Tvw = 4(Vertical sync pulse Width)VBP = Tvbp = 8(Vertical Back Porch)For explanations of these names, see WikipediaHorizontal blanking intervalandVertical blanking intervalarticles. Horizontal values are specified in terms of the RGB clock cycles, and vertical timings in number of full horizontal scan lines.Those defaults yield a horizontal period of 816 cycles and 496 scan lines, so 25000000/(816×496) ≃ 61.8 Hz referesh rate. All of the above values are ranges, so they can be tuned if needed.The RGB clock phase adjustment refers to when the display samples the parallel bus with respect to the clock. According to ICN6211 specification v0.4, phase 0 matches the display expectations. So try using 0 for RGB clock phase. (All other clock phases will at least occasionally glitch.)
To JTAG or SWD? - Page 1
Forum section: electronics / general

author: i509VCB
author_rank: Contributor
timestamp: April 01, 2025, 07:01:43 am
content: I am working on a project with the IMXRT1011. It has both SWD and JTAG support. I'm not running short on pins so either is fine.More generally is there any real reason to use JTAG over SWD for microcontrollers? In my case the scan chain has a length of 1 so any features related to chains are pointless for me. The FPGA alongside the part on the board does not support JTAG (ice40) so I do not see the practical reason to use the extra 4 pins for JTAG.

author: Jeroen3
author_rank: Super Contributor
timestamp: April 01, 2025, 07:31:36 am
content: Wire up SWD with trace output.The trace output can be really helpful if your debugger support it.

author: SiliconWizard
author_rank: Super Contributor
timestamp: April 01, 2025, 11:28:57 am
content: I haven't used JTAG for MCUs in ages and see little reason for that these days if they support SWD, which all Cortex-M MCUs do (AFAIK).The rationale to use JTAG if you have a chain of devices (and you mentioned that was not your case) can be defended in general, except that in practice, you may be using software debug/programming JTAG tools that do not support all of your different devices on the same chain, so that the practical benefits if you have a "hybrid" (chips from different vendors) JTAG chain can even be questionable anyway. Could allow a single JTAG connector on your board, provided that you're ok with accessing all devices with the least common denominator, meaning the lowest JTAG clock speed supported by any of them, at least those that pass JTAG on to others, which may not pass JTAG signals properly past a certain clock frequency.Just a few things to consider when designing. Here, just use SWD.

author: Jeroen3
author_rank: Super Contributor
timestamp: April 01, 2025, 01:15:05 pm
content: Both JTAG and SWD talk to the same DAP (Debug Access Port), jtag just requires more pins.

author: ataradov
author_rank: Super Contributor
timestamp: April 01, 2025, 02:13:03 pm
content: JTAG is also less efficient in terms of clock cycles required to perform the same access. And on ARM it is also really awkward, since implementations include two virtual devices. One is the ARM core and another one is boundary scan. So, you get all the annoyances of working with multiple devices in a chain while you only care about one. There is no reason to use JTAG in cases when SWD is available.

author: bson
author_rank: Unknown
timestamp: April 01, 2025, 06:55:38 pm
content: Go SWD, unless you explictly need JTAG functionality (such as device chaining).
New Bluepill "on steroids" - STM32H503CBT6-EVT  - Page 1
Forum section: electronics / general

author: bingo600
author_rank: Super Contributor
timestamp: March 27, 2025, 01:21:29 pm
content: New 250MHz Clock - 128K Flash / 32K Ram with an "almost pincompatible" BluePill layoutI was looking on Ali , for a BP compatible - Faster board (better accuracy) w multi-pll for a functional USB.And i found this board ... Where it seems like it's an almost 100% BP Pin-compatible layoutSTM32H503CBT6-EVThttps://www.aliexpress.com/item/1005008172782811.htmlWatch out - WeAct & Alientek also have STM32H503CBT6 boards , but the layout isn't BP "Pin compatible approached"Someone left feedback, that the ADC is noisy (Avcc connect directly to Vcc) - Sigh ...And that pin B2 isn't routed.The MCU has two PLL's with multiple outputs , and even a HSI 48MHz PLL that is default routed to USB.I succeded in CubeMx to use PLL1 (250MHz) , and PLL2 (240MHz) - PLL2Q can then be divided down to 48MHz and connected to the USB block , if one want a HSE clock for USBDoes it look feasible from a hardware compatibility point ?Edit: I don't have a board ... Wanted some input from here first.
MSPM0C1104 World’s smallest microcontroller  - Page 1
Forum section: electronics / general

author: YTusername
author_rank: Regular Contributor
timestamp: March 27, 2025, 09:24:11 am
content: As shown in the attached image, courtesy to cnx-software, it is smaller than the 0603 package. It comes with Cortex M0+ & 16K flash, which is enough to host a simple application code. It's priced at 20 cents for 100 qty.The most interesting part is that it is small and cheap, with enough support and documentation.Source:https://www.cnx-software.com/2025/03/12/texas-instruments-mspm0c1104-is-the-worlds-smallest-microcontroller-with-a-size-of-1-38mm2/

author: tooki
author_rank: Super Contributor
timestamp: March 27, 2025, 09:35:52 am
content: Quote from: YTusername on March 27, 2025, 09:24:11 amNo, that’s the price at 1k quantity.While the tiny size is definitely useful for portable device developers, the BGA package makes it much less interesting for prototyping and hobby use. For those, the much larger packages with leads are more attractive.

author: brucehoult
author_rank: Super Contributor
timestamp: March 27, 2025, 09:37:18 am
content: Already discussed athttps://www.eevblog.com/forum/microcontrollers/think-big-with-the-worlds-smallest-microcontroller
Are there any HDMI to 32 channel I2S/PCM etc audio extractor chips? - Page 1
Forum section: electronics / general

author: MT
author_rank: Super Contributor
timestamp: March 22, 2025, 02:27:09 am
content: Various HDMI to 8ch (affordable) and 2x8ch (expensive) are available but so far no 32ch.(TDM)

author: SiliconWizard
author_rank: Super Contributor
timestamp: March 22, 2025, 02:00:01 pm
content: HDMI as of 2.1 supports a max of 32 audio channels AFAIK. So that may explain it.If you know any different from the HDMI spec, let me know though.

author: MT
author_rank: Super Contributor
timestamp: March 22, 2025, 04:50:08 pm
content: Well, SACD 8 ch audio was already on HDMI 1.2 so speed have been there. 32ch was enabled on HDMI 2.0 (2019)

author: SiliconWizard
author_rank: Super Contributor
timestamp: March 22, 2025, 06:54:34 pm
content: Well I'm sure that there is very little market if any for 32 audio channels via HDMI. Applications typically requiring more audio channels will be in the pro audio category and won't be using HDMI to transport that for sure.But if you have a definite application for it, I'm curious. Why not. Not that I'm looking forward to HDMI invading the audio market and imposing itself though, as the licensing is awful.

author: MT
author_rank: Super Contributor
timestamp: March 22, 2025, 07:15:14 pm
content: Quote from: SiliconWizard on March 22, 2025, 06:54:34 pmCinema formats 9:1 and up, Dolby ATMOS like the more insane ones 24:1:10 etc it, but yep USB , Ethernet audio etc sorta better in many ways , HDMI licensing is a bitch yes.https://web.archive.org/web/20200521122348/https://www.dolby.com/us/en/technologies/dolby-atmos/dolby-atmos-for-the-home-theater.pdf

author: themadhippy
author_rank: Super Contributor
timestamp: March 22, 2025, 08:47:48 pm
content: Quotemaybe they should ask dolby about licensing and why the pro audio market wasnt for them.As for needing yet another multi channel standard wots wrong with AES50 or dante or any of the other standards already out there
LEXI3 ESP32-D/U/S & S3 Modular Breadboards and Power Supply - Page 1
Forum section: electronics / general

author: Lexter333
author_rank: Newbie
timestamp: March 22, 2025, 08:51:38 pm
content: I’ve been getting a little fed up with trying to create projects using the ESP32 microcontrollers on standard breadboards so I decided to design my own. I’m absolutely made up with the result and they work perfectly. I thought I’d share them with you, if you have a 3D printer that is. They are just like any other board now. You have 4 points per pin now on a single breadboard. Just to make it a little better, I decided to make them modular, giving the user the ability to create massive projects. I also created a power supply that connects to the modules.If you have a 3d printer, take a look:LEXI3 ESP32-D/U & S Breadboard -https://cults3d.com/en/3d-model/various/lexi3-esp32-d-u-s-wroom-32-30-38-pin-modular-breadoard-joinersLEXI3 ESP32-S3 Breadboard -https://cults3d.com/en/3d-model/various/lexi3-esp32-s3-wroom-32-44-pin-modular-breadoard-joinersLEXI3 Power Supply -https://cults3d.com/en/3d-model/various/lexi3-power-supply-for-esp32-modular-breadboard-joinersLEXI3 ESP32 250 POINT EXTENSION BOARD -https://cults3d.com/en/3d-model/various/lexi3-250-point-esp32-breadboard-extension-board-joinersLEXI3 Power Supply -https://cults3d.com/en/3d-model/various/lexi3-power-supply-for-esp32-modular-breadboard-joiners
STC8 reccomends different decoupling caps depending on clock frequency - Page 1
Forum section: electronics / general

author: Whales
author_rank: Super Contributor
timestamp: March 19, 2025, 02:58:29 am
content: From page 156 of theSTC8H-en manual:Specifying different decoupling ceramics based off frequency of operation seems a bit weird to me. This is a cheap 8 bit micro that clocks to about 36MHz max.I would assume that the impedance differences between a 0.1uF and a 0.01uF would be negligible compared to other sources of impedance variation (like distance to package, brand/model of ceramic, aging of ceramic).Surely, even if this made a difference, it would be buried in the noise of everything else? Or is it wise advice and I should follow it to eg get full ADC ENOB? Has anyone had to do similar with other micros?FWIW I planned to supply it from a 3.3V linear reg that's designed to be stable with a 1uF ceramic capacitor, then put another 1uf ceramic next to the STC8 and call it a day.

author: PCB.Wiz
author_rank: Super Contributor
timestamp: March 19, 2025, 03:46:57 am
content: Quote from: Whales on March 19, 2025, 02:58:29 amYes, & it looks like that detail has dropped form the newest (Chinese) STC8H data sheets. They just show the generic/expected 0.1uF + 22uF

author: Siwastaja
author_rank: Super Contributor
timestamp: March 19, 2025, 06:48:20 am
content: This is just the black magic voodoo of power bypassing taken to the Next Level.Just use 0.1uF. Or 1uF. Or anything between. In reality all it cares is lowest possible impedance over wide frequency band, and that can be had with minimized ESL, minimized ESR and maximized C. You get this by using largest possible C without having to resort to large packages. Therefore 1µF in 0402 is a neat overall solution to bypassing.47µ tantalum provides damping. Then again, if you think about it, damping is most important in hot-plug situations and tantalums are not suitable for hotplugging as they tend to catch fire from peak current. I would use a standard electrolytic cap in this case instead. If you wish to use a tantalum, derate the voltage even more than usual, to 1/3, and/or check the actual peak current ratings.
Troublesome PCBs - Page 1
Forum section: electronics / general

author: camerart
author_rank: Newbie
timestamp: March 21, 2025, 10:03:22 am
content: Hi,I was working on a project, for a homemade drone, using 2x similar PCBs for BASE and REMOTE.It uses Ublox GPS, BMP280, Iphone compass module, Nokia screen, joysticks, incrementle encoder, all working with SPI.Each of these peripherals took some time to understand, and implement, and the whole project went for app 6x years, but even though all of the peripherals worked, it just wouldn't completely, and I had to give in and shelve it.On an electrical forum, I watch, someone posted CODE for TFT screens, and with help this 'C' CODE was converted to BASIC (my only language), and we got the screens working intermittently.I sent one of my project PCBs to one of the forum members, and neither of us could get the screens to work properly.I got to thinking that it would be some problem with the PCBS that wasn't hobby level, but higher level, so I am asking: Is there a way to test a PCB, in a higher way, that at my level (pin to pin, and oscilloscope)?By the way, both of the other 2x members working on this were successful with their breadboard and TTH PIC where my PCB has SMD PICs.Cheers, Camerart.

author: jpanhalt
author_rank: Super Contributor
timestamp: March 21, 2025, 10:42:04 am
content: Hi camerart. Good to see you. I've been following that project.I use solderable breadboards and had a somewhat similar problem a few years ago. My circuit and program worked weil with through hole parts (PIC 16F1xxx), but the manufactured board with an SMD MCU would not run off battery. The schematic "looked" fine and DRG passed. Eventually after probing, I found a line on the schematic (battery ground) that looked like a legitimate connection but in fact was not a real net. It was easily fixed. As with most such problems, you feel a little foolish later.I don't know what to advise. In my case, it was discovered by checking each layer separately in schematic editor.
STM32 VSCODE NO HAL? - Page 1
Forum section: electronics / general

author: kgavionics
author_rank: Regular Contributor
timestamp: March 16, 2025, 01:42:23 am
content: Hello guysI use Keil uvision as an IDE for STM32 chips programming and I want to move to more modern IDE like VS Code (which works very well with the CH32V003 Community-PIO-CH32V on GitHub). There is a similar PlatformIO for stm32 chips (https://github.com/platformio/platform-ststm32), but for some reason it doesn't work for me complaining about a missing Jason file...My question, is there a way to use Vscode with only Cmsis ( the Keil uvison way) that doesn't use the Cube IDE as a start-up tool?TIA

author: voltsandjolts
author_rank: Unknown
timestamp: March 16, 2025, 09:15:18 pm
content: Up for a makefile project?https://github.com/ataradov/mcu-starter-projects
Looking for instruction compatible with Toshiba TMP86FH47BUG - Page 1
Forum section: electronics / general

author: JoeyG
author_rank: Regular Contributor
timestamp: September 14, 2022, 08:15:01 am
content: I'm trying to work out if this mcu is variant of the 80c51 intel core or motorola 6800 core or Z80 or something elseThe data sheet says " 8-bit single chip microcomputer TLCS-870/C series"https://toshiba.semicon-storage.com/info/TMP86FH47BUG_datasheet_en_20110510.pdf?did=6334&prodName=TMP86FH47BUG

author: woofy
author_rank: Frequent Contributor
timestamp: September 14, 2022, 08:54:25 am
content: Instructions look a little z80-like, but they are not. I think its a cpu of their own design, an enhanced z80 maybe.

author: Benta
author_rank: Super Contributor
timestamp: September 14, 2022, 07:15:44 pm
content: Quote from: JoeyG on September 14, 2022, 08:15:01 amNone of them. The Toshiba architectures are proprietary.

author: spth
author_rank: Regular Contributor
timestamp: March 16, 2025, 04:43:21 pm
content: The TLCS-870/C is a successor of the TLCS-90, which itself is a Z80 derivative. However, neither are binary compatible with the Z80 (and the TLCs-870/c is not binary compatible with the TLCs-90 either).However, there are still lots of similarities with the Z80. Except for the added W register, the TLCS-870/C has the same register set as the Z80. And the roles of individual registers is very similar to the Z80: register A is used as 8-bit accumulator, register pair HL has a dual role as 16-bit accumulator and pointer register, registers IX and IY are used as index registers. The main difference is probably a lrge number of additional addressing modes (this already started with the TLCS-90).
Bluepill grief - Page 1
Forum section: electronics / general

author: ME
author_rank: Frequent Contributor
timestamp: March 11, 2025, 02:45:21 pm
content: I have a bp that i had to remove c13+c14 to use it with a BH3SAP gpsdohttps://www.eevblog.com/forum/testgear/10mhz-gpsdo-by-bh3sap/since doing the cap removal it seems not to run,the bp uses the gpsdo clock in this application, Are those caps needed for flashing the bp ,thread herehttps://www.eevblog.com/forum/testgear/10mhz-gpsdo-by-bh3sap/150/

author: pcprogrammer
author_rank: Super Contributor
timestamp: March 11, 2025, 07:46:56 pm
content: Did you also remove the crystal?To have the MCU run from an external clock source you connect the output of your generator to pin 5 of the STM32F103C8 (PD0-OSC_IN). When the 8MHz crystal is still on the board it most likely won't work.

author: ME
author_rank: Frequent Contributor
timestamp: March 11, 2025, 08:06:00 pm
content: read the thread i linked.

author: ozcar
author_rank: Frequent Contributor
timestamp: March 12, 2025, 03:36:40 am
content: Depends on how you try to reprogram it.If you use a bootloader loaded into the flash, then that might be dependent on the 8MHz crystal (called HSE for High Speed External) and the associated capacitors. If it is a USB bootloader, then it almost certainly won't work if the HSE is disabled.Programming using the "system memory" boot mode via USART should still work though, as that uses HSI (High Speed Internal) for the clock source.Programming using SWD (ST-link) should also work, but might require you to reset the BP if you have loaded code into it which uses the SWD pins as GPIOs (not that likely, but you never know).However, it seems that the BP is not working in the gpsdo either? You might have something else wrong. Was the BP working at all before you removed the capacitors?Come to think of it, you have not said if you are trying to reprogram it in situ in the gpsdo, or if you removed it.

author: pcprogrammer
author_rank: Super Contributor
timestamp: March 12, 2025, 06:52:33 am
content: Quote from: ME on March 11, 2025, 08:06:00 pmTo this I can say read all the ST documentation related to the STM32F103C8. In particular this document:https://www.st.com/resource/en/reference_manual/rm0008-stm32f101xx-stm32f102xx-stm32f103xx-stm32f105xx-and-stm32f107xx-advanced-armbased-32bit-mcus-stmicroelectronics.pdfI will give a hint. Read the section about the clock control. (Chapter 7)

author: woofy
author_rank: Frequent Contributor
timestamp: March 14, 2025, 04:13:44 pm
content: Moved!
Onboard USB or external USB-serial chip for STM32G431 microcontroller - Page 1
Forum section: electronics / general

author: mr_jj
author_rank: Newbie
timestamp: March 13, 2025, 09:15:09 am
content: For my project, I need an isolated serial interface to communicate with a python program that could be running on Windows, Mac or Linux. The communication speed needs to be around 1Mbaud. The microcontroller that I am using is an STM32G431, which has an inbuilt USB peripheral. I have read that people often have trouble using the STM's USB CDC device and getting a high data transfer rate. Hence the question, for ease of installation and performance, is an external FT232 or CP2102 USB-serial chip a better option? Do they both interface equally with the ubiquitous pyserial lib? Also, are the STM USB drivers stable across the range of platforms?

author: voltsandjolts
author_rank: Unknown
timestamp: March 13, 2025, 09:22:52 am
content: I've not used this G431 device, but in general it is relatively easy to use an existing library for USB CDC serial for STM mcu which have built-in usb peripheral. But if you're relatively new to STM32 and you just want to get going with your actual application, use the uart peripheral and ft232 (or whatever chip). Then, if you have time at the end of your firmware development, spend some time to add in the usb part.Yes, both will work fine with pyserial. Both are cross platform.
MPLAB X IPE Shortcut Keys ? - Page 1
Forum section: electronics / general

author: David_AVD
author_rank: Super Contributor
timestamp: January 20, 2022, 10:39:06 pm
content: Is there a way to assign a shortcut key to the Program button in MPLAB X IPE ?When programming a bunch of boards it would be easier than clicking the mouse.

author: karpouzi
author_rank: Newbie
timestamp: March 12, 2025, 12:37:52 pm
content: Was wondering the same. I don't believe there are any, unfortunately

author: eugene
author_rank: Frequent Contributor
timestamp: March 12, 2025, 03:37:39 pm
content: Have you considered IPECMD? It's CLI. Type the command in once (could be a batch file or script), then hit the up arrow followed by the Enter key.
How to implement ENDAT protocol with stm32f103? - Page 1
Forum section: electronics / general

author: seyedsaeed
author_rank: Regular Contributor
timestamp: March 11, 2025, 09:54:56 am
content: HiI am using ECN 1313 encoder.I implemented ENDAT protocol with stm32f103 which uses microcontroller GPIOs to control clock and data line.The problem is that this encoder outputs 0 to 8192 for 180 degree rotation but should output 0 to 8192 for 360 degree rotation.The second problem is that 0 to 8192 are sent as even numbers and odd numbers do not exist.
ESP32 "undocumented opcodes" backdoor........ - Page 1
Forum section: electronics / general

author: Smokey
author_rank: Super Contributor
timestamp: March 09, 2025, 03:47:48 am
content: Interesting...https://www.bleepingcomputer.com/news/security/undocumented-backdoor-found-in-bluetooth-chip-used-by-a-billion-devices/https://www.tarlogic.com/news/backdoor-esp32-chip-infect-ot-devices/

author: Bud
author_rank: Super Contributor
timestamp: March 09, 2025, 05:23:48 am
content: Duplicate, there is already thread herehttps://www.eevblog.com/forum/security/bluetooth-backdoor/

author: Smokey
author_rank: Super Contributor
timestamp: March 09, 2025, 08:22:27 am
content: Shit. I searched and everything. My bad.
Programming CYPD3171 chip with the CY8CKIT-059 prog kit - Page 1
Forum section: electronics / general

author: teslinius
author_rank: Regular Contributor
timestamp: March 04, 2025, 09:17:08 pm
content: Hello,i have a custom designed pcb that uses a cypd3171 power delivery chip.Recommended programmer is the miniprog3 or miniprog4, but those are too expensive for me.So i ordered CY8CKIT-059 programmer which someone told me it would work.The programming connections are as in the schematic below, i have checked all contacts and connections and for some reason the cypd3171 chip is not detected in the PsocCreator software.Any idea on what could be the problem?Do i have to modify something in psoc creator?

author: GromBeestje
author_rank: Frequent Contributor
timestamp: March 05, 2025, 09:47:32 am
content: In my experience with Cypress microcontrollers (limited to the PSoC4 family) the reset line needs to be attached.As I see you have not attached it, that might be the problem.

author: danchouzhou
author_rank: Contributor
timestamp: March 05, 2025, 10:29:30 am
content: Hey, I just posted a new topic, explaining how to use the programmer on a development board to program another target chips. FYI, hope this helps.https://www.eevblog.com/forum/microcontrollers/programming-nuvoton-chips-by-the-on-board-debug-probe-nu-link2-me/

author: teslinius
author_rank: Regular Contributor
timestamp: March 05, 2025, 06:06:04 pm
content: After connecting the reset line the chip is recognized and i can program it.I don't know why in the datasheet it said you don't need to connect the reset, probably miniprog3 doesn't need it.Thanks for the help.

author: GromBeestje
author_rank: Frequent Contributor
timestamp: March 07, 2025, 11:31:14 am
content: The microcontroller does not need it, but it has something to do with the way the software interacts with it.Using a J-Link debugger connected to a PSoc4: SEGGER's software requires the reset line. OpenOCD can connect without.edit: typo
ESP32, LEDC, LED PWM channels and v3.0+ arduino_esp32 core migration - Page 1
Forum section: electronics / general

author: djsb
author_rank: Super Contributor
timestamp: March 06, 2025, 02:40:57 pm
content: I'm trying to understand how LED PWM channels work in ESP32 using the Arduino core. I found this example using 3 LED's on 3 seperate pins but using 1 channel (an idea I've yet to understand fully)Code:const int PWM_CHANNEL = 0; // ESP32 has 16 channels which can generate 16 independent waveformsconst int PWM_FREQ = 500; // Recall that Arduino Uno is ~490 Hz. Official ESP32 example uses 5,000Hzconst int PWM_RESOLUTION = 8; // We'll use same resolution as Uno (8 bits, 0-255) but ESP32 can go up to 16 bits// The max duty cycle value based on PWM resolution (will be 255 if resolution is 8 bits)const int MAX_DUTY_CYCLE = (int)(pow(2, PWM_RESOLUTION) - 1);const int LED_1_OUTPUT_PIN = 18;const int LED_2_OUTPUT_PIN = 19;const int LED_3_OUTPUT_PIN = 21;const int DELAY_MS = 4; // delay between fade incrementsvoid setup() {// Sets up a channel (0-15), a PWM duty cycle frequency, and a PWM resolution (1 - 16 bits)// ledcSetup(uint8_t channel, double freq, uint8_t resolution_bits);ledcSetup(PWM_CHANNEL, PWM_FREQ, PWM_RESOLUTION);// ledcAttachPin(uint8_t pin, uint8_t channel);ledcAttachPin(LED_1_OUTPUT_PIN, PWM_CHANNEL);ledcAttachPin(LED_2_OUTPUT_PIN, PWM_CHANNEL);ledcAttachPin(LED_3_OUTPUT_PIN, PWM_CHANNEL);}void loop() {// fade up PWM on given channelfor(int dutyCycle = 0; dutyCycle <= MAX_DUTY_CYCLE; dutyCycle++){ledcWrite(PWM_CHANNEL, dutyCycle);delay(DELAY_MS);}// fade down PWM on given channelfor(int dutyCycle = MAX_DUTY_CYCLE; dutyCycle >= 0; dutyCycle--){ledcWrite(PWM_CHANNEL, dutyCycle);delay(DELAY_MS);}}It appears that the ledc code has changed in the latest version of the arduino_esp32 core (I'm using V3.2). According to this migration guidehttps://github.com/espressif/arduino-esp32/blob/master/docs/en/migration_guides/2.x_to_3.0.rst#id4QuoteI just want to get this example working before I try and understand how the whole LED channels thing works. Can anyone help? Thanks.
feldhell beacon - Page 1
Forum section: electronics / general

author: drspastic
author_rank: Contributor
timestamp: March 06, 2025, 01:41:49 pm
content: https://paste.debian.net/1361534/two examples of trying to get this code right. one where the ui works ok, and one where the actual beacon works, but cant escape the send loop via ui.how can i get both working?the aproach is a bit odd i know. most feldhell beacons encode on the fly but run into timing issues when message length or other program elements messes it up. i chose to compile the message into a binary string then just send that.i have a feeling the answer lies in interupts, but i dont know why or how to implement it. im using esp32c3 supermini because of size and weight. i suppose a dual core will let me run the ui independent from the audio sending.eventually i will add an si5351 that the ui can set frequency. i gave up on modulating via software because it just wouldnt play right, and an extra transistor is ok for someone more happy with hardware than software. unless there are suggestions otherwise...https://github.com/IU5HKU/ESP8266-FeldHell/blob/master/Esp8266_FeldHell.inoi did find this but couldnt get it working
Programming Nuvoton chips by the on-board debug probe “Nu-Link2-Me” - Page 1
Forum section: electronics / general

author: danchouzhou
author_rank: Contributor
timestamp: March 05, 2025, 10:17:09 am
content: Regarding the development environment for the open source project 003Clock mentioned weeks ago, how can you flash the compiled binary into the device?https://www.eevblog.com/forum/microcontrollers/vs-code-sdcc-git-build-environment-for-8051-microcontroller/You can use the Nu-Link2-Me debugger on the development board instead of a standalone Nu-Link-PRO debugging probe.Most of their development boards are designed so that the debugging probe part can be snapped off (similar to a stamp hole / V-cut). Today, I'm going to introduce the NuMaker-PFM-M487 development board. By modifying a resistor, we can use it as a standalone debugging probe without breaking it apart.However, due to space and cost constraints on the development board, the Nu-Link2-Me's detailed functions still differ from the full version of Nu-Link-Pro or Nu-Link2-Pro. You can refer to the table below for more details.The trick is to connect the reset pin of the target device (M487JIDAE) on the development board to the ground using a jumper wire, keeping it in the reset state. This way, when another target device is connected in parallel with Nu-Link2-Me, the signals will not interfere with each other.You can download the NuMaker-PFM-M487 documentation here:https://www.nuvoton.com/resource-files/UM_NuMaker-PFM-M487_User_Manual_EN_Rev1.01.pdfIn Section 3.1 of the NuMaker-PFM-M487 User Manual, we see the Nu-Link2-Me circuit diagram. Fortunately, there is a zero-ohm jumper resistor, ICER3, between the connection to M487JIDAE.On the development board, ICER3 is a 0603 package zero-ohm resistor.Replace this zero-ohm resistor with a 1K ohm resistor to achieve "isolation." This way, when M487JIDAE's reset is grounded by jumper wires physically, The Nu-Link2-Me's reset can still present a high signal.Solder the pin header to Nu-Link2-Me, remembering to solder it on the Nu-Link2-Me side, as the reset pin header solder joint on the target side is already past ICER3.Now, use a jumper wires to connect M487JIDAE's reset and GND, keeping it in the reset state.Testing with the recently made 003Clock, the software can recognize the chip and perform programming using Nuvoton's programming tool.
Any break point debugger for micropython on Raspberry Pi Pico hardware - Page 1
Forum section: electronics / general

author: Wilson__
author_rank: Frequent Contributor
timestamp: February 26, 2025, 04:22:28 pm
content: Any break point, single step debugger for micropython on Raspberry Pi Pico hardware? Thonny, Visual Studio, etc.Web info about 2 years old say it is not supported on micropython. Only work on the "big" python. Yes, I tested it ok on Thonny on "big" pythonSome newer web search said it is supported on Visual Studio but is buggy.Any latest info?

author: abeyer
author_rank: Frequent Contributor
timestamp: February 26, 2025, 06:35:59 pm
content: micropython does have some sys.settrace support now, but iirc, it is disabled in all standard builds due to the performance impact. You have to build and install a debug enabled version of micropython for your device first to have even the support for a debugger.There is still limited support for actually using this, even once it's there... there was some work on a tool called mpdb that at least provided some minimal subset of pdb commands, but it was still pretty limited last time I looked at it. I don't think any of the IDEs have picked this up yet and gotten something working.

author: Doctorandus_P
author_rank: Super Contributor
timestamp: March 02, 2025, 09:21:54 am
content: I don't use python much, but use C instead.For the more complex, algorithms, I write and debug them on my PC, before I put them in a microcontroller.For timing sensitive parts, or code that is dependent on the micrcocontroller hardware, I usually use some uC pins for debug output, and then catch their changing states with a logic analyser. For example, with a spare uart Tx pin you can output both state information, and measure timing with a logic analyser.