hybridfree/eevblog-posts huggingface dataset:
PSA: ESP32 CAN Frequency Assignment Broken in Chip Revision.......... - Page 1
Forum section: electronics / general

author: Smokey
author_rank: Super Contributor
timestamp: September 13, 2023, 10:10:24 pm
content: Been wrestling with getting CAN working on "ESP32-WROOM-32E". Turns out they made a silicon revision that changes the way you set the CANBUS frequency that broke the existing drivers. I found a board with the older hardware revision chip and it just works with the existing library and frequency assignment where the new revisions don't.There has been an open pull request to fix this in the library since 2021 but it hasn't been merged yet. wtf?https://github.com/sandeepmistry/arduino-CAN/pull/71....... So if your CANBUS is hooked up correctly but just refuses to work, try doubling the assigned value for the frequency (ie. If you want 500kb, set it to 1000kb).

author: liaifat85
author_rank: Regular Contributor
timestamp: September 14, 2023, 08:02:26 am
content: I think you can ask this to the ESP32 forum:https://www.esp32.com/viewforum.php?f=23&sid=983fcc53b91be6ea1b3fd85e384ffd8f

author: Smokey
author_rank: Super Contributor
timestamp: September 14, 2023, 08:56:53 am
content: Quote from: liaifat85 on September 14, 2023, 08:02:26 amIt's not really a question.. it's a public service announcement. Doing my civic duty and all that...

author: ace1903
author_rank: Regular Contributor
timestamp: September 14, 2023, 11:14:09 am
content: Thanks for the info.Not so long ago I made one hobby project with can bus and ESP32 using Arduino.It worked well because it was very simple application, to show on led display number received from CAN(DRO for milling machine).But if messages arrived faster that I can process them I saw garbage data.I was suppressed that I was not able to find information for CAN FIFO size inside ESP32.Also I was expecting some messages to be lost not to get garbage.I know that Arduino libraries are not highest quality but want to know your experience about communication stability with ESP32?What software stack are you using on ESP32?

author: Smokey
author_rank: Super Contributor
timestamp: September 14, 2023, 07:06:05 pm
content: I'm using Arduino stuff in this case.You should check the errata. There are like 7 or 8 entries for the canbus, which they call TWAI. Some sound like what you are describing.https://www.espressif.com/sites/default/files/documentation/esp32_errata_en.pdf
AVR- Uploading New firmware on AVR 0 series through UART - Page 1
Forum section: electronics / general

author: sanka1p
author_rank: Contributor
timestamp: September 20, 2023, 02:55:34 pm
content: Hi All,This is completely new topic for me, I am trying to upload firmware on my Atmega1608, through a UART - USB bridge chip. I have a made a block diagram and pasting it below for better understanding. I know, I would have to make a boot-loader first and flash that boot-loader into Atmega1608, but where should I get started for that. I have seen an application note from Microchip that gives info about UART boot-loader and they also gave a sample boot-loader. Would that be a good starting point? At the end I want to take a hex file generated by my IDE and upload that hex file through USB onto the MCU. One important point to note here is that CH9326 is a HID USB device chip.

author: sgnka
author_rank: Contributor
timestamp: September 21, 2023, 07:11:29 am
content: Quote from: sanka1p on September 20, 2023, 02:55:34 pmYou don'thaveto; the 0-series chips can be programmed using a USB-USART bridge over their native UPDI protocol as well using pymcuprog. However, if you actually want to program it without using UPDI or envision having to program it in the field without access to the UPDI pin, then yes, a bootloader is required.Quote from: sanka1p on September 20, 2023, 02:55:34 pmYes, it works well and is simple to understand.Quote from: sanka1p on September 20, 2023, 02:55:34 pmHowever, the example won't work out of the box with CH9326 (and neither will pymcuprog), since the python script expects a serial device connected to the PC and talks to it using pyserial, while your chip presents a HID interface on the PC. You can modify the script to use the hid library or use a CH340/CP2102/FT232 etc. serial-USB converter. I suggest doing the latter.

author: bingo600
author_rank: Super Contributor
timestamp: September 21, 2023, 01:13:04 pm
content: Isn't that mcu a 2K flash device ?How much space will a HiD BL take ??

author: Psi
author_rank: Super Contributor
timestamp: September 21, 2023, 01:31:39 pm
content: Atmega1608 is 16KB

author: up8051
author_rank: Frequent Contributor
timestamp: September 21, 2023, 05:12:55 pm
content: It can be very small.I have my own UART bootloader for ATTiny Series-0.- simple version 256 bytes- version with encrypion (AES128) 768 bytes.

author: Psi
author_rank: Super Contributor
timestamp: September 21, 2023, 09:55:29 pm
content: Mine is 3KB with PC1 encryption,It's used on a 64KB Atmega64A, so I wasn't all that concerned with making it tinyLoosely based on this bootloaderhttps://sourceforge.net/projects/avrub/
MLX12106JB Calibration  - Page 1
Forum section: electronics / general

author: Emrelli
author_rank: Newbie
timestamp: September 13, 2023, 04:33:48 am
content: Hello, I have some Melexis IC MLX12106JB which need to be calibrated for Capacitif Differential Sensors. Unfortunately i can not find any datasheet or proper Evaluation Board. Is there a way to calibrate it ? Thanks very much for your helps in advance...
Pico using SD card on SPI1 - Page 1
Forum section: electronics / general

author: Graffite
author_rank: Contributor
timestamp: September 11, 2023, 01:08:58 pm
content: Hello. I need to get a PI PICO working with a SD card using the 2nd SPI port, SPI1. What do I need as far has libs and configs etc.I am trying the SDFAT lib#include <SPI.h>//#include <SD.h>#include "SdFat.h"Hope you guys can help.Many thanks

