hybridfree/eevblog-posts huggingface dataset:
Bootloader and Application Code Placement in P89V51RD2 Flash - Page 1
Forum section: electronics / general

author: EVblog1
author_rank: Contributor
timestamp: June 17, 2025, 03:33:06 pm
content: I have question If we flash a bootloader into the P89V51RD2 first (using an external programmer), and later we upload the main application hex file, does the bootloader sit at the start of the flash memory (like 0x0000), and the actual application code starts right after it?For example:Bootloader → Lives at 0x0000 to 0x0FFF (let's say 4KB).App Code → Starts from 0x1000 onwards.Is that how it works?And when the chip powers up:Bootloader runs first → Checks for new firmware over UART.If no update, jumps to 0x1000 → Runs the main app.Am I getting this right?, if I’m missing something, Please let me know

author: wek
author_rank: Frequent Contributor
timestamp: June 18, 2025, 07:46:48 am
content: I havewritten a few wordsabout the ISP and IAP (i.e. programming device through UART, and self-programming, both using the default bootloader) in P89V51RD2, but that was quite a couple years ago, and I haven't used this mcu for ages, so can't offer more than what can be found there.
PIC18F6621 write protection question - Page 1
Forum section: electronics / general

author: jerryk
author_rank: Regular Contributor
timestamp: June 07, 2025, 05:52:18 pm
content: I have board with the PC18F6621 as it's MCU. It looks like all the code and write protection bits are enabled. Is it possible to erase the MCU and reprogram? I keep getting the following error:"Erasing...[config mem] 0x300001, expected 0x2f, got 0x0.Failed to erase the device"I've tried to erase with both MPLABX and IPE and error is always the same.Jerry

author: DavidAlfa
author_rank: Super Contributor
timestamp: June 07, 2025, 07:21:20 pm
content: Try;https://forum.microchip.com/s/topic/a5C3l000000BrGZEA0/t392389

author: jerryk
author_rank: Regular Contributor
timestamp: June 07, 2025, 10:40:36 pm
content: It took a couple of tries but it finally worked. Seems like my PICkit 4 has a mind of it's own sometimes as it took awhile for IPE to recognize the PICkit 4. Anyway - Thanks for the help.Jerry

author: ahsrabrifat
author_rank: Regular Contributor
timestamp: June 15, 2025, 08:34:42 am
content: Quote from: jerryk on June 07, 2025, 05:52:18 pmIf the chip is completely locked and HVP fails, you cannot unlock or read the contents.
Interfacing STM32 and Tenum-640,  Camera Not Responding -  - Page 1
Forum section: electronics / general

author: Assad
author_rank: Newbie
timestamp: June 16, 2025, 10:57:13 am
content: I'm trying to connect a Tenum 640 thermal camera (Base + Feature Board configuration) to my STM32 Nucleo board but getting absolutely no response from the camera. I've tested my STM32 UART with loopback and it works fine, so the issue is definitely with the camera side. The camera doesn't respond to any commands through RS232 interface (using TTL-to-RS232 converter) and also doesn't show up as a COM port when I connect it directly to my PC via USB.I've tried different baud rates (9600, 57600, 921600), waited long boot times, used external power supply, and tested with both terminal software and STM32 code. The camera seems to power up normally but just won't communicate at all. There are no error messages or unknown devices showing up anywhere.Has anyone successfully interfaced a Tenum 640 Base + Feature Board before? What could be causing this complete communication failure? Any suggestions on how to troubleshoot this or alternative ways to test if the camera is working would be really helpful. I'm open to any ideas or different approaches to get this working.

author: Pseudobyte
author_rank: Frequent Contributor
timestamp: June 16, 2025, 03:15:42 pm
content: I would attempt to help you but they don't make their full datasheet available to the public.
Use ICD3 with CCS compiler for programming - Page 1
Forum section: electronics / general

author: 2X
author_rank: Frequent Contributor
timestamp: June 14, 2025, 11:55:02 pm
content: Hello,I am trying to use ICD3 to program a PIC16F628A via a CCS (CCS PCWHD v5.008) compiler direclty (windows 11).I download the below interface from CCS site and I have install the MPLAB v8.92. Also, I tried with the MPLAB simultaneously open with the CCS compiler but nothing changed.I am getting this error: "Failureunable to open device: The MPLAB API for this device failed to load"MPLAB® ICD 2, MPLAB® ICD 3, MPLAB® ICD 4, MPLAB® PICkit™ 3, MPLAB® PICkit™ 4 & MPLAB® REAL ICE™ Interface:https://www.ccsinfo.com/downloads.php#mplabPlugIn

author: 2X
author_rank: Frequent Contributor
timestamp: June 15, 2025, 12:29:48 am
content: Also with the version CCS PCWHD v5.120 and MPLAB v8.92 I am geting a different error: "unable to locate a 32bit jvm...."
MounRiver Studio 2 - does not compile C++ programs at all? - Page 1
Forum section: electronics / general

author: dmderev
author_rank: Contributor
timestamp: January 10, 2025, 04:09:05 am
content: I downloaded MounRiver studio 2 (the one based on VScode) and tried to develop some code for CH32V003, using its own and then CH32V003fun libraries. When the program is written in C (or has *.c filename) it somewhat works, however, there are glitches. There is a panel to specify include paths that allows to specify -I paths and -isystem paths to my libraries.However, when I list the -I mylibs, they are not found. If I list the path in -isystem panel, the quoted #include ".." are found. It is strange because the -isystem is supposed to specify paths for #include <..>, so it looks like a bug.But when I change file extension to *.cpp for my code or for included examples, the compiler completely fails to find any #includes.Tracing it to the root, it looks that c++ compiler uses a different set of settings, and they are not accessible from GUI (project properties).The *.wvproj json file contains two sections: "ccompiler": and "cppcompiler":. The first one defines all switches for C compilation and that is what is set from project properties window. The other one contains empty entries:"includes": {"include_paths": [],"include_system_paths": [],"include_files": [] }.Probably they are supposed to define switches for C++ compilation, but because they are empty and not fillable from GUI, the paths cannot be specified.I tried to add the definitions to project file manually in this section, but opening the project clears these fields and compiler does not work.Did anyone manage to compile any C++ code and how?Is it a bug in the tool? How to report this bug and any possible fixes?The CH32V is a nice chip, but its IDE tools are bad: there is no compatibility between MounRiver and PlatformIO and it looks that the user has not only take care of bad documentation, but also debug and tweak the development tools - an extra barrier.

author: Jordan
author_rank: Newbie
timestamp: January 16, 2025, 07:23:17 pm
content: HiI was also struggling with this a bit. You need to switch into c++ in order to have additional sections to configure includes and other settings for c++.To achieve this you need just click at status bar right after bookmarks (left bottom side of application). There is the name of your project. After clicking this you will see options to switch to c++. I am attaching AGIF presenting it in details (zipped because this system stripped animation of the gif).

author: dmderev
author_rank: Contributor
timestamp: June 14, 2025, 04:37:35 am
content: This was really great but was never explained anywhere! The property of the project is selected from status bar! Who could guess it, and you did! Appreciated.Interestingly, then the options for C++ compiler open, and need to be filled.It would be more intuitive for IDE to ask what type of project (C or C++) the user wants to create...
Microchip ATMSAM C21 - CAN BUS Bootloader - HELP! - Page 1
Forum section: electronics / general

author: HTuts
author_rank: Newbie
timestamp: June 10, 2025, 01:26:56 pm
content: Hi,I want to be able to read/write using a CAN BUS interface (just like several motorsports modules such as MoTec PDM's, that we can ready its values in real time and write new parameters, everything through CAN BUS interface).I couldn't find any documentation regarding this.Anyone could help?

author: ataradov
author_rank: Super Contributor
timestamp: June 10, 2025, 04:11:59 pm
content: The datasheet is the documentation. There is not going to be a document that describes how to make the exact finished product you want.You get CAN stack or make your own and design your protocol on top of that.

author: SiliconWizard
author_rank: Super Contributor
timestamp: June 10, 2025, 05:05:53 pm
content: Quote from: ataradov on June 10, 2025, 04:11:59 pmEven ChatGPT?

author: ataradov
author_rank: Super Contributor
timestamp: June 10, 2025, 05:07:25 pm
content: I'd like to see someone try.

author: bobxyz
author_rank: Contributor
timestamp: June 10, 2025, 06:52:52 pm
content: 2nd link from a google of: atsamc21 can bootloaderis:https://www.eevblog.com/forum/microcontrollers/can-on-atsamc21j18a/

author: ataradov
author_rank: Super Contributor
timestamp: June 10, 2025, 06:54:59 pm
content: But the actual question is not about the bootloader. And this is why ChatGPT will not help either. For it to have a chance at doing anything, you need to at least know how to ask a question.
Searching for AVSIM09 - Page 1
Forum section: electronics / general

author: dj831
author_rank: Regular Contributor
timestamp: June 19, 2023, 10:01:53 am
content: Hi community,I'm searching for that very old AVSIM09 software made by Avocet systems, a company that disappeared a while ago. When I was young, i.e a long ago, I had fun using that software to simulate my 6809 programs - 6809 is the processor I learned at school in the late 80's.Thanks

author: Doctorandus_P
author_rank: Super Contributor
timestamp: July 04, 2023, 08:09:12 pm
content: It's two weeks now without an answer...I suggest you look into other simulators for the 6809.

author: avaqsemi
author_rank: Newbie
timestamp: July 05, 2023, 09:37:22 am
content: could not find it either.

author: Propaganda
author_rank: Newbie
timestamp: July 05, 2023, 05:12:17 pm
content: Maybe this?https://archive.org/details/avigosdk

author: ozcar
author_rank: Frequent Contributor
timestamp: July 06, 2023, 04:29:46 am
content: Quote from: avaqsemi on July 05, 2023, 09:37:22 amA number of emulators were written for 6809-based machines that ran the "Flex" operating system. One or more of those, if you can find them, might be able to run 6809 code that is not Flex-related. Or, perhaps for your purposes it may not matter that they were specifically for Flex systems.I have not really looked at these for years, but some names you can try looking for are Reflex, Flexemu and SWTPCemu. Taking a quick look myself now, I found the last of those here:http://www.evenson-consulting.com/swtpc/

author: dj831
author_rank: Regular Contributor
timestamp: June 08, 2025, 10:31:57 pm
content: Answering myself to that topic ...After sorting my c.a. 500 floppy disks, I found what I was looking for. For those interested, I uploadedAVSIM09(Avocet Software, 1987) tovetusware.com. I also uploadedAVSIM05(1987 too), andCross-16(1986), a CLI meta assembler for various processors of that era.
ESD protection IC for high speed interfaces - Page 1
Forum section: electronics / general

author: newtekuser
author_rank: Frequent Contributor
timestamp: May 27, 2025, 03:32:02 am
content: I am using a ECMF2-40A100N6 choke to protect the differential pairs in a USB2.0 application. However, this form factor is a pain to deal with. Can someone please recommend an alternative in SOIC-8 form factor?

author: fchk
author_rank: Frequent Contributor
timestamp: May 27, 2025, 05:47:19 am
content: Quote from: newtekuser on May 27, 2025, 03:32:02 amYour part is meant for really high speed. The package is required for minimal interference. SOIC wouldn't work.For USB 2.0 I often use Würth 8240026, which comes in a SOT143 package. Specifically designed for USB.https://www.we-online.com/components/products/datasheet/8240026.pdfhttps://www.digikey.com/en/products/detail/w%C3%BCrth-elektronik/8240026/3900525

author: newtekuser
author_rank: Frequent Contributor
timestamp: May 28, 2025, 02:21:03 am
content: Quote from: fchk on May 27, 2025, 05:47:19 amIs there a reason why this guy in SOIC8 package wouldn't work?https://www.digikey.com/en/products/detail/semtech-corporation/SRDA05-6-TBT/5113683In its datasheet, it does say that it can be used for "USB Power & Data Line Protection".I also found this which is the cheaper of them all:https://www.digikey.com/en/products/detail/littelfuse-inc/SRDA05-4BTG/4251950I see both having high capacitance, but I'm only using USB FS and don't care about signal integrity at high speeds.

author: fchk
author_rank: Frequent Contributor
timestamp: May 28, 2025, 05:16:24 pm
content: Quote from: newtekuser on May 28, 2025, 02:21:03 amSOIC is not the best choice for routing differential pairs. You only need D+, D-, and VBUS.Quote from: newtekuser on May 28, 2025, 02:21:03 amYour attitude seems somewhat sloppy to me.And: SOT143 is like SOT23 not difficult to solder at all.Cheaper alternative: Nexperia PRTR5V0U2X-Qhttps://assets.nexperia.com/documents/data-sheet/PRTR5V0U2X-Q.pdfor Yageo UDT14A05L03https://www.yageo.com/upload/media/product/app/datasheet/cpc/esd/udt14a05l03.pdf

author: NorthGuy
author_rank: Super Contributor
timestamp: May 28, 2025, 10:09:34 pm
content: If this is for your own use, do not worry about protection. The chance of harmful ESD discharge while connecting the USB cable is slim to none. Not to mention that most USB chips will already have built-in ESD protection.

author: newtekuser
author_rank: Frequent Contributor
timestamp: May 29, 2025, 01:30:02 am
content: Thank you all for the suggestions, I'll go the SOT route!

author: wraper
author_rank: Unknown
timestamp: May 29, 2025, 01:39:52 am
content: SOIC package is basically nonexistent for this. Use SOT-23-6 part like USBLC-2SC6.
CCS IDE Compile Vs Build Vs Rebuild Vs Clean - Page 1
Forum section: electronics / general

author: 2X
author_rank: Frequent Contributor
timestamp: June 17, 2025, 05:54:37 pm
content: Hello,in CCS IDE what is the difference between Compile, Build, Rebuild and Clean?

author: Helix70
author_rank: Unknown
timestamp: June 22, 2025, 06:26:35 am
content: Compile just compiles each c file into an object file, no linking.Build compiles all changed files and links them into the final binary.Rebuild forces all files to be compiled and linked whether they have changed or not.Clean removes all compilation assets from previous builds, forcin g the next build to compile and link all files/objects.Josh

author: SteveThackery
author_rank: Super Contributor
timestamp: June 22, 2025, 11:06:02 am
content: Quote from: Helix70 on June 22, 2025, 06:26:35 amWhat are "compilation assets"?

author: 2X
author_rank: Frequent Contributor
timestamp: June 22, 2025, 02:31:25 pm
content: Quote from: Helix70 on June 22, 2025, 06:26:35 amIf I understand right. Compile just checks the C file for any errors (like syntax errors, declarations etc - don't create the hex file for programming the MCU) and build creates the hex file for programming the MCU?If you please, could you give a practical example where the clean function/button is useful and why the rebuild is not enough?@SteveThackeryQuoteAlso, I don't know what they are.

author: djsb
author_rank: Super Contributor
timestamp: June 22, 2025, 03:32:04 pm
content: This might be usefulhttps://www.ccsinfo.com/downloads/ccs_c_manual.pdf

author: ejeffrey
author_rank: Super Contributor
timestamp: June 22, 2025, 04:37:54 pm
content: Quote from: SteveThackery on June 22, 2025, 11:06:02 amOutputs of the build process. Mostly object files and executables, but can be any type of file that is generated following a rule.Make clean is generally used either to prepare for distribution / commit to version control, or to clean up generated files that might be out of date but not detected as such. This can happen if timestamps get corrupted or an implicit dependency changes (such as the makefile itself, compiler version, or external libraries).
ESP32 H2, is it possible to read the comparator status? - Page 1
Forum section: electronics / general

author: JPortici
author_rank: Super Contributor
timestamp: May 27, 2025, 12:43:21 pm
content: I wanted to use the internal comparator.. but it seems it's impossible to tell if the output is high or low. I want to look at the status every hundred ms or so (reading a button that can be at different logic levels based on configuration, didn't really have space for more external circuitry than a couple of resistors)By looking at the documentation and the API reference it seems i can not tell if the input is high or low. I couldn't find a field that indicates the status, i can only install a callback for when the output changes.. and that doesn't even help me as while the callback data has a "cross_type" field, indicating high_to_low or low_to_high, in the ESP32-H2 it always indicates "any", for some reasonI can distinguish between them by changing the Interrupt Condition... but it would be really easier if i could just read the comparator output
how to install codeblocks software to get it working with jieli mcu?? - Page 1
Forum section: electronics / general

author: zezo2030
author_rank: Contributor
timestamp: June 04, 2025, 03:34:33 pm
content: hello, I need support how to install codeblocks software to get it working with jieli mcu??https://www.zh-jieli.com/product/.https://www.codeblocks.org/downloads/

author: ahsrabrifat
author_rank: Regular Contributor
timestamp: June 09, 2025, 08:11:36 am
content: I think you will get some guidelines here.https://doc.zh-jieli.com/Tools/zh-cn/dev_tools/dev_env/index.htmlhttps://doc.zh-jieli.com/Tools/zh-cn/dev_tools/dev_env/code_blocks.html
touch key for fmd mcu FT62F21X??? - Page 1
Forum section: electronics / general

author: zezo2030
author_rank: Contributor
timestamp: May 12, 2025, 04:50:30 pm
content: Hi everyone, is there any example on touch key for fmd mcu FT62F21X ?? I need how to configure the mcu in software and hardware(pcb).Thank you.

author: zezo2030
author_rank: Contributor
timestamp: May 19, 2025, 01:47:06 pm
content: any support plz?
Survey for embedded programmers - Page 1
Forum section: electronics / general

author: jostrzolek
author_rank: Newbie
timestamp: May 13, 2025, 09:38:51 pm
content: Hi, I am conducting a survey for my master thesis regarding comparison of programming languages for embedded systems. I would be obliged for every input. The survey won't take longer than10 minutes.Link to the survey:https://docs.google.com/forms/d/e/1FAIpQLSeAbpA17UTS6BkZAQGe4dCZazANQa0oCaYUBazHZBxHmZ9mWQ/viewform?usp=dialogThank you!

author: westfw
author_rank: Super Contributor
timestamp: May 14, 2025, 03:20:34 am
content: "Embedded programmers" for microcontrollers only, or also larger embedded systems?There are a bunch of languages it asks about that are pretty uncommon on smallish microcontrollers...Also, are you interested in my decade-old pre-retirement experiences, or only in people doing current development. (Some of those languages were pretty-much non-existent back when I was working!)

author: brucehoult
author_rank: Super Contributor
timestamp: May 14, 2025, 04:57:26 am
content: Quote from: westfw on May 14, 2025, 03:20:34 amYeah, these days a large part of the Raspberry Pi production goes into "embedded" applications.But certain madmen are using Rust on microcontrollers with 2k RAM. It's basically C from that point of view, though with a lot more annoying bondage and discipline.https://albertskog.se/ch32v-in-rust/I think you can get micropython and cut down javascript  on things with 64K RAM .. possibly some kind of Java too -- when I was on the 3 person team making Alchemo native (Thumb) compiled J2ME for early/mid 2000s "feature" phones the smallest one we had to deal with had 390K RAM, and that was annoying, but largely because of media assets for games and also of course the code was loaded into RAM to run it as those things didn't have XIP from a flash filesystem. If we could have ROM'd the app and library code then it would easily have run in 64k for microcontroller kind of tasks. e.g. by a couple of my former colleagueshttps://jerryscript.net/

author: jostrzolek
author_rank: Newbie
timestamp: May 14, 2025, 06:52:03 am
content: QuoteBoth.QuoteI am very much interested in your input too! I guess it's harder for me to get to people with your kind of experience, so it's even more valuable. Anyone who has ever worked on writing code for any size of an embedded system is welcome to participate.

author: westfw
author_rank: Super Contributor
timestamp: May 15, 2025, 10:35:37 pm
content: You don't ask enough questions about OSSW, Source Code Control, or Bug tracking (although the latter may not have enough to do with languages for your purposes.)
ATSAMS70N19 - Page 1
Forum section: electronics / general

author: zGugaFarias
author_rank: Newbie
timestamp: May 07, 2025, 05:10:58 pm
content: Please I'm having problems compiling a code using the atsams70n19 mcu together with an atimel-ice using the atmel studio ide when compiling using the SWD interface the following error occurs: 4109 device not found, sorry for the bad English.

author: ajb
author_rank: Super Contributor
timestamp: May 08, 2025, 05:51:01 pm
content: That sounds like a problem with loading the program into the device, not with compiling the program. It sounds like the programmer is not able to communicate with the MCU. The Atmel ICE has two programming connectors, make sure you are using the one labeled "SAM" and you are using the correct cables/adapters (the Atmel-ICE need one of the connectors on the ribbon cable to be reversed, so make sure you use the ribbon cables it came with).It could help if you go to Tools > Device Programming and share a screenshot of the interface settings. What is the board you are programming, is it a custom PCB? Can you show how the programming interface is connected to the MCU?

author: zGugaFarias
author_rank: Newbie
timestamp: May 09, 2025, 12:14:30 pm
content: I can't share images, but I can pass on the information about I'm using a board made by mcuzone, the device programming settings are correct and the project properties are also correct.

author: ajb
author_rank: Super Contributor
timestamp: May 13, 2025, 03:06:55 pm
content: You say the device programming settings are correct and the project properties are correct, but *something* is wrong, and we can't really help you without more information to go on. You can upload images directly to the forum by clicking "Attachments and other options" under the post editing box.
how to generate .hex file for FMD MCU - Page 1
Forum section: electronics / general

author: zezo2030
author_rank: Contributor
timestamp: May 03, 2025, 07:26:05 pm
content: hihow to generate .HEX file for FMD MCU FROM FMD IDE???Thank you.

author: cwmadhan
author_rank: Newbie
timestamp: May 04, 2025, 06:36:01 am
content: When the build is succesfull it automatically generates the hex file. what error message you are getting?

author: zezo2030
author_rank: Contributor
timestamp: May 04, 2025, 12:49:05 pm
content: its my first time to install FMD IDE, and there is no errors after building the ProJet.also when I compile the project using gcc or fmccc I will got only three files without .hex file..plz see attched pictures.

author: mikerj
author_rank: Super Contributor
timestamp: May 04, 2025, 01:26:43 pm
content: The information is in Chinese:It translates as:Code:Important tipsWhen using an array and the array offset is calculated, type conversion must be doneExample: Var [i-j] is changed to Var [(unsigned char)(i-j)]Compilation failed

author: zezo2030
author_rank: Contributor
timestamp: May 04, 2025, 02:02:51 pm
content: hi Mikerjyou are right. but I got the same message ,If i compiled an empty project(new project)or an example original project from FMd website...also I dont have this array in my code" Var [ i - j ] ,, Var[ ( unsigned char )( i - j ) ](the new project is an empty code).

author: cwmadhan
author_rank: Newbie
timestamp: May 06, 2025, 01:19:09 am
content: Am using old version IDE which i dont face any issue. My IDE version is V3.0.9. i do have V3.1.0 which is also working fine.

author: zezo2030
author_rank: Contributor
timestamp: May 06, 2025, 10:02:57 pm
content: Hi cwmadhancan you plz send a link to download the old version IDE?Thank you

author: cwmadhan
author_rank: Newbie
timestamp: May 07, 2025, 12:17:13 pm
content: Hi,You can download the 3.0.9 version from the below link...https://mega.nz/file/CF0gWI7J#lb_ZDhA9ijxikEolQJp2bSTJfveY2wD7DpnaFioN4Us

author: zezo2030
author_rank: Contributor
timestamp: May 12, 2025, 04:20:12 pm
content: Quote from: cwmadhan on May 07, 2025, 12:17:13 pmthe link is working well,Thank you.
STLINKV3 Modification - Page 1
Forum section: electronics / general

author: olaf_dreyer
author_rank: Newbie
timestamp: May 12, 2025, 11:15:34 am
content: When using the STLINKV3 with the additioal connector board MB!440 the original back cover can no longer be used. I have designed a 3d-printable back cover that fits the STLINK when the board is attached. I have also made a little connector board that allows me to connect a 6-pin Tag-Connect debugger probe to the JTAG connector.The 3mf file and the Gerber files can be found on my github page:github.com/olafdreyer/stlinkv3modCheersO.
USB card reader IC and STM32F103 - Page 1
Forum section: electronics / general

author: Phaedo
author_rank: Contributor
timestamp: May 06, 2025, 04:47:29 pm
content: Hello all ,I need a bit of help and suggestion with a circuit idea.I have this IC which is used in a USB card reader, datasheet attached. I tried only the Gensys IC and it works perfectly. I also tried the STM32 for writing data as a FAT32 system and that also works without any problems.So I want to write data to the SDCARD using say STM32 or any micro, using a battery as a power supply. Once the data is collected, the device will be connected to the PC through the USB port, where it will use the Gensys IC so that the SDCARD will come up as a disk drive and the data will be downloaded to the PC.During this time the STM32 will not be needed to do anything.I need a circuit idea so that both the STM32 and the Gensys IC can be connected to the SDCARD holder simultaneously , without contention of the outputs. Is this feasible ?TIA

author: fchk
author_rank: Frequent Contributor
timestamp: May 07, 2025, 06:25:28 am
content: Don't do this. You would need multiplexers and need to prevent current backflow to the unpowered part. MMC/SDIO is not designed for multi-master operation.The much better solution is to use the USB peripherial in the STM32 and implement a Mass Storage device on it. This will make your system cheaper and smaller and MUCH more reliable.Read this:http://www.st.com/st-web-ui/static/active/en/resource/technical/document/user_manual/DM00108129.pdfAnd: The STM32F103 ist old. STM's first try. Don't use it for any new developments. Use an STM32F303 instead. More capable, and bugfixed.Read:https://www.st.com/resource/en/application_note/an4228-migrating-from-stm32f1-series-to-stm32f3-series-microcontrollers-stmicroelectronics.pdfhttps://www.st.com/en/microcontrollers-microprocessors/stm32f303.htmlfchk
Micrium OS UDP Rx - Page 1
Forum section: electronics / general

author: palacebuys
author_rank: Newbie
timestamp: May 06, 2025, 08:37:03 pm
content: I am trying to solve an issue where I am receiving two UDP packets within less than one microsecond of each other. I have confirmed this by looking at the delta time between received packets on Wireshark. This delta time is resulting in messages being dropped - I believe because the Ethernet Rx fires a receive interrupt when a new packet comes in and begins moving the data to the Socket Rx Buffer for processing by the software application. But then the second packet comes in but the OS is already in the process of moving the previous packet to the Socket Rx Buffer so it just drops it. Can anyone verify if this is what is happening and is there any solution to this? Can the socket somehow queue messages so that the second incoming packet does not just get dropped?

author: MarginallyStable
author_rank: Regular Contributor
timestamp: May 07, 2025, 01:41:44 am
content: If what you describe is true, seems like a poor implementation of the hardware driver. Typically the interrupt handler would remove the first packet with interrupts disabled preventing another interrupt, usually even checking for additional packets before returning. But without knowing the hardware details (does it have a fifo, ring buffer?) regarding how packets are passed to the software its anyone's guess.One thing to note is that Ethernet is not a guaranteed delivery protocol, thus the driver author may have taken the easy way out, instead of properly implementing the congested case decided to just drop the packet.
Renode - Page 1
Forum section: electronics / general

author: SiliconWizard
author_rank: Super Contributor
timestamp: May 05, 2025, 07:50:27 pm
content: Renode:https://github.com/renode/renodeA tool for embedded system emulation. Has anyone here used it? Opinions?

author: brucehoult
author_rank: Super Contributor
timestamp: May 06, 2025, 01:58:45 am
content: I've known about it for I guess half a dozen years, but I never needed what it gives compared to QEMU or Spike .. or on the other extreme verilator.
Do Puya PY32F microcontrollers have errata sheets? - Page 1
Forum section: electronics / general

author: incf
author_rank: Frequent Contributor
timestamp: April 24, 2025, 01:04:11 am
content: Puya PY32F microcontrollers are impressively cheap, and look like quite a usable "clone" of ST's offerings.But do they have errata sheets?I have a hard time believing that these chips don't have bugs.

author: brucehoult
author_rank: Super Contributor
timestamp: April 24, 2025, 02:46:38 am
content: I don't know about Puya, but with their similar CH32V003 (and other) chips WCH seem to prefer to update the main documentation when errata are reported, rather than having a separate errata document.https://github.com/openwch/ch32v003/commits/main/

author: SiliconWizard
author_rank: Super Contributor
timestamp: April 24, 2025, 12:52:09 pm
content: Yes, and this seems common with chinese chips.Not sure I like that approach. I mean, updating the docs is good, but IMO they should still release lists of errata, otherwise we just don't know, and some changes in docs may appear seemingly out of the blue without warning.That's something I remember raising before, and wondering if it possibly comes from their general corporate culture of not admitting errors publicly, which is seen as "shameful" and a sign of weakness.Worse yet, typically for MCUs, sometimes they don't update docs but instead just update their SDK, providing workarounds for errata (or sometimes just plain removing support for some features that have appeared buggy) ... strictly if you use their SDK.

author: DavidAlfa
author_rank: Super Contributor
timestamp: May 02, 2025, 09:17:58 am
content: I've not seem any, but definitely there will be bugs.I found a huge one in the NVIC controller (Or the flash interface), CCP1 IRQ randomly crashed the system if RDP1 was set,I had to relocate the vector table to the sram.
PEMicro license activator - Page 1
Forum section: electronics / general

author: ratatata
author_rank: Newbie
timestamp: November 19, 2024, 09:12:33 am
content: Hello, comrades!As a proud owner of PEMicro USB-MULTILINK debugger, i was deeply offended by the necessity of purchasing additional software. So, after a few days, I finally managed to figure out the format of the license keys. I hope my script will help someone.

author: valero
author_rank: Newbie
timestamp: April 29, 2025, 09:55:16 am
content: Hello dear friend!I used your script and it helped me a lot. The policy of limiting the number and time period of license activation also unpleasantly discouraged me. Could you with your kind hands help add an activator for the nexus chip utility?I can post a link to the utility if you find time to look at it.
Contactless engine tachometer made by open-source project 003Clock (N76S003) - Page 1
Forum section: electronics / general

author: danchouzhou
author_rank: Contributor
timestamp: April 28, 2025, 04:25:04 am
content: As previously mentioned, the 003Clock kit made with the Nuvoton 1T 8051 N76S003 is more than just a clock. All IO pins were exposed during design, allowing for various interesting applications!OSHW clock kit with 22 cents Nuvoton enhanced 8051 microcontroller N76S003This time, I’m sharing an application: a "contactless engine tachometer". The complete code will be provided in thefull article on NuForum.Engine RPM SignalThe fundamental principle of a tachometer is measuring the frequency between ignition events and converting it into engine speed using analog circuits, digital circuits, or programmable devices.How is Ignition Related to Engine RPM?Looking at Wikipedia, we can learn that modern four-stroke engines operate in a 720-degree cycle, divided into four strokes: intake, compression, power (combustion), and exhaust. The power stroke occurs when the spark ignites the compressed fuel-air mixture in the combustion chamber. This combustion raises the gas temperature, causing expansion, which generates power for the engine.The spark plug is connected to the ignition coil. When receiving an ignition signal, the ignition coil outputs tens of kilovolts to let the spark plug sparks. Since ignition frequency and engine speed have a linear relationship, RPM can be determined through calculation. The most direct way to obtain the RPM signal is by tapping into the ignition signal from the high-voltage coil.EMI from the Ignition Coil Can be Used as an RPM SignalGenerally, noise is an unwelcome interference to the circuits. However, in this case, the EM waves generated by the ignition coil are repurposed as an RPM signal.The waveform shown below was pickup by a probe near the engine while running. The signal is remarkably clear, even though the probe was not directly connected to the vehicle’s circuitry. This means the signal can be detected wirelessly. The observed trigger frequency is 13.8 Hz, which corresponds to an idle speed of 1600 RPM for a motorcycle engine. Later, I'll explain how frequency is converted into RPM.Through practical testing, a 200 mm wire acts as an antenna connected to the microcontroller’s IO, set to pull-up mode to prevent minor noise from causing false triggers. When placed near to the engine, the IO level fluctuates in sync with the ignition pulses. This allows RPM detection without additional circuits or sensors and the modifying the vehicle’s wiring is not required.For more detail about technique & MCU coding, visit NuFourm to read my full-article. (COMPLETE CODE INCLUDED !!!)https://forum.nuvoton.com/en/numicro-8051-mcu/general-discussion/14523The video shows 003Clock has been flashing to the tachometer firmware and then approaching an 125 single cylinder motorcycle which idling at 1600 RPM.
For anyone having problems running Mounriver Studio 2 in Linux - Page 1
Forum section: electronics / general

author: 2nOrderEDO
author_rank: Regular Contributor
timestamp: April 27, 2025, 04:14:00 pm
content: Hello everyone,After upgrading from Fedora 41 to Fedora 42, I encountered an issue with Mounriver Studio 2, which is based on VS Code. While I was able to open the IDE, most of the buttons related to features implemented by the WCH team stopped working. I suspect the issue lies with their internal plugin, which seems to be incompatible with some of the newer libraries.I found a solution by running Mounriver Studio 2 inside a Docker/Podman container, which works far more efficiently than, for example, running the Windows version via Wine.I’ve outlined the steps to set this up in my blog post here:https://eulerprecision.com/troubleshooting-mounriver-studio-2-not-working-on-fedora-42-ubuntu-debian-and-other-linux-systems/Feel free to let me know if this solution has been helpful!

author: brucehoult
author_rank: Super Contributor
timestamp: April 27, 2025, 11:52:45 pm
content: In a similar thing, I run it on a laptop running Ubuntu 24.04 but the laptop always has the lid closed and I actually use it from an M1 Mac.`ssh -X` works but very very slowly, and if I exit and try to run it again (or even leave it idle for a while) it fails and I have to start a new ssh session. `nomachine` works much better.
Renesas: Does anyone have datasheet/pinout for R5F72549R (SH72549R)? - Page 1
Forum section: electronics / general

author: ESEMarty
author_rank: Newbie
timestamp: August 26, 2024, 07:53:39 pm
content: Hi All,Long time EEVblog reader, first time poster!I'm looking for a pinout or even better, a datasheet for the Renesas R5F72549R (SH72549R) microcontroller?I've found a datasheet for the SH7254R group but I'm not sure if the pinout and rest of the datasheet are the same for SH72549R.Can someone shed some light on this?Thanks!

author: eutectique
author_rank: Frequent Contributor
timestamp: September 02, 2024, 11:11:13 am
content: Quote from: circuits on September 02, 2024, 07:06:41 amIs it GPT-3 or GPT-4 ?

author: Tereks
author_rank: Newbie
timestamp: April 26, 2025, 10:08:27 am
content: go to renesas.com and find pdf for R5F72546 or R5F72544
Who would use Renesas F5210 / RX210 MCU? - Page 1
Forum section: electronics / general

author: peter-h
author_rank: Super Contributor
timestamp: April 24, 2025, 02:55:42 pm
content: https://www.mouser.co.uk/datasheet/2/698/REN_r01ds0041ej0150_rx210_DST_20131018-2931068.pdfI am looking at a US designed avionics product which has one of these, just running several SPI devices and outputting one SPI data stream. It is a very undemanding application, and this chip seems an overkill. Is it MIL qualified or some such?The data sheet mentions IEC60730 compliance.

author: PCB.Wiz
author_rank: Super Contributor
timestamp: April 24, 2025, 10:23:29 pm
content: Quote from: peter-h on April 24, 2025, 02:55:42 pmI see it is over 10 years old, and is tagged NRND now.It looks like a new design alternative may be:RX231 Active Product Longevity: 2039It is common for designs to use 'overkill' these days, powerful MCUs are available for very low prices.The selection may be based on what they are used to using. ie another product may use the same part.
GQ PRG-055 MCUmall Programmer - Page 1
Forum section: electronics / general

author: ko4nrbs
author_rank: Regular Contributor
timestamp: April 21, 2025, 08:33:06 pm
content: Has anyone use a GQ PRG-055 MCUmall PIC programmer?https://www.mcumall.com/store/index.php?route=product/product&product_id=40Bill

author: fchk
author_rank: Frequent Contributor
timestamp: April 22, 2025, 02:16:05 pm
content: I don't trust the vendor to provide any software updates. And without any updates this thing might become a brick in Windows 11 at some point if Microsoft tightens its grip or driver certificates expire etc etc. I trust Microchip much more to provide support for a reasonable product lifetime.These programmers were common when PICs were EPROM based. Thats 30-35 years ago. With flash code memory came in-circuit programming via the ICSP header we still know today.If you strongly want such a device I recommend Xeltek. They have been in business for a long time. I got 10 years of updates for my Superpro 280U, which still works in a 32 bit VM.https://www.xeltek.com/And especially for PICs you loose the ability to debug them. Flashing in a Fire&Forget manner yes, but nothing more. Debugging requires MPLABX plus PICKIT.
What can i use to program an ESP32-H2 via JTAG? - Page 1
Forum section: electronics / general

author: JPortici
author_rank: Super Contributor
timestamp: April 23, 2025, 01:09:32 pm
content: I probably dun goof'd this pcb.I've been playing around an ESP32 H2 devboardI then designed a prototype, but i can't figure out how to program/debug it.I routed all the JTAG pins, UART, RESET and BOOT to a connector. Turns out i forgot that ST-Link/J-Link can't program devices other than ST, so i don't have a programmer for it.It was my understanding that i just had to apply power to the device with BOOT low in order to enter download mode, which i did, but "A fatal error occurred: Failed to connect to ESP32-H2: No serial data received" - 75% sure the connections are correct as the device power ups and spits the wrong checksum error through the terminal* i did not route the USB pins as i plan for USB to NOT be accessible in production so they are not reachable. Too bad because it would have been problem solved, as the H2 features USB-JTAG by default *What can i do?I do have a couple of ESP devboards here and there, i did a quick google to see if i could convert them to a debug probe... but besides not being able to find a project, would that even work? these are RISC-V and not ARM..I probably have an usb-uart that routes the control pinsAnd of course i have several programmers, but they are all tied to the manufacturerWhich programmer should i get, besides a genuine JLink which is too much at this moment?

author: xvr
author_rank: Frequent Contributor
timestamp: April 23, 2025, 01:50:16 pm
content: As datasheet says by default JTAG port connected to internal USB Serial (and disconnected from physical JTAG pins), so any external JTAG adapter do not help.Only one possible solution is to use UART pins. Any external USB-UART adapter will work out.QuoteCheck connection of UART - especially UART levels (I have some troubles with CH340 USB-UART bridge - it generates TX signal with low level about 0.9V. ESP32sometimesdon't understand it)

author: JPortici
author_rank: Super Contributor
timestamp: April 23, 2025, 03:37:43 pm
content: Quote from: xvr on April 23, 2025, 01:50:16 pmAh! That sucks. What do people do for production programming then?Ultimately: my problem was that i pulled down GPIO8 instead of pulling it upnow it can be programmed with the UART bootloader, but the board will be -obviously- reworked

author: Fire Doger
author_rank: Regular Contributor
timestamp: April 23, 2025, 03:52:16 pm
content: To use always the JTAG pins burn fuse "EFUSE_DIS_USB_JTAG" via uarthttps://docs.espressif.com/projects/esptool/en/latest/esp32h2/espefuse/burn-efuse-cmd.htmlCode:espefuse.py --port COMxx burn_efuse DIS_USB_JTAG 1To use normal jlink as debugger change the driver with zadig to winusb. (I can't remember if cracked STLinkReflash works too, but it will also require winusb driver)I use ESP-Proghttps://www.aliexpress.com/item/1005006149037453.html
APB2 Timer frequency on STM32F407VET? - Page 1
Forum section: electronics / general

author: kgavionics
author_rank: Regular Contributor
timestamp: April 19, 2025, 12:44:24 pm
content: Hello guysI'm really confused. I'm using Timer10 which is connected to the APB2 bus and my system is running @168Mhz,so according to STM32 Cube my Tim 10 freq should be 168MHZ, but on the datasheet is showing that the ABP2 bus is running @84 MHZ. Which one is correct?TIA

author: ppTRN
author_rank: Regular Contributor
timestamp: April 19, 2025, 12:51:01 pm
content: I think that the 84MHz denotes the speed at witch the bus is able to allow communication between the CPU and the peripherals, not the actual speed of the peripherals attacched to it. You can also see from Cube that you have a x2 block before the clock is fed to the timers of such bus, so apparently timers are clocked separately from the rest of the peripherals

author: pcprogrammer
author_rank: Super Contributor
timestamp: April 19, 2025, 04:30:58 pm
content: You can find information about all of this in the reference manual.https://www.st.com/resource/en/reference_manual/dm00031020-stm32f405-415-stm32f407-417-stm32f427-437-and-stm32f429-439-advanced-arm-based-32-bit-mcus-stmicroelectronics.pdfSee page 152 for a picture of the clock tree. (Section 6.2)It shows what ppTRN wrote.
MPLAB Software Question (Verify Command) - Page 1
Forum section: electronics / general

author: ko4nrbs
author_rank: Regular Contributor
timestamp: April 18, 2025, 03:09:23 pm
content: I am using MPLAB ver. 6.20 toReadand save the firmware from my PIC16F688 chips. The boards they are installed on are no longer supported so am saving the firmware in the event one of the PIC chips gets corrupted. Before I Export the firmware from the PIC I select the Verify command to ensure it was Read properly. I need to compare the firmware between several different PIC chips to make sure they all have the same firmware. Does the Verify command do that if I Open the firmware file on the computer and install a different PIC into the Pickit 3 chip programming adapter? Confused as to what the software is actually Verifying.Thanks,Bill

author: JPortici
author_rank: Super Contributor
timestamp: April 18, 2025, 03:13:25 pm
content: Quote from: ko4nrbs on April 18, 2025, 03:09:23 pmWhen you program, unless you specify it, the programmer already verifies.the process is:- Program hex file- Verify (read back and compare with the provided hex file)- Overwrite the configuration bits to lock readout, if specified in the hex file

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: April 18, 2025, 03:27:32 pm
content: Quote from: ko4nrbs on April 18, 2025, 03:09:23 pmyes, verify compares the loaded file with the device

author: Ian.M
author_rank: Super Contributor
timestamp: April 18, 2025, 03:33:13 pm
content: Note that MPLAB does *NOT* give any sort of warning or error message when you read a code protected PIC MCU. The read-back program memory from a protected PIC is blank (0x0000 NOP filled). Most commercial products that aren't open source use code protection. Unless you have *either* checked that you have valid program memory contents and that the CONFIG word(s) don't have any code protection bits enabled, *or* confirmed that you can program a factory fresh PIC and that it runs in your application, this whole exercise is a futile waste of your time and effort.

author: ko4nrbs
author_rank: Regular Contributor
timestamp: April 18, 2025, 03:45:39 pm
content: Quote from: Ian.M on April 18, 2025, 03:33:13 pmThankfully it's not protected.Bill