author: DavidAlfa
author_rank: Super Contributor
timestamp: September 11, 2023, 02:53:53 pm
content: Github is your friend!https://github.com/carlk3/no-OS-FatFS-SD-SPI-RPi-Pico

author: Graffite
author_rank: Contributor
timestamp: September 11, 2023, 10:19:21 pm
content: Thanks for that link David. I will have a study. I have spent quite a bit of time with Github but not with that link.
New free open-source tool for GUI design w/ SCPI support from EEZ - Page 1
Forum section: electronics / general

author: globoy
author_rank: Frequent Contributor
timestamp: September 11, 2023, 04:44:47 pm
content: I have nothing to do with this tool but an email about it came across my desk today. I think it looks interesting and might be of interest to this crowd.https://www.envox.eu/studio/studio-introduction/The Envox Experimental Zone group (who make the BB3 and H24005 PSUs) released a free, cross-platform, open-source tool to develop GUIs for embedded controllers (using LVGL). This is an evolution of the tool they used for their own GUIs. The interesting thing is that it also has a focus on building test instruments and has support for creating SCPI commands and the ability to specify flow-based logic with debugging, etc. It can also be used to create applications for your desktop that interface with existing instruments.I haven't played with it yet but it comes with examples. Probably a bit of a learning curve though.

author: Veteran68
author_rank: Frequent Contributor
timestamp: September 11, 2023, 04:49:08 pm
content: Been around for several years now.https://www.eevblog.com/forum/testgear/eez-studio-for-accessing-your-(scpi)-instruments/

author: globoy
author_rank: Frequent Contributor
timestamp: September 11, 2023, 05:01:19 pm
content: I stand corrected
CCS 12.4 Will Do A Power Off Brick of Your Obsolete MSP-EXP4342p401r - Page 1
Forum section: electronics / general

author: gridleak
author_rank: Contributor
timestamp: September 08, 2023, 03:15:12 am
content: I upgraded my 32 bit Win10 to 64 bit Windows 11. I wanted to start using my MSP-EXP432p401r launchpads (black version) with CCS 12.4 on Win11. There had been no problems on Win32 up to CCS 9.3. Now I bought it... CCS 12.4 will permit selection of that processor in "New CCS Project" pop-up. When I hit "Verify" to test the connection, CCS downloaded new firmware. As a result, the power led to the JTAG programmer on launchpad goes out and the XDS110 probes no longer are loaded in Device Manager. CCS can no longer detect the launchpad (of course). With the JTAG programmer power gone on the launchpad, this results in a permanent brick. If I was paranoid, I would believe that TI doesn't want anyone playing around with obsolete launchpads, and is using the latest CCS to kill them off. If you have a 32 bit Windows PC, don't get rid of it if you want to work with old launchpads. The 9 series of CCS, I believe, is the last 32bit version.
Voltage supervisor for ESP32 – LM8365 alternative - Page 1
Forum section: electronics / general

author: Network
author_rank: Newbie
timestamp: September 07, 2023, 06:09:12 am
content: Hi everyone,I am looking for a voltage supervisor IC for the ESP32. Preferably the IC should have a very small footprint, should be quite cheap (max 50 cents) and should have a very long output delay (5-20s).I looked at the LM8365 and liked the programmable output delay. However, the LM8365 is not as readily available in my area and is quite expensive.Thank you in advance and best regards!

author: PCB.Wiz
author_rank: Super Contributor
timestamp: September 07, 2023, 09:38:45 am
content: TLV840 etc ?

author: Network
author_rank: Newbie
timestamp: September 07, 2023, 02:40:39 pm
content: Thanks! TLV840C/TLV840M looks very interesting.
MPLAB.X / SEGGER / reset line interactions? - Page 1
Forum section: electronics / general

author: fearless
author_rank: Contributor
timestamp: September 06, 2023, 05:47:08 pm
content: I don't know if this is an ARM question, an MPLAB.X question or a SEGGER J-Link question, so bear with me!!I have a custom board with the SAML21 Cortex M0+ microcontroller. Its programmed via the SEGGER J-Link via SWD interface, controlled by the MPLAB.X v6.10 IDE.The test app simply toggles an LED.When I compile / load / run the app under the debugger, the app runs as expected.When I leave the J-Link connected and try to run the app without the debugger, it does not run.When I disconnect the J-Link (i.e. disconnect the SWD interface) and pull down and release the reset line, the app starts running.ALSO:If I then reconnect the J-Link/SWD, the app continues to run.But if I then pull down and then release the reset line, the app stops.AND ALSO if I launch J-Link COMMANDER and connect to the device:Typing R (reset) makes the app stop.Typing G (go) makes the app run again, even while connected to the J-Link.I assume there must be something about the state of the other SWD lines (SWDCLK, SWDIO, SWO) that's preventing the app from running, but only when the J-Link is controlled by MPLAB.X. Is it possible MPLAB.X is putting the J-Link into some state that's causing this? It isn't a huge deal since there are workarounds (I can run under the debugger, I can disconnect the SWD lines and twiddle RESET, I can launch J-Link Commander and type r then g), but those slow down development.Any idea what's going on? Or what to look for?

author: ajb
author_rank: Super Contributor
timestamp: September 06, 2023, 06:26:21 pm
content: In addition to the reset line, the debugger can use CPU control registers to start/stop program execution. There should be options for this somewhere in your debug settings (I don't use MPLAB so not sure where they would be), and you may be able to configure what exactly happens when you start/stop a debug session--if you dig into the J-Link configuration, you can create relatively complex scripts that do all sorts of things. Aside from that, there are several conditions that look like "app stops" or "app doesn't run", including hardfaults or application lockups/jumps to non-code sections, etc, and there are a lot of factors in terms of the debug toolchain, reset modes, the state of the surrounding PCB when the target is halted, etc, that make it hard to say with any certainty what the problem might be. If changing debug settings doesn't fix it, it wouldn't hurt to probe the debug lines, or start a debug session without resetting ("connect to running target" or similar command in the IDE) and see what's going on in the target.
Identifying an MCU - Page 1
Forum section: electronics / general

author: justjason
author_rank: Contributor
timestamp: September 05, 2023, 01:21:10 pm
content: Tring to figure out what MCU this is . Any ideas?

author: Warhawk
author_rank: Frequent Contributor
timestamp: September 05, 2023, 01:23:05 pm
content: This is TI's C2000 family. Likelyhttps://www.ti.com/product/TMS320F2802-Q1https://www.ti.com/product/TMS320F28021if I read it right.

author: justjason
author_rank: Contributor
timestamp: September 05, 2023, 01:50:23 pm
content: Thanks ! Looking at the data sheet, I think that is a match
IAR Location of IDE log file - Page 1
Forum section: electronics / general

author: Ario
author_rank: Regular Contributor
timestamp: August 28, 2023, 09:49:36 am
content: Hi there,Could someone point me in the direction of some sort of logfile which would contain IAR crash data.Can't seem to find one?Any help would be appreciated!

author: Perkele
author_rank: Regular Contributor
timestamp: August 29, 2023, 07:25:12 am
content: Sysinternals ProcessExplorer among other things can also show you file access for a selected process.https://learn.microsoft.com/en-us/sysinternals/downloads/process-explorer

author: dietert1
author_rank: Super Contributor
timestamp: August 29, 2023, 07:48:23 am
content: You could search for IarIdePm.exe.mdmp. Should be in your user folders on C:\ and with a recent modification date.Regards, Dieter

author: Ario
author_rank: Regular Contributor
timestamp: September 05, 2023, 09:29:07 am
content: Thanks for this, will have a look. Sorry for the late response.Turned out it was my cable!!I did not expect that a cable would cause IAR to crash in such a way.
Possible config for more RAM? - Page 1
Forum section: electronics / general

author: Vytautas
author_rank: Regular Contributor
timestamp: September 04, 2023, 07:55:40 am
content: Hi, guys,I have an auto diagnostics tool, the iCarsoft CR max. It is 1GB RAM. Uses two chips for that, as you can see in the picture, so 512MB each.Personally, I do not have any knowledge about RAM configurations and stuff. Just wanted to ask if anybody is having insight into whether the RAM is configured here by software or hardware, like by a selection of resistors or similar? I just found that the MT8362A chip is used in the SB30 System-on-Module development kit, where the RAM can be configured for either 1 or 2 GB. I have little hope on increasing the RAM as I am a complete novice in these things, just analog stuff and soldering experience. But just for the sake of chance

author: eutectique
author_rank: Frequent Contributor
timestamp: September 04, 2023, 08:10:47 am
content: The silkscreen suggests that the board can accomodate memory chips of different physical sizes, and perhaps of bigger bit capacity.

author: abyrvalg
author_rank: Frequent Contributor
timestamp: September 04, 2023, 08:52:14 am
content: Cell phone Mediatek SoCs have supported memory type/size lists in “preloader” (1st stage bootloader). There are even some community-made tools showing it. Perhaps here is the same case.
XIAO RP2040 and platformio with arduino core - Page 1
Forum section: electronics / general

author: reyntjensm
author_rank: Regular Contributor
timestamp: August 28, 2023, 09:12:59 pm
content: I'm struggling to setup a project using PlatformIO with a XIAO RP2040 board using the arduino core. I found a few possible solutions online but none of them is working for me. I was wondering if somebody got this to work and how to do the setup.I really need the dual core functionality but i heard this is not really supported with the arduino core. Any suggestions?

author: tabemann
author_rank: Contributor
timestamp: August 29, 2023, 11:19:08 pm
content: I have developed a Forth for the RP2040 which supports symmetric multiprocessing (albeit that tasks are bound to particular cores, by design) which I have confirmed works on the XIAO RP2040 named zeptoforth. You can get it fromhttps://github.com/tabemann/zeptoforth/. I highly suggest installing a prebuiltfull_usbbuild for the RP2040 as that will give you USB support out of the box. One note - when downloading the code, make sure to get thezeptoforth-1.0.2.tar.gz(or whatever latest version instead of 1.0.2) because that will contain the binaries; the binary you want will be at the pathbin/1.0.2/rp2040/zeptoforth_full_usb-1.0.2.uf2(or whatever latest version instead of 1.0.2).If you feel adventurous you can build from source instead of using a prebuilt binary, but I should warn you that the QSPI flash on the XIAO RP2040 is a tad slow to write incrementally, so doing a new build will be slower than on, say, an RPi Pico. Also note that zeptoforth does support the Neopixel on the XIAO RP2040, the code for which is underextra/rp2040/neopixel.fs, but this will have to be loaded manually.As for what terminal software to use with zeptoforth, I would highly recommend zeptocom.js, which is athttps://github.com/tabemann/zeptocomjs/and is also online athttps://tabemann.github.io/zeptocomjs/zeptocom.html; note that this is designed for Chrome or Chromium and apparently also works with Edge and Opera, but specifically does not work with Firefox or mobile browsers (I do not know about whether it works or not with Safari).

author: westfw
author_rank: Super Contributor
timestamp: August 30, 2023, 04:53:09 pm
content: When you say "Arduino Core", do you mean the core from Arduino themselves (which AFAIK supports only the rp2040 Connect and the RPi Pico itself), orthe Earl Philhower core? Then latter has direct support for many more boards (Including the Xiao), claims to support muti-core, and is built directly on top of the RPi SDK (making it easier to use with the SDK-documented functions.) (The Arduino Core has MBedOS in the middle, slowing, bloating, and complicating things.)
Tyring to get Keil RL-FlashFS working on ARM LPC2300 (MCB2300 board) - Page 1
Forum section: electronics / general

author: perdrix
author_rank: Frequent Contributor
timestamp: August 21, 2023, 01:43:59 pm
content: I'm building some code to read the SD Card on an MCB2300. I'm using the RL-FlashFS library.I have configured CCLK to 48MHZ and PCLK_MCI to CCLK, and changed the #defines in MCI_LPC23xx.c to read:Code:#define __MCLK 48000000#define __CPUCLK 48000000My code to initialise the card reads:Code:uint32_t retv = finit(NULL);The SD LED on the MCB2300 board comes on when the call is made and then there's a *long* pause and eventually the function returns a value of 2.During the long wait, the code is busy waiting in the ReadBlock function in source file MCI_LPC23xx.c:Code:static BOOL ReadBlock (U32 bl, U8 *buf, U32 cnt) {/* Read one or more 512 byte blocks from Flash Card. */U32 i;/* Set MCI Transfer registers. */MCI_DATA_TMR = DATA_RD_TOUT_VALUE;MCI_DATA_LEN = cnt * 512;/* Start DMA Peripheral to Memory transfer. */DmaStart (DMA_READ, buf);MCI_DATA_CTRL = 0x9B;for (i = DMA_TOUT; i; i--) {if (GPDMA_RAW_INT_TCSTAT & 0x01) {/* Data transfer finished. */return (__TRUE);}}/* DMA Transfer timeout. */return (__FALSE);}After 10M (DMA_TOUT) iterations it gives up and returns FALSE.I'm using 4.74 of the library and uVision 5Help please, I am totally baffled.Thanks, David

author: perdrix
author_rank: Frequent Contributor
timestamp: August 29, 2023, 11:33:57 pm
content: It turns out it worked OK with a 4GB SDHC card but refused to play with 1GB SD cards!!D.
Hoe to Cool Microcontroller TMS320 Series  - Page 1
Forum section: electronics / general

author: Farah
author_rank: Contributor
timestamp: August 26, 2023, 09:10:52 am
content: I have a downhole tool. This tool is equipped with a TMS320 series microcontroller. In this tool, when the temperature goes above 75-70°C, the output data is not correct. How can I reduce the heat of the microwave? Can I use a heatsink? In datasheet Operating free-air temperature ranges are −40°C to 85°C.

author: voltsandjolts
author_rank: Unknown
timestamp: August 26, 2023, 09:53:32 am
content: Please do not duplicate forum threads.Your same question has more responses here:https://www.eevblog.com/forum/repair/micro-controller-overheat/I suggest locking this thread.
Shift Register in Top Design for PSoC 6 - Page 1
Forum section: electronics / general

author: Alinik
author_rank: Contributor
timestamp: August 24, 2023, 08:36:40 am
content: Hello,How can I implement a Shift Register in the top design of PSoC Creator for a PSoC 6? In the Component Catalog in PSoC Creator I cannot find the component for a shift register.My goal is to be able to create a 19-bit shift register with the same settings as these in the figure using in a project with a PSoC 3 CY8C3246PVI-147 as target device.The same component is incompatible by selecting the PSoC 6 CY8C6347BZI-BLD53 as target device.Shift Register implementation with PSoC 3 as target device:Shift Register options:Shift Register implementation with PSoC 6 as target device:
STM32F030  program via serial port?  - Page 1
Forum section: electronics / general

author: TankSparks
author_rank: Contributor
timestamp: August 21, 2023, 07:20:26 pm
content: Is it possible to program STM32F030 via the serial portI made my own board, and I can program it with the ST-Link v2. My board uses a FT234 usb to serial chip. I read in the documentation that it support serial boot loader.Using ts STM32cube programmer software, put it into UART mode, but won't connect.Does it matter which Uart pins I'm using? does't seem to according to doc.

author: ataradov
author_rank: Super Contributor
timestamp: August 21, 2023, 07:55:31 pm
content: Quote from: TankSparks on August 21, 2023, 07:20:26 pmSection 2.5 "Boot configuration" of the reference manual describes that. You need to set pins BOOT0=1, BOOT1=1 to boot from the system memory (bootloader) and then you would have the following options:Quote
ESP32-S3 native USB does not work - Page 1
Forum section: electronics / general

author: lutkeveld
author_rank: Regular Contributor
timestamp: August 17, 2023, 06:26:21 am
content: I get code 43 usb device descriptor failed on Windows when plugging in my custom ESP32-S3 board.Native USB does work on my esp32-s3-devkitc-1.After swapping out the module with my custom board, the custom board still does not work, and the devkit works.So that indicates an hardware issue on the custom board.It should be pretty simple: IO19 as D-, IO20 as D+, 3V3 is present via an LDO from the 5V usb power.Uploading via UART works just fine.Am I somehow missing strapping pins that are related to this functionallity? What could it be?Lay-out snippet is attached.

author: bookaboo
author_rank: Frequent Contributor
timestamp: August 17, 2023, 10:41:25 am
content: Is it an identical *.bin that you upload to the devkit as your custom board?There are a few Menuconfig settings that affect the USB port operation,but not strapping pins as far as I know. GPIO3 is a strap pin relating to USB JTAG, so perhaps check that. Physically disconnect it, and pull high/low with a 10k and see what happens.Perhaps sanity check swapping D- and D+.Layout there isn't optimal, I'd avoid anything running underneath the USB lines, though that shouldn't stop you seeing it as a port.

author: PeteH
author_rank: Unknown
timestamp: August 17, 2023, 11:04:45 am
content: Quote from: bookaboo on August 17, 2023, 10:41:25 amLikely this. Pinout for USB is 5/D-/D+/GND, layout looks like +/- swapped, depends what cable/connector that is.

author: DavidAlfa
author_rank: Super Contributor
timestamp: August 17, 2023, 02:13:54 pm
content: Seems like what they're telling.I made this aberration in a rainy weekend during the pandemic, and it worked right away.Well, almost, because you always get the polarity wrong in the first try!USB is running through a twisted pair underneath, but NOT shielded or anything, some engineers would faint down if I showed more

author: lutkeveld
author_rank: Regular Contributor
timestamp: August 17, 2023, 02:40:57 pm
content: It was a D-/D+ swap apparently. Pinout was correct, but color coding on both cables I tried was different than what I found online.Depending on who you ask, white and green mean different things.Anyway, it is showing up in the device manager now.Now I still need to get my debug setup working with Zephyr, but at least hardware is working. Thanks for the answers everyone.

author: ataradov
author_rank: Super Contributor
timestamp: August 17, 2023, 03:43:43 pm
content: USB wire colors are actually mentioned in the USB standard and they are VBUS - Red, D- - White, D+ - Green, GND - Black. Unfortunately, there is a surprising amount of wrongly marked images show up in the search, so looking in the standard is always a good idea.
(debug cable) FTDI-BDM for Coldfire-v1 - Page 1
Forum section: electronics / general

author: DiTBho
author_rank: Super Contributor
timestamp: August 17, 2023, 02:38:36 pm
content: hiI have a couple of Coldfire-v1 boards with blank flash and would like to have a BDM to reprogram them.Looking around it seems like FTDI is kind of a "swiss army knife" for mimicking JTAG and reprogramming FPGAs and ARM processors, so I'm wondering if there is something similar for BDM.I googled and was confused by the answers as someone mentiones it but couldn't find a Github repo or a repo with any host-side software to check and replicate.I mean, I know a generic JTAG tool can *theoretically support* any target device that uses JTAG. Practically, however, the number of devices that the JTAG supports is limited by the software available for the JTAG-host (e.g. OpenOCD) that supports the devices.I think the same applies to BDM.Has anyone tried something similar before? with success? and is there a repository? a project?I'm looking for something that I can use and integrate into my self-created Open Source toolchain suite(1), and I can't use any x86/amd64 binary blobs, if any, since I'm not using an x86/amd64 machine as a host.Let me knowThanks!(1) GNU binutils + Gcc, for { m68k/classic, m68k/CPU32, Coldfire-v1 }
JTAG Boundary Scan Software - Page 1
Forum section: electronics / general

author: slugrustle
author_rank: Frequent Contributor
timestamp: September 02, 2023, 02:52:11 pm
content: I'd like to use JTAG boundary scan for bringup of new prototype boards at work. These boards typically have one MCU on them, and I would be mostly testing the functionality of hardware controlled by the MCU.It would be nice to be able to set pin states, read pin states, and maybe toggle a single pin at a particular frequency. That would let me test things like static levels on logic circuits, gate drivers, relay coil drivers, etc. as well as transition effects. Right now, I basically do that manually by wiring the MCU in reset and soldering in my signal generator at I/O pins of interest.What software is good for this purpose? Does anyone else here use JTAG boundary scan in a similar way?I've done a little looking around:OpenOCDis open source. It has some basic JTAG commands, low-level JTAG commands, and it can run SVF files. I ordered an Olimex JTAG adapter and plan to play around a bit with OpenOCD.Viveris JTAG Boundary Scanneris referenced by other open source projects. It has a GUI. However, it does not appear to have any documentation.UrJTAGis old school and open source. It seems to have a nice interactive commandline and the ability to play SVF files. I might give it a spin.TopJTAGis closed source with $100 license cost, which is not bad compared to others. It has a GUI and looks nice, but the payment link on the website is broken, and none of the support or contact email addresses work.XJTAGwas demoed inDave's video on JTAG boundary scan. It looks nice. I think the XJAnalyser software and XJLink2 probe might be good for my purposes, but there's no price on the website. I'll bet it's expensive.JTAG Liveactually lists prices in their store. I wonder if BuzzPlus ($185) or Clip ($785) would be sufficient for what I'm trying to do. Their adapter is $450.Corelis is another big player. TheirJTAG starter kitlooks very nice, but again, no price on the website. I'm guessing this one is also expensive.Flynn Systemsmakes a program called Circuit Trace that seems like a good fit. No pricing on the website.Intellitechpresently offers their closed-source NEBULA JTAG software for free. It requires aXilinx USB Platform Cable II($270) and appears to be highly scriptable with additional abilities to toggle pins and play SVF files. Unfortunately, a company email address is required to download the software, so playing with this at home might be out of the question.Finally, I suppose it is also possible to go hardcore and control an FTDI FT232HL or similar chip in MPSSE JTAG mode from a computer using FTDI's D2XX drivers. I've used those drivers before, and they have a nice API.I asked this ina test equipment forum threadwhere one response also mentionedGöpel's cascon software, with a hint that it might be pricey. I'm asking again in the microcontrollers forum figuring people here might have more familiarity with JTAG boundary scan.
MPLABX IDE - how to update - Page 1
Forum section: electronics / general

author: PerranOak
author_rank: Frequent Contributor
timestamp: August 16, 2023, 08:17:32 am
content: What is the best way to update to the next version of MPLABX IDE?It doesn't seem to have a "normal" update feature.Is it best to uninstall the old one then install the new?Cheers,

author: woofy
author_rank: Frequent Contributor
timestamp: August 16, 2023, 11:10:01 am
content: I install the new one first.The old one can be removed once you're happy the new one is stable.

author: TomS_
author_rank: Frequent Contributor
timestamp: August 16, 2023, 05:02:57 pm
content: And if you install the new version first and then run it, it will ask if you want to import settings from the previous version. That may save some effort getting things set up again.

author: MarkF
author_rank: Super Contributor
timestamp: August 16, 2023, 05:55:30 pm
content: Quote from: TomS_ on August 16, 2023, 05:02:57 pmIt asks you the same thing if you uninstall the old version first (at least on Windows).Which is what I do.I haven't lost any of my old settings by uninstalling the old version first.I'm always afraid that something that is needed will be removed by the older version uninstall.(Just being paranoid.)
what do you use to e-jtag MIPS? - Page 1
Forum section: electronics / general

author: DiTBho
author_rank: Super Contributor
timestamp: August 10, 2023, 12:56:17 pm
content: preferably something that has opensource support

author: DiTBho
author_rank: Super Contributor
timestamp: August 16, 2023, 11:38:15 am
content: anyone?
Accessing registers value - Page 1
Forum section: electronics / general

author: saeedma
author_rank: Newbie
timestamp: August 15, 2023, 02:05:40 pm
content: Hi everyone,I want to do the following on ESP32s3 which I found on the technical documentation.The steps to configure the World Controller to switch the CPU from the Secure World to the Non-secure Worldare described below:1. Write 0x2 to Register WCL_CORE_m_WORLD_PERPARE_REG, indicating the CPU needs to switch to theNon-secure World.2. Configure Register WCL_CORE_m_World_TRIGGER_ADDR_REG as the entry address to the Non-secureWorld, i.e., the address of the application in the Non-secure World that needs to be executed.3. Write any value to Register WCL_CORE_m_World_UPDATE_REG, indicating the configuration is done.I am a little lost regarding the header files and functions that I should use to write the registers. can any one help me with a simple exam?btw I am using esp-idf-v5.0.1Thanks in advance
nodeMCU binary??? - Page 1
Forum section: electronics / general

author: Jester
author_rank: Frequent Contributor
timestamp: August 13, 2023, 03:49:22 pm
content: I have a nodeMCU board that was working with an Arduino script. Win7-64 and Arduino 1.8.15The module is an ESP8266MOD I think that translates to a ESP8266-F?I can no longer upload scripts, the com port appears to be working, but my best guess is that the nodeMCU has lost the boot loader (no flashing LED just dim blue LED).I don't think the CP2102 driver is the issue and the power supply appears to be fine. When I connect a terminal it recognizes the port but there is no response on the port, I have tried 9600 as well as 115k baud.I think I should try reloading the factory binary, using nodeMCU flasher, I'm just not able to find the binary anywhere.Any assistance is welcome.

author: DavidAlfa
author_rank: Super Contributor
timestamp: August 13, 2023, 03:57:15 pm
content: https://nodemcu-build.com/

author: liaifat85
author_rank: Regular Contributor
timestamp: August 15, 2023, 11:22:11 am
content: This may also help:https://nodemcu.readthedocs.io/en/latest/flash/
[Solved] Problem with MAX6675 thermocouple chip returning zero. - Page 1
Forum section: electronics / general

author: rhodges
author_rank: Frequent Contributor
timestamp: August 15, 2023, 12:40:27 am
content: Hi all, I am posting this for anyone searching for this problem in the future. Everything is fine now, as you will see.I am working on a project for a controller for burning waste oil. My first successful system was open loop and I set the pump PWM and duty cycles based on experiments with my own stove. But I can do better with a closed loop system, and a thermocouple for sensing the internal temperature would be great. It could delay the pump feed until the fire box was hot enough to sustain combustion, and could shut off the fuel if the combustion stalled.So I bought some K probes and a popular controller was the MAX6675. I wrote a simple library for the STM8 (81 bytes!) to initialize and read from this chip. I wrote a simple test program to read the current value every second and output the result to the UART. No problems. The values jumped around a lot, but the datasheet said that there could be many bits error (times 1/4 C) per sample. I am interested in temperatures in a firebox full of flame, so I don't care about one or two C error. Everything looks fine so far.I had new boards for my controller and the GPIO pins were different from my test program. This should be no big deal. My "new" code started as my previous code, which waited for 100 milliseconds, checked things, did things, and then waited for the next 1/10 second interval. As part of this 1/10 second check, my code read the current temperature from the MAX6675 and the K probe. And to see that it was working, I put the current value on the display.PROBLEM: My display was showing either a temperature that might be correct, but never changes, or zero. Neither can be correct. My original test program was always showing the result bouncing around by at least 1/2 C. And zero is obviously wrong.Is this my new board? I spent so much time checking the power, clock, chip select, and data lines. Everything looks good. I made a jig to get my oscilloscope probes on the three lines. *CS looks good. Clock looks good. I set the data line to weak pullup, and the MAX6675 pulls it down on *CS, and keeps it down for the entire cycle. I repeated this with other MAX6675 modules and K probes.Should I stop here and let you guess? NO! I won't be that bastard.Yes, I did read the datasheet several times after this problem, and probably three times before. BUT! The devil is in the details.On page 5, it states, "Forcing CS low immediately stops any conversion process. Initiate a new conversion process by forcing CS high."On page 2, it states the conversion time is 0.17 to 0.22SECONDS.In my world, that is an extremely huge amount of time.On my scope, I was getting zero bits (crap) from the MAX6675 chip and I was doubting it was even real. After adding a delay, it started giving normal numbers. Giving 250 mS between requests may be acceptable (from 220mS in the datasheet), but I have not tested that. 400mS seems to work for me.I hope this helps anyone else using the MAX6675 and K probes.
Renesas E2 Studio v5.4 isn't available anymore... - Page 1
Forum section: electronics / general

author: Icchan
author_rank: Regular Contributor
timestamp: August 13, 2023, 07:46:27 pm
content: Hei.I've started a reverse engineering project and to help that I've tried to get the developement environment setup for the Renesas SH-series SuperH RISC processors.But the last version to support SH-series, that the target device is (SH7709H), is v5.4 and that doesn't seem to be available anymore.Can anyone help me out?Also, if anyone of you are very good at Ghidra, I'm all earsTarget device is Yamaha DM1000 digital mixer and I'm 100% positive that it's possible to tweak around a bit and unlock all the VCM effect capabilities even now when Yamaha has closed the registration servers like years and years ago and won't provide any support or upgrades for the product, not even for money.This board and hundreds of it's brethren still have at least 10 years in it and I'm piecing mine together to be in it's absolute prime condition so it can give joy and stay out of landfill for a decade at least.You know... planet earth is thankful for every piece of equipment that can be saved fromt he landfill before it's timeAnd this board is still perfectly serviceable for a home studio.Thanks for any hints
Embedded Simulation - Page 1
Forum section: electronics / general

author: whatty
author_rank: Contributor
timestamp: August 10, 2023, 10:15:03 am
content: Hi, I am doing a project where I want to check the temperature sensor and upload data to an E-ink display for this I am using an STM8L microcontroller. I had developed the required hardware and code for the project and wanted to test it before buying actual hardware components. Where can I simulate these?Thanks in advance.

author: HwAoRrDk
author_rank: Super Contributor
timestamp: August 10, 2023, 11:20:25 am
content: You can use ucSim simulator that comes as part of SDCC compiler. But that only really simulates the CPU and limited peripherals of the STM8 (like UART, perhaps timers, I forget exactly what). So mostly only useful for testing specific parts of firmware code, and not a complete system.

author: whatty
author_rank: Contributor
timestamp: August 10, 2023, 12:05:00 pm
content: Hi, Thanks for your suggestion. Can you share me the usim webpage.

author: HwAoRrDk
author_rank: Super Contributor
timestamp: August 10, 2023, 02:46:45 pm
content: http://mazsola.iit.uni-miskolc.hu/~drdani/embedded/ucsim/
HD44780 mod for 3.3V power supply! - Page 1
Forum section: electronics / general

author: kgavionics
author_rank: Regular Contributor
timestamp: August 10, 2023, 12:41:45 am
content: Hi guysI added an ICL7660 to a 1602 display based on the famous HD44780 to work with 3.3V ( contrast). It worked with no issues, but I have done the same procedure to another display which didn’t work, maybe the fact that the 2 boards are a little bit different( there is 2 resistors R6 and R7 beside the chip which remained unpopulated)I looked online, but couldn’t find any resources how to modify the second one to make it work with 3.3v.Does someone have any suggestions how to fix that?Thank you in advance

author: Doctorandus_P
author_rank: Super Contributor
timestamp: August 10, 2023, 07:13:41 am
content: Quote from: kgavionics on August 10, 2023, 12:41:45 amYes, it's quite likely that is the reason.Fooling around this way is mostly hit and miss.It can be nice for hobbying on your own lab, but don't sell those things to customers. The most common solution is to just use a 5V power supply and a small linear regulator for the 3V3 part.

author: T3sl4co1l
author_rank: Super Contributor
timestamp: August 10, 2023, 12:07:34 pm
content: If it's not in the datasheet, it's not for you. I've never seen DNP components documented, ever, on one of these modules. (I don't recall a case where components were documented on any module, for that matter?)ICL7660, is a good assumption, a common use case -- but you basically have to trace the entire circuit to know. Or buy a premade 3.3V model in the hopes that they populated exactly these components, and cut whatever jumpers might be needed to make it work. But without that, you don't really know where it connects to the blobs, and what's under them for that matter (real HD44780s, clones, or equivalents?). So there's no design process here, it's just try and see, and hope it doesn't fail catastrophically.Hmm, I forget what I did last time I ran one on 3.3V; maybe it needed negative contrast bias? Easily enough added on the main board, assuming you aren't terribly strapped for space or anything.Tim
Keil ARMCC inline assembler - Page 1
Forum section: electronics / general

author: perdrix
author_rank: Frequent Contributor
timestamp: August 16, 2023, 07:42:36 pm
content: the following code is rejected by ArmCC compilerCode:asm ("@ MOV R0, %0\n""@ MOV R1, %1\n""@ MOV R2, %2\n""swi 3\n" : : "r" (irq), "r" (isr), "r" (pri));I understand that armclang will happily eat that as it's GCC type syntaxHow should I write that for armcc?ThanksDavid
How can I communicate with 2 raspberry pi I2C - Page 1
Forum section: electronics / general

author: rdvncrt
author_rank: Newbie
timestamp: August 08, 2023, 10:10:33 am
content: I want to communicate with i2c between 2 raspberry picos. My code and explanations are in the images. But I can't see the other raspberry pico. How can I solve it?

author: jan28
author_rank: Contributor
timestamp: August 08, 2023, 02:27:26 pm
content: Hello,You are using both Pico's as master. One needs to be master the other one slave. The master controls the send/receive direction.Replace your first code with something like shown in (to make it a slave and wait for send/receive commands from the master):-https://forums.raspberrypi.com//viewtopic.php?t=302978#p1823668-https://python-academia.com/en/raspberry-pi-pico-slave/

author: Scrts
author_rank: Frequent Contributor
timestamp: August 09, 2023, 03:41:56 pm
content: The bottom board on the breadboard is also not powered?

author: rdvncrt
author_rank: Newbie
timestamp: August 10, 2023, 06:47:06 am
content: When I tried the codes in the links it worked thank you

author: rdvncrt
author_rank: Newbie
timestamp: August 10, 2023, 06:48:43 am
content: Quote from: Scrts on August 09, 2023, 03:41:56 pmThe power cord wasn't plugged in when I took the photo, I'm powering it up.
CH32V003 SPI TEST CODE in RISCV ASSEMBLY - Page 1
Forum section: electronics / general

author: Sajeev
author_rank: Contributor
timestamp: August 10, 2023, 04:30:20 am
content: Dear Forum members,Please find attached SPI TX code in RISCV assembly. Sends bunch of bytes. Tested with logic analyser and matches. The code was assembled with BRONZEBEARD assembler. This can be assembled in GCC with minimal changes.RegardsSajeev
Help Using AVRProg library - Page 1
Forum section: electronics / general

author: roggeer
author_rank: Newbie
timestamp: August 03, 2023, 04:45:48 am
content: Hi im trying to use the Adafruit AVRProg libraryhttps://github.com/adafruit/Adafruit_AVRProgto make a standalone programmer but am having zero luck with it. hoping someone here can help, i asked over on the adafruit forum months ago but they said it was unsupported. The hardware is good, can be programmed using pymcuprog. But i'm a hardware person not software so I'm screwing up somewhere in the library. Here is my post on the adafruit forumhttps://forums.adafruit.com/viewtopic.php?t=201225EDIT: Figured it out AVR is unsupported, moved to esp32 and it works

author: liaifat85
author_rank: Regular Contributor
timestamp: August 08, 2023, 08:29:49 am
content: Thanks for the edit info. It will help many from unnecessary botheration.
HC-05 Bluetooth module sleep after 5 secs idle - Page 1
Forum section: electronics / general

author: iMo
author_rank: Super Contributor
timestamp: August 04, 2023, 07:13:07 am
content: It is 10 years back I first time asked on this less known "issue" (afaik on arduino forum and perhaps on stm32duino too) - thus it could be somebody found a solution in the meantimeModule is the slave, paired, everything works fine, I've been using several modules with lot of boards for a decade already.Now the "issue" - when there is none TX activity via serial (via the wire connected to an mcu) for more than 5 seconds, the module enters a "sleep mode". That is great, as the current consumption drops from 20mA to 2mA.In order the wake up the module from the sleep, you have to either send a char from the host PC (via the air), or, send a char via the TX wire (off the mcu). Ok, that is how it should work..BUT - the wake up takes some rather long time (at least that is my understanding), thus when you for example send a 100 char long message at 115k2 every 6 seconds, the first 20-30 chars of the message get simply lost.In order to disable the "sleep" I did mess in past with some crazy settings I saw in various versions of the DS I randomly tried with none result.Perhaps somebody knows a trick how to change/disable the "sleep" setting in the lovely HC-05 module?

author: eutectique
author_rank: Frequent Contributor
timestamp: August 04, 2023, 11:30:02 am
content: What doesAT+SNIFF?return ?

author: iMo
author_rank: Super Contributor
timestamp: August 05, 2023, 08:36:20 am
content: Here it is - it looks like as a pretty ancient firmware..Code:AT+VERSION?+VERSION:1.0-20090818OKAT+IPSCAN?ERROR:(1)AT+STATE?+STATE:INITIALIZEDOKAT+SNIFF?ERROR:(0)AT+UART?+UART:115200,0,0OKPS: I've been dealing with the issue in an app such I send a char (ie. "+" as my first item in the record is a positive number) and wait 50ms. When the mcu sends data within 5secs I get +1234, when the period is more than 5secs I get 1234. Quite a naive workaround but at least it works..PPS: even so I get from time to time a "+" when the period is >5secs. It seems when the module is in sleep, it depends whether you fit exactly with the first character in a slot when the module is sniffing or not.

author: eutectique
author_rank: Frequent Contributor
timestamp: August 05, 2023, 09:00:48 pm
content: IMO, the cleaner way would be to read the module state (AT+STATE?) and send only if it is in the proper state. This command will also wake the module up.If you want to keep the module awake, butAT+EXSNIFFis not implemented, just sendAT+STATE?every two seconds or so.

author: iMo
author_rank: Super Contributor
timestamp: August 06, 2023, 06:29:44 am
content: That is "extremely" complicated. In order to enter the AT mode you have to set pin34 to high and power the module off/on. Then you have to switch the mcu baudrate in 38k4, do the AT stuff, then go back into Data mode in a similar way and also switch mcu into 115k2 I've been using.
Arduino IDE 2.1.1-arm64 - Works Well! - Page 1
Forum section: electronics / general

author: rstofer
author_rank: Super Contributor
timestamp: August 04, 2023, 09:30:13 pm
content: This variant is for the Macs with the ARM64 Apple Silicon (M1 or M2)I only ran the Fade example but compilation is quick and the IDE finds to board/port pretty much by itself.I did have to buy a USB-C to USB-B cable to connect to my MacBook Pro.The software comes as a disk image and doesn't seem to install anything. Just double click on the Arduino Application (and, yes, you need to move the file from Downloads to Applications) in Finder->Applications and then click on the Arduino icon.There are a ton of Mac OS applications that haven't been ported to the M1/M2 chip and they need to run under Rosetta (details elsewhere, I have done that yet).The version 2 IDE is well worth the upgrade. Very clean but they're still using orange on black for error messages. It is pretty workable on the Mac where the text was nearly invisible on the PC (in version 1).

author: kripton2035
author_rank: Super Contributor
timestamp: August 04, 2023, 09:37:55 pm
content: I've used it for a few months, and it works perfectly, and the compile time and overall reaction is far more fast than with the intel version.