hybridfree/eevblog-posts huggingface dataset:
Stepper motor tester - Page 1
Forum section: electronics / general

author: newtekuser
author_rank: Frequent Contributor
timestamp: March 03, 2024, 07:28:52 pm
content: I purchased a stepper motor driver controller to test my NEMA17 motors for torque and was disappointed to see that the "self-locking" mode does not work and not holding torque when motor is stopped. Can anyone recommend a similar device that supports this capability?The manual claims that this controller supports self-locking which is the default operation (P1-F3), so either they're lying or this device is broken.https://www.amazon.com/dp/B0B1HNS9L2?psc=1&ref=ppx_yo2ov_dt_b_product_details

author: StarLight
author_rank: Newbie
timestamp: March 16, 2024, 10:01:26 am
content: In order to reduce power loss, the phase current is generally set to half or less of the rated value in LOCK mode, you can try turning off this function.

author: betocool
author_rank: Regular Contributor
timestamp: March 16, 2024, 02:43:59 pm
content: https://www.pololu.com/product/3764I've used this one recently, in fact, using the chip right now.You need to keep the current at a certain level to keep the torque, no current, no torque to hold the motor unfortunately. I think physics has something to do with it...These are dead simple to use, set the hold current via potentiometer, drive with a pulse, set direction with a pulse. Mode lets you select 1x or 256x steps (that is, 1 pulse is one 256th of a step).I'm not sure the motor is broken, I just think the holding torque might be just weak.Cheers,Alberto

author: aliarifat794
author_rank: Regular Contributor
timestamp: March 24, 2024, 03:01:58 pm
content: You can consider A4988 driver alternatively.
ESP32: OTA and Rollbacks Article - Page 1
Forum section: electronics / general

author: sausage
author_rank: Regular Contributor
timestamp: March 20, 2024, 02:57:13 am
content: I've written an article on the ESP32 OTA and Rollbacks. It serves as a compliment for anyone who is learning/experimenting with OTA by diving deep to view the state of the flash data at each step. Hope this is useful to anyone:https://blog.waynejohnson.net/doku.php/esp32_ota

author: aliarifat794
author_rank: Regular Contributor
timestamp: March 23, 2024, 10:33:06 am
content: Thanks for sharing.
95320 eeprom reader - Page 1
Forum section: electronics / general

author: Sounduser
author_rank: Contributor
timestamp: March 20, 2024, 12:09:39 pm
content: Little confused about which read/writer I need. They seem to be cheap on ebay?I want to read the data on one eeprom and write it to a new one.Thanks/

author: coromonadalix
author_rank: Super Contributor
timestamp: March 20, 2024, 12:50:05 pm
content: ch341 is supposed to do the job, bit they will come mostly wothout the software AsProgrammer or NeoProgrammer will do
CH32V003 Flash like Eprom - Page 1
Forum section: electronics / general

author: Atlan
author_rank: Frequent Contributor
timestamp: March 19, 2024, 08:41:06 am
content: HI. is there any way to ensure that the data in the flash is not overwritten during programming.I use cast flash as eprom. Everything works, but every time I program the data is deleted. Is there going to be some kind of protection to prevent it from being deleted? or if I put them on the bootloader address, won't they be deleted there? is such a use possible? I assume that uP does not contain a bootloader? well thank you

author: brucehoult
author_rank: Super Contributor
timestamp: March 19, 2024, 10:04:52 am
content: Strange, I recall another thread where someone was complaining that the remainder of the flash was NOT erased when a new program was written, allowing malicious users to extract the code from commercial products by uploading a very short new program that dumps the contents of the rest of the flash. (And, given two devices, you can load that program at different addresses on each one, thus extracting everything)

author: Atlan
author_rank: Frequent Contributor
timestamp: March 19, 2024, 11:10:20 am
content: The standard procedure for programming is erasing the chip before programming. I prefer this option because it happened to me on other uP that the program did not work correctly. An external programming program allows selection without erasing, but. I don't want to use that. Programming directly from the IDE erases the flash before programming.

author: tszaboo
author_rank: Super Contributor
timestamp: March 19, 2024, 11:37:07 am
content: When you write a byte with 1 on top of a 0 in a Flash block or sector, you have to erase the entire sector. The empty one will be all 1s. You can then write all the 0s . The solution is to never write 1s, or use buffering in RAM and update after erase.

author: Atlan
author_rank: Frequent Contributor
timestamp: March 19, 2024, 12:07:54 pm
content: The problem is that when programming uP, the entire flash is erased, including my data (eprom like flash)

author: SiliconWizard
author_rank: Super Contributor
timestamp: March 19, 2024, 09:09:33 pm
content: I suggest considering using a third-party flashing tool, such as this:https://github.com/ch32-rs/wlink

author: HwAoRrDk
author_rank: Super Contributor
timestamp: March 20, 2024, 04:58:24 am
content: You can configure in the option bytes (WRPR0 - WRPR3) write protection of the flash memory on a sector basis (1k per sector). However, I doubt that will help you, because I don't think it applies for a whole-chip erasure performed by programming tools. I think the write-protection is only to guard against accidental in-app erasure at run-time.

author: Atlan
author_rank: Frequent Contributor
timestamp: March 20, 2024, 07:34:12 am
content: Yes, you're right, if I do that, the burning program says that the memory is write-protected.I unchecked the option to delete everything during programming. And I'll be careful. When the program is finished, the entire flash will be erased and flashed to uPI am attaching a zip. Extract FlashEprom.c and h from it.
RTL8201F MDIO Issues - Page 1
Forum section: electronics / general

author: D_K99
author_rank: Newbie
timestamp: April 05, 2024, 06:06:42 pm
content: Hi all,I designed a small board where I wanted to use an ESP32 with ethernet. The ESP32 supports and has example schematics with the RTL8201F.The ESP32 should first configure the RTL8201F via MDIO and later use RMII to speak ethernet.Though my problem is with the MDIO. For some reason the PHY chip only responds to about every second message. I have written a test program, which requests and outputs the register 2 of the PHY chip, which should be a constant 0x1c. Though when executing it 25 times, I get the following output:Code:I (356) eth_phy_802_3: PHY ID1: 0x0000001cI (366) eth_phy_802_3: PHY ID1: 0x0000001cI (376) eth_phy_802_3: PHY ID1: 0x0000ffffI (386) eth_phy_802_3: PHY ID1: 0x0000ffffI (396) eth_phy_802_3: PHY ID1: 0x0000001cI (406) eth_phy_802_3: PHY ID1: 0x0000001cI (416) eth_phy_802_3: PHY ID1: 0x0000ffffI (426) eth_phy_802_3: PHY ID1: 0x0000ffffI (436) eth_phy_802_3: PHY ID1: 0x0000001cI (446) eth_phy_802_3: PHY ID1: 0x0000001cI (456) eth_phy_802_3: PHY ID1: 0x0000ffffI (466) eth_phy_802_3: PHY ID1: 0x0000ffffI (476) eth_phy_802_3: PHY ID1: 0x0000001cI (486) eth_phy_802_3: PHY ID1: 0x0000001cI (496) eth_phy_802_3: PHY ID1: 0x0000ffffI (506) eth_phy_802_3: PHY ID1: 0x0000ffffI (516) eth_phy_802_3: PHY ID1: 0x0000001cI (526) eth_phy_802_3: PHY ID1: 0x0000001cI (536) eth_phy_802_3: PHY ID1: 0x0000ffffI (546) eth_phy_802_3: PHY ID1: 0x0000ffffI (556) eth_phy_802_3: PHY ID1: 0x0000001cI (566) eth_phy_802_3: PHY ID1: 0x0000001cI (576) eth_phy_802_3: PHY ID1: 0x0000ffffI (586) eth_phy_802_3: PHY ID1: 0x0000001cI (596) eth_phy_802_3: PHY ID1: 0x0000001cI also attatched a logic analyzer to MDIO and MDC and as expected, the PHY chip didn't respond so the MDIO line is high, as it's pulled high. MDC is at 2MHz.I am using an external clock which I measured to be 50MHz, so working like it should.Any suggestions, what the issue might be, would be very helpful.I also should add, I am pretty new to pcb designing and had to hand solder the RTL8201F. I double checked every connection to the chip.Thanks.

author: D_K99
author_rank: Newbie
timestamp: April 05, 2024, 07:26:42 pm
content: Figured it out, I had DVDD33 not connected to 3.3V
Why isn't  programmer showing in device manager - Page 1
Forum section: electronics / general

author: Kittu20
author_rank: Regular Contributor
timestamp: March 16, 2024, 05:27:53 pm
content: I'm encountering an issue with my MX-USBISP-V4.00 programmer not appearing in the Device Manager windows 11 when connected to the USB port, despite using Progisp 1.72. I suspect it may be a Windows driver problem. Currently, I'm following these links for troubleshooting:https://irq5.io/2017/07/25/making-usbasp-chinese-clones-usable/

author: HwAoRrDk
author_rank: Super Contributor
timestamp: March 16, 2024, 06:07:04 pm
content: Some of these USBasp clones are just bad. I have one that works fine the first time you program a target, but then doesn't work again until you disconnect and reconnect from USB. I gave up trying to figure out what was wrong with it.

author: Kittu20
author_rank: Regular Contributor
timestamp: March 16, 2024, 06:36:00 pm
content: Quote from: HwAoRrDk on March 16, 2024, 06:07:04 pmCould you please specify which clone you were using that had the connection issue? Additionally, it would be helpful to know those details drivers or software versions

author: HwAoRrDk
author_rank: Super Contributor
timestamp: March 16, 2024, 07:45:07 pm
content: I have no idea. It's one without the case, just bare PCB. I haven't used it for years. I put it away somewhere and I don't remember where it is. Sorry.

author: thephil
author_rank: Regular Contributor
timestamp: March 17, 2024, 12:23:18 pm
content: I have a similar device, and it works fine on LINUX out of the box, but for Windows you will need the libusb driver (assuming you are running usbASP firmware). See:https://www.fischl.de/usbasp/andhttps://electronics.stackexchange.com/questions/416714/avrdude-does-not-recognize-usbasp-device/417509#417509

author: Kittu20
author_rank: Regular Contributor
timestamp: March 18, 2024, 11:28:27 am
content: Quote from: thephil on March 17, 2024, 12:23:18 pmAre you sure that Avrdude will work with that programmer since I see option of progisp172.exe?

author: thephil
author_rank: Regular Contributor
timestamp: March 18, 2024, 04:58:10 pm
content: Quote from: Kittu20 on March 18, 2024, 11:28:27 amYes, AVRdude supports usbasp if compiled with libusb. So if the Chinese stick is flashed with the usbasp firmware (possibly modified to account for quirks) it does work – at least mine do.

author: Kittu20
author_rank: Regular Contributor
timestamp: March 18, 2024, 07:20:17 pm
content: Quote from: thephil on March 18, 2024, 04:58:10 pmavrdude: error: could not find USB device "USBasp " with vid=0x16c0 pid=0x5dc

author: thephil
author_rank: Regular Contributor
timestamp: March 18, 2024, 07:42:32 pm
content: Has it been flashed with the original usbasp firmware or does it still have the firmware it came with? What idVendor and idProduct does yours identify with?They may have made changes to the PCB but I doubt it. If it's still the same, you can use this guide to apply the necessary firmware patches:https://www.sciencetronics.com/greenphotons/?p=938That worked perfectly fine for my device several years ago.
Is it possible to extract binary/firmware from MC68331CAG20 and modify it? - Page 1
Forum section: electronics / general

author: onesystem
author_rank: Regular Contributor
timestamp: March 16, 2024, 09:05:48 pm
content: This chip is part of communications gateway. I have 4 of them, so there might be several possible takes.I don't know the feasibility of the project - what I would like to do is enable baud rate on three of the communication gateway devices (physically present, dip switches, but do not respond to toggle), and on the one that does have the baud rate enabled I need to enable an option that is already enabled on the other three.There is a ten pin port that is connected the MCU, but if other pins access needed I can solder/connect to it. So there are no limits to how I have to connect to it, it depends on anyone's experience/ability on this forum. If there is no one who played with these MCUs, then it is a dead project for me!

author: srb1954
author_rank: Super Contributor
timestamp: March 16, 2024, 09:57:38 pm
content: The MC68331 series doesn't have internal ROM so there must be external program memory in the system. My guess is that it is the two 32-pin PLCC chips below the RAM chips and it should be possible to remove these from the PCB and read them in an EPROM programmer, possibly with an appropriate adapter.Decoding the software would not be a trivial exercise and it might be better to look into the contents of the 8-pin EEPROM chip (next to the 10-pinconnector) first. This may contain configuration information that accounts for the differences in operation between your PCBs. You may be able to clone the configuration contents of a working PCB and reprogram them into the EEPROM chips on the other PCBs.

author: pgo
author_rank: Regular Contributor
timestamp: March 17, 2024, 03:13:17 am
content: Hi,It is possible that the 10-pin port is a BDM interface. See:https://www.nxp.com/products/processors-and-microcontrollers/legacy-mpu-mcus/32-bit-coldfire-mcus-mpus/68k-processors-legacy/m683xx/32-bit-microcontroller:MC68331and more specifically:Section 5.10.2.8 Recommended BDM Connection of the manual athttps://www.nxp.com/docs/en/reference-manual/MCCIRM.pdfintheoryit would be possible to access and control the MCU through this interface,Access to the memory (EPROM etc) may (again in theory) be obtained via the MCU.This would require the following:Suitable BDM interface (these are expensive/unavailable?)Extensive knowledge of the chip architectureLots of timeIf the above doesn't appear familiar to you I would not recommend this approach.Good Luck!bye

author: joeqsmith
author_rank: Super Contributor
timestamp: March 17, 2024, 03:29:18 am
content: Quote from: onesystem on March 16, 2024, 09:05:48 pmSo you just want to mirror the one to the other three. Do you have the schematics? If so, certainly possible.Assuming port is the BDM (makes sense it would be) then it could most likely all be done through that test port.
GPIO interrupts in CH582M MCU - Page 1
Forum section: electronics / general

author: tankist
author_rank: Newbie
timestamp: March 17, 2024, 08:55:54 pm
content: I've got CH582M MCU and I need to use GPIO interrupts. But unfortunately I can't manage with it. Here is my code:Code:#define INT_PIN GPIO_Pin_18int main(){SetSysClock(CLK_SOURCE_PLL_80MHz);// LED initGPIOB_ModeCfg(GPIO_Pin_4, GPIO_ModeOut_PP_20mA);GPIOB_SetBits(GPIO_Pin_4);// Input GPIO initGPIOB_ModeCfg(INT_PIN, GPIO_ModeIN_PU);GPIOB_ITModeCfg(INT_PIN, GPIO_ITMode_FallEdge);// Interrupt initPFIC_ClearPendingIRQ(GPIO_B_IRQn);PFIC_EnableIRQ(GPIO_B_IRQn);while(1);}// Interrupt handler__INTERRUPT __HIGH_CODE void GPIOB_IRQHandler(){GPIOB_ClearITFlagBit(INT_PIN);}Could anybody suggest what is wrong? I've never caught an interrupt. I can't find any GPIO interrupt example for that MCU.

author: mon2
author_rank: Frequent Contributor
timestamp: March 24, 2024, 04:12:34 pm
content: Follow the example from section #3 here:https://www.cnblogs.com/risc5-ble/p/17915503.htmlPost your updates.
ATMega328 Timer issues for PWM generation - Page 1
Forum section: electronics / general

author: dvh
author_rank: Contributor
timestamp: March 11, 2024, 12:49:17 pm
content: Hello everyone!I'd like to generate a PWM signal with a duty cycle of 30%. When the following code was flashed to an UNO board, pin 11 (PB3) remained high and never did the good old oscillation. I'm sure I screw something up, I just can't seem to figure out what.Code:void setup(){Serial.begin(19200);/* MY SETTINGS:╔════════╦═══════╦═══════╦═══╦═══╦═══════╦══════╦══════╦══════╗║ ║ FOC2A ║ FOC2B ║ - ║ - ║ WGM22 ║ CS22 ║ CS21 ║ CS20 ║╠════════╬═══════╬═══════╬═══╬═══╬═══════╬══════╬══════╬══════╣║ TCCR2B ║ 0 ║ 0 ║ - ║ - ║ 1 ║ 1 ║ 0 ║ 1 ║╚════════╩═══════╩═══════╩═══╩═══╩═══════╩══════╩══════╩══════╝╔════════╦════════╦════════╦════════╦════════╦═══╦═══╦═══════╦═══════╗║ ║ COM2A1 ║ COM2A0 ║ COM2B1 ║ COM2B0 ║ - ║ - ║ WGM21 ║ WGM20 ║╠════════╬════════╬════════╬════════╬════════╬═══╬═══╬═══════╬═══════╣║ TCCR2A ║ 1 ║ 0 ║ 0 ║ 0 ║ - ║ - ║ 1 ║ 1 ║╚════════╩════════╩════════╩════════╩════════╩═══╩═══╩═══════╩═══════╝Timer Mode: 7 (WGM2:0 = 7)Duty cycle: 30%TOP: 102*/pinMode(LED_BUILTIN, OUTPUT);// set OC2A as OUTPUTDDRB |= (1 << PB3);; // OC2A pin - pin No.3// clear settingsTCCR2A = 0;TCCR2B = 0;Serial.print("TCCR2A: ");Serial.println(TCCR2A, BIN);Serial.print("TCCR2B: ");Serial.println(TCCR2B, BIN);// set TOP to 102 -> generate 25KHzOCR2A = 102;// 30% duty cycleOCR2B = 34;// set Timer mode 7: goes from BOTTOM to TOP// WARNING: WGM22 is part of TCCR2BTCCR2A |= (1 << WGM21) | (1 << WGM20);// clear OC2A on compare match, set OC2A at BOTTOM// non-inverting FAST PWM modeTCCR2A |= (1 << COM2A1);Serial.print("TCCR2A: ");Serial.println(TCCR2A, BIN); // prints 10000011// set prescaler to 0 -> running at 16MHz - start timerTCCR2B = (1 << CS22) | (0 << CS21) | (1 << CS20);// WGM2:0 define mode 7TCCR2B |= (1 << WGM22);Serial.print("TCCR2B: ");Serial.println(TCCR2B, BIN); //prints 00001101}So the question is: what am I missing to generate the PWM signal? Thank you in advance!

author: ozcar
author_rank: Frequent Contributor
timestamp: March 11, 2024, 09:49:42 pm
content: For mode = 7, TOP is the value in OCRA. From the Fine Manual: "Setting the OCR2A equal to MAX will result in a constantly high or low output (depending on the polarity of the output set by the COM2A1:0 bits.)" This is what I think you are seeing.What you put in OCR2B does not come into it- at least, not for output on OC1A. If you set DDRD for output on PD3 (OC2B), and turn on COM2B1 in TCCR2A you might see some action (not sure that the comment about frequency 25kHz is correct though).If the output must be on OC1A. you could change to mode 3, with OCR2A = 77 you should get duty cycle 30%, but you won't have fine control of the frequency due to limited prescaler values.

author: dvh
author_rank: Contributor
timestamp: March 12, 2024, 09:33:11 pm
content: This is exactly what happened!Indeed, when I started using OC2B pin to monitor the output, all was good (after setting it to output).Thanks for taking the time to look up the relevant stuff in the datasheet! I missed it..
8051 (SST89E516RD)  - Page 1
Forum section: electronics / general

author: Kittu20
author_rank: Regular Contributor
timestamp: March 09, 2024, 06:36:04 pm
content: I am currently trying to program an SST89E516RD microcontroller following the instructions provided in the given linkhttps://exploreembedded.com/wiki/Starter_SST89E516RD_USB_Development_board. However, I am encountering an issue where I am unable to get device information in the EasyIAP application software as outlined in the provided link.I have followed the steps , but unfortunately, I am not seeing the expected results.I have attached a board diagramI have some experience with programming microcontrollers, but this is my first time working with an SST microcontroller. Could you please help me in resolving this problem?

author: wraper
author_rank: Unknown
timestamp: March 09, 2024, 07:05:59 pm
content: Circuit diagram you have attached has nothing to do with dev board on the link and MCU in question.

author: Kittu20
author_rank: Regular Contributor
timestamp: March 10, 2024, 01:51:19 am
content: Quote from: wraper on March 09, 2024, 07:05:59 pmI believe I can use an SST microcontroller on my board, so I attached the circuit diagram of my board. But I'm not understanding where the problem lies, whether it's in the board, the microcontroller, or the EasyIAP software

author: wraper
author_rank: Unknown
timestamp: March 10, 2024, 02:50:04 am
content: Quote from: Kittu20 on March 10, 2024, 01:51:19 amThe problem is that you can probably run already programmed SST MCU on that board (did not check pin compatibility but it's likely similar). However it's a different MCU from different manufacturer that is programmed very differently through a different interface. COM port on that Atmel board is connected to different pins and was never intended for programming MCU, it uses 6 pin ISP interface for that.

author: retiredfeline
author_rank: Frequent Contributor
timestamp: March 10, 2024, 02:59:09 am
content: So putting aside your target board for the moment are you saying you cannot get the dev board with the provided and matching MCU to be seen by the provided and matching software?If so don't complicate the question by bringing in irrelevant details. you should provide details of where it doesn't work, quote error messages from the software. Did it recognise the dev board? How far did it get?If you are not using the dev board but your own design then your design probably doesn't match that of the dev board.Also ask in forums of this manufacturer or retailer if they exist.

author: Ian.M
author_rank: Super Contributor
timestamp: March 10, 2024, 07:01:07 am
content: Take the JP4 jumper caps off your board then use two short duPont F-F wires to hook up TXD and RXD from the MAX232 to the correct port pins for your MCU's UART. You'll have to look at the tracks to figure out which side of JP4 is the MAX232, and which pin is which (TXD vs RXD).
Receiving on RN42 - Page 1
Forum section: electronics / general

author: redyjr4
author_rank: Newbie
timestamp: March 10, 2024, 01:25:49 am
content: Hello,I have a PMOD BT2 (A bluetooth module for an FGPA) that uses an RN42, and I need to use it to receive data from my laptop. I have gotten it working as a sender, so I can connect it to my laptop through Bluetooth, and receive data from it on my laptop.I'm wondering if it's possible to use it the other way, where I send data to it through my laptop using Bluetooth, and receive the data on the RN42.Thanks!
Lattice HW-USBN-2A USB ispdownload cables and software TOPJTAG  - Page 1
Forum section: electronics / general

author: GGMM
author_rank: Frequent Contributor
timestamp: March 04, 2024, 03:02:55 pm
content: Hello,I received a programmer HW-USBN-2A, also rated USB ispDownload cables.It is recognized automatically in the device manager as Lattice USB programmer.Shouldn’t it put Lattice USB ISP programmer?I had a hard time finding drivers.As I want to program with TOPJTAG, I can’t do anything because it is not recognized in its list of devices in TopJtag software.Surely there is something else to do.?Some help pleasecdt

author: GGMM
author_rank: Frequent Contributor
timestamp: March 05, 2024, 06:46:27 pm
content: Hello,Finally, I need the driver for the HW-USBN-2A latticeDetail: USB VID_1134&PID_8001 5&216d7020&0&5Programmer delivered without and on the Net, impossible to find (Except sites that offers to test all your drivers....without updating LOl)They say on the instructions to go get it on: Lssc diamond 1.1 ispvmsystem drivers LSCUSBDriverHa, a version 1.1..... impossible to find must date from the middle ages.!Moreover on recent versions, the driver is in the form of exe, a can to test your hardware --> If clone, install nothing!If someone can make it available on this topic or the files to copycdt
Custom Linux Build - Page 1
Forum section: electronics / general

author: nonkeldw
author_rank: Newbie
timestamp: July 12, 2023, 10:41:05 am
content: HelloI’m busy with integrate SWUpdate to my custom embedded Linux build.After reading and trying to understand the documentation (https://sbabic.github.io/swupdate/index.html). I stared with the integration.After cloning the meta-swupdate to the source folder of yocto. For the correct distribution.I started with the configuration of the swupdate, “bitbake -c menuconfig swupdate” and enabling the swupdate with webserver support.When I try to build the image I got error: ‘swupdate-2023.05-r0 do_compile: oe_runmake failed’i add this "PREFERRED_PROVIDER_u-boot-fw-utils = “libubootenv”" to my local.conf file, when i try to build i got this error:ERROR: ParseError at /home/.../conf/local.conf:49: unparsed line: 'PREFERRED_PROVIDER_u-boot-fw-utils = “libubootenv”'How can I solve this problem?Thanks!

author: nctnico
author_rank: Super Contributor
timestamp: July 12, 2023, 10:52:19 am
content: Unless you are space constrained and / or using some kind of archaic processor, consider switching to a Debian based Linux distribution and use Debian's package system. You can add your own repositories that run on your server which can be accessed over a network (or internet).

author: liaifat85
author_rank: Regular Contributor
timestamp: August 08, 2023, 08:40:26 am
content: I think it is better to raise this issue in the particular GitHub repo.

author: sharpwar
author_rank: Newbie
timestamp: March 04, 2024, 09:13:32 am
content: Hi,Did you found a solution for this issue ?

author: Zipdox
author_rank: Regular Contributor
timestamp: March 04, 2024, 09:42:46 am
content: Quote from: nctnico on July 12, 2023, 10:52:19 amDebian on an embedded system?

author: nctnico
author_rank: Super Contributor
timestamp: March 04, 2024, 03:30:55 pm
content: Quote from: Zipdox on March 04, 2024, 09:42:46 amYes. And it is pretty simple to get going using a chroot + qemu environment to make a root filesystem. For example:https://variwiki.com/index.php?title=Debian_Build_Release&release=mx8m-debian-bullseye-5.4-2.1.x-v1.5Yocto and buildroot are a world of pain to use.
Minimum 80C517 circuit for some activity? - Page 1
Forum section: electronics / general

author: rxraine
author_rank: Newbie
timestamp: March 03, 2024, 11:51:42 am
content: Hi,I've made a breadboard circuit using an 8031, and now I've transferred the design to a PCB using an80C517to play with the extra bells and whistles that chip comes with. As it's my first attempt at a PCB this complex, I'm building the circuit one step at a time. So far, I have:5.2V measured across both pairs of power pins on the MCU.EA# tied to GND to use external memory.20pF capacitors between the XTAL pins and GND, and an 11.0592MHz crystal across them. I have clean sine waves on both XTAL pins: XTAL1 between 0 and 5V, XTAL2 between 1V and 4V. I think this suggests the chip's oscillator circuit is working?10µF between 5V and reset, and 8K2 between reset and GND. ~0.2V on reset when steady.I expected to get some activity at this point: at least ALE and PSEN# at ~2Mhz, but they're both steady at Vcc. So far I've tried the following:Tied HWPD# (hardware power down) and OWE (oscillator wtachdog enable) to Vcc, as the datasheet doesn't explicitly state what happens if they float. PE#/SWD is unconnected as the datasheet states this is pulled high and so disables the power savings modes - it measures ~Vcc so I think it's overriding HWPD# and OWE anyway.Tied P0 to GND through 1k resistors, thinking this would feed endless NOPs into any databus read.Now I've run out of ideas and I'm hoping some kind soul with more experience than I can offer some advice.Is there something I've not done, or an answer in what I've explained that I've missed?

author: retiredfeline
author_rank: Frequent Contributor
timestamp: March 03, 2024, 12:41:10 pm
content: Why not add the 373 address latch and an EPROM with a short program and see if they get used? Only a couple more parts.

author: pcprogrammer
author_rank: Super Contributor
timestamp: March 03, 2024, 01:04:11 pm
content: Quote from: rxraine on March 03, 2024, 11:51:42 amThis will keep the MCU in reset state. Nothing will happen as long as reset is low. The capacitor needs to be between ground and reset and the resistor needs to be between +5V and reset for it to work.Edit: Added the manual. See page 36 for more info.

author: rxraine
author_rank: Newbie
timestamp: March 03, 2024, 01:22:16 pm
content: Thank you! I realise now that I copied the reset circuit from the 8031 without noticing the change in sense. When I hold down my "reset" button it pulls high and there's a signal on ALE. Time for some more dirty hacks with the soldering iron...
AVR- Interrupt flag not getting cleared up - Page 1
Forum section: electronics / general

author: sanka1p
author_rank: Contributor
timestamp: February 29, 2024, 07:51:10 pm
content: Hi All,I am using Atmega1608 and using its internal AC to generate an INT on its positive edge. My system work as required for a second or two, but then suddenly my AC INT flag never gets cleared. I haven't faced this issue before, I am attacghing my AC init code and ISR for it. Please take a look at it. My IDE is IAR for AVR.Code:void analog_comparator_init(){VREF.CTRLA = VREF_AC0REFSEL_2V5_gc; /* Voltage reference at 2.5V */VREF.CTRLB = VREF_AC0REFEN_bm; /* AC0 DACREF reference enable: enabled */AC0.DACREF = 255; /* Set DAC voltage reference */AC0.MUXCTRLA = AC_MUXPOS_PIN0_gc;AC0.MUXCTRLA |= AC_MUXNEG_DACREF_gc;AC0.INTCTRL = AC_CMP_bm;AC0.CTRLA = AC_OUTEN_bm | AC_INTMODE_POSEDGE_gc | AC_ENABLE_bm ;}#pragma vector = AC0_AC_vect__interrupt void AC_INT(){AC0.STATUS= AC_CMP_bm;PORTA.OUTSET = PIN5_bm;if (TCB0.CNT > 150){EVSYS.STROBE = EVSYS_STROBE0_EV_STROBE_CH1_gc;}PORTA.OUTCLR = PIN5_bm;}

author: mikerj
author_rank: Super Contributor
timestamp: March 02, 2024, 02:59:02 pm
content: You don't have any hysteresis configured, perhaps you are seeing the interrupt being constantly raised due to noise when the input voltages of the comparator are very close?
Does Microchip Harmony v3 exist? - Page 1
Forum section: electronics / general

author: newtekuser
author_rank: Frequent Contributor
timestamp: March 14, 2024, 02:36:58 am
content: According to Microchip, they claim Harmony v3 exists, they even have documentation on it, but I am unable to find any download links:https://www.microchip.com/en-us/tools-resources/configure/mplab-harmonyThere's even a big button reading "Download/Install MPLAB Harmony v3" but it takes me to documentation and no download links.I found the download link for Harmony v2 though, so is Harmony v3 really a thing, or is it just vaporware?

author: ataradov
author_rank: Super Contributor
timestamp: March 14, 2024, 02:53:42 am
content: Harmony v3 is not a single archive. It is a bunch of components and a tool that generates code on the fly based on the visual configuration. The code is hosted on GitHub herehttps://github.com/Microchip-MPLAB-Harmony. But it is not very useful without the configuratior.

author: newtekuser
author_rank: Frequent Contributor
timestamp: March 14, 2024, 03:18:54 am
content: Quote from: ataradov on March 14, 2024, 02:53:42 amOh, I see. Thank you for pointing me in the right direction!

author: ataradov
author_rank: Super Contributor
timestamp: March 14, 2024, 03:28:43 am
content: BTW, you will also find that the same GitHub place contains repos for the example application for almost all components. Those applications are complete projects that don't need anything else to try. Those you can download individually as an archive from GitHub. But if you want to extend them with standard components, then you will need to have the full setup.Foe example, here is the project for a simple blink doe SAM D11https://github.com/Microchip-MPLAB-Harmony/csp_apps_sam_d11/tree/master/apps/port/port_led_on_off_polling

author: newtekuser
author_rank: Frequent Contributor
timestamp: March 14, 2024, 04:18:55 am
content: Quote from: ataradov on March 14, 2024, 03:28:43 amThat’s great! I recently purchased the pic32mz starter kit with the multimedia expansion board 2 and can’t wait to play around.
Bluetooth Audio using RN42 Through FPGA - Page 1
Forum section: electronics / general

author: redyjr4
author_rank: Newbie
timestamp: February 24, 2024, 08:57:04 pm
content: Hello,I am working on a project where I connect a bluetooth speaker to an FPGA using the following component:https://digilent.com/shop/pmod-bt2-bluetooth-interface/I am working to configure this device, and I am wondering whether the RN42 can support Bluetooth audio?Thanks!

author: eosti
author_rank: Newbie
timestamp: February 24, 2024, 09:17:40 pm
content: According to the datasheet (https://ww1.microchip.com/downloads/en/DeviceDoc/rn-42-ds-v2.32r.pdf) of the onboard chip, it does not support any audio profiles in the built-in stack. However, it does appear that you may be able to implement your own profile using Host Controller Interface (HCI) mode? I don't know what that'd entail, but that would probably be the best bet.

author: Zipdox
author_rank: Regular Contributor
timestamp: March 04, 2024, 09:50:26 am
content: It's not recommended for new designs and has Bluetooth 2.1, which is ancient. It's safe to say that this is a futile endeavor. Is suggest getting a BM83. Or an nRF5340.
Reg: NXP iMX8M  - Page 1
Forum section: electronics / general

author: ramesh.rajagopal
author_rank: Newbie
timestamp: February 28, 2024, 10:53:10 am
content: Hi all,I would like to understand the ablity of Cortex M7 in the IMX8M.1) In NXP imx 8m Cpu, there were A53 and Cortex M7.Can I use this Cortex M7 Cpu for using SPI, I2C and timer and GPIO input captures? or its only certain specific features only that can be used.2) Can I port the code running on CM7 MCU to the CM7 of the IMX8M with some modifications.ThanksRamesh
Testing ball welding - Page 1
Forum section: electronics / general

author: GGMM
author_rank: Frequent Contributor
timestamp: February 27, 2024, 02:39:08 pm
content: Hello,Simple question:Can we test with Jtag probe or other that all weld ball connections are correct on a component? (ex Cyclone III). -->Impossible to be seenIn addition, can we test auxiliary components connected to others connected to a Jtag chain (ex Ram connected to a blackfin)?Not simple and of course without any scheme...cdt
ICSP/ISP Universal Programmers - Page 1
Forum section: electronics / general

author: Z. Khalid
author_rank: Contributor
timestamp: February 27, 2024, 06:54:30 am
content: Hello there!Concerning the in-circuit serial programming approach, I recently started using the Beeprog2 programmer from Elnec, which features an ISP connector (20 pin) in addition to the equipped 48 (universal pin driver) ZIF socket for this purpose. It works well and seems to be good, but I'm planning to buy another programmer to be only dedicated to ICSP.I’d like to ask what ICSP universal programmer you would recommend.

author: Shay
author_rank: Regular Contributor
timestamp: February 27, 2024, 02:15:35 pm
content: At work I use this one:https://softlog.com/product/icp2g3/Simple to use, fast and supports production work.
Are Fujitsu microcontrollers still available? - Page 1
Forum section: electronics / general

author: DaveInPA
author_rank: Newbie
timestamp: February 19, 2024, 09:09:48 pm
content: I've got an older device i'm trying to interface with and it has a Fujitsu F2MC-8L MB89190 microcontroller on it. I'd like to order a chip and play around with it before i attempt to do too much with my existing device. I started to look around and it looks like its discontinued and i can't fine any place to source the chip. I tried to look for other model numbers in the family but haven't seen anything.Is this microcontroller family no longer manufactured and if so does anyone know places to source old chips like this?

author: Benta
author_rank: Super Contributor
timestamp: February 19, 2024, 09:41:42 pm
content: Long, sad story with serial acquisitions and obsoleted MCUs along the way:Fujitsu -> Spansion -> Cypress -> Infineon.In any case, only the MB89P195 would be of interest to you, all other derivatives are mask programmed.NOS seems to be available.

author: peter-h
author_rank: Super Contributor
timestamp: February 26, 2024, 11:47:12 am
content: The MB89P195 looks like a camera controller, for a camera made 15 years ago.

author: Benta
author_rank: Super Contributor
timestamp: February 26, 2024, 10:06:16 pm
content: Quote from: peter-h on February 26, 2024, 11:47:12 amPerhaps refine your search?https://www.alldatasheet.com/datasheet-pdf/pdf/146622/FUJITSU/MB89P195.html
Customized Pi Pico board - Page 1
Forum section: electronics / general

author: profdc9
author_rank: Frequent Contributor
timestamp: February 24, 2024, 03:38:24 am
content: I designed my own Pi Pico board that has a nearly compatible pinout (except for 3V3EN) to the official Pi Pico PCB, but has customizations I wanted to make such as a different USB connector, bigger flash (16 MB), linear regulator, and easier resetting (no pulling the usb plug) for development. I also did it to have an example of a Pi Pico project, and to have it be manufacturable at JLCPCB. You can find it at:https://www.github.com/profdc9/PicoAlt

author: dobsonr741
author_rank: Frequent Contributor
timestamp: February 24, 2024, 05:48:01 am
content: The schematics is off on GitHub

author: profdc9
author_rank: Frequent Contributor
timestamp: February 24, 2024, 04:06:31 pm
content: Sorry, the correct schematic is now there.

author: MarkT
author_rank: Frequent Contributor
timestamp: February 25, 2024, 02:37:28 pm
content: Looks interesting - the linear reg and reset button are both useful I think.I worry there's no copper area for the linear regulator to dissipate heat though - this is a 2-layer board I think, no hidden heatsinking internal planes?

author: profdc9
author_rank: Frequent Contributor
timestamp: February 26, 2024, 03:25:12 am
content: I made almost the entire back side solid copper. See the attached picture.
wch openocd liberated from proprietary driver - Page 1
Forum section: electronics / general

author: jnk0le
author_rank: Regular Contributor
timestamp: February 19, 2024, 12:07:58 am
content: openocd fork for wch is finally liberated from proprietary driver.Only requirement is to install winusb (libusb) by zadig tool. (uninstall proprietary one first)All that was needed was this:https://github.com/jnk0le/openocd-wch/commit/aa6b548f74dbfba2f240660fcc70ed70f12a1ca9Literally.ch347 (aka ch342 aka ch345 aka ch341) based adapters couldn't be liberated due to missing some files.prebuild packages are available here:https://github.com/jnk0le/openocd-wch/releases/tag/28012024-liberated

author: prosper
author_rank: Regular Contributor
timestamp: February 21, 2024, 02:44:00 am
content: so, this consists of a flash driver for the various wch mcus, a transport driver for the single wire debug interface, and a driver for tge various wchlink programmers?at a glance, it seems to support riscv and arm mcus, but not the 8051s. Which wchlinks does it support? (wait, i see, the linkE only)is this going to be upstreamed, or is the plan to maintain it as a fork?very exciting. thanks for your work on this!

author: jnk0le
author_rank: Regular Contributor
timestamp: February 24, 2024, 03:01:55 pm
content: Quote from: prosper on February 21, 2024, 02:44:00 amShould support all, but the button-less one still needs proprietary driver.Quote from: prosper on February 21, 2024, 02:44:00 amIt's basically generic openocd with added support for WCH stuff.Quote from: prosper on February 21, 2024, 02:44:00 amThe code is spaghetti enough to not get upstreamed, not to mention the way it's being developed (https://github.com/jnk0le/openocd-wch/pull/1#issuecomment-1738259661) and merged back into the tree

author: jnk0le
author_rank: Regular Contributor
timestamp: February 26, 2024, 12:32:21 am
content: QuoteWait, button less one is CH549 (aka ch375 of course). Should be liberated as well.ch347 is the HS jtag flashed onto WCH-LinkE (or a dedicated chip with jtag)
microcontroller help with testing - Page 1
Forum section: electronics / general

author: ssport
author_rank: Newbie
timestamp: February 23, 2024, 12:58:10 pm
content: Thank you

author: pcprogrammer
author_rank: Super Contributor
timestamp: February 23, 2024, 01:41:06 pm
content: As none of us have a crystal ball, please provide more specific information, like a schematic or pictures of what is connected togetherAlso the voting option you added to this thread makes no sense at all.

author: xrunner
author_rank: Super Contributor
timestamp: February 23, 2024, 01:59:08 pm
content: Quote from: ssport on February 23, 2024, 12:58:10 pmThat is very probably not a straightforward project, unless I'm misunderstanding your question. You need to write up a much more detailed explanation of what you are trying to do because of the likely complexity of this.

author: Simon
author_rank: Unknown
timestamp: February 23, 2024, 04:34:43 pm
content: OK so the what you are connecting with is kind of irrelevant. you need to establish what is required to make the camera do what you want. normally a camera has a half press shutter button position and a full press. so have you connected all of these? depending on the camera and the settings it may refuse to fire the shutter if it has not focused. So have you checked the camera settings?You need to supply more information.

author: tooki
author_rank: Super Contributor
timestamp: February 23, 2024, 05:53:48 pm
content: Quote from: ssport on February 23, 2024, 12:58:10 pmHow do you know for sure? It’s not working, after all…Share ALL the information about this project, including the model of camera, schematic for your wiring, and your code.For everyone else: OP’s thread titled “soldering” has photos of the wires soldered to the ESP32 board. But without context who knows whether that’s correct as it is or not.

author: pcprogrammer
author_rank: Super Contributor
timestamp: February 23, 2024, 07:46:05 pm
content: Quote from: tooki on February 23, 2024, 05:53:48 pmI looked at that other thread only to find that the images don't display on my linux system. "Error interpreting JPEG image file (Not a JPEG file: starts with 0x00 0x00)"Maybe Windows is more forgivingAt least the voting option in that thread makes a little bit of sense.

author: tooki
author_rank: Super Contributor
timestamp: February 24, 2024, 06:39:31 pm
content: Aaaand OP has deleted the content of the original post above, and deleted the images altogether. Brilliant. 🙄

author: SiliconWizard
author_rank: Super Contributor
timestamp: February 24, 2024, 09:00:15 pm
content: Quote from: ssport on February 23, 2024, 12:58:10 pmYou're welcome.My answer is "three".

author: radiolistener
author_rank: Super Contributor
timestamp: February 25, 2024, 02:16:25 pm
content: Quote from: SiliconWizard on February 24, 2024, 09:00:15 pmI bet for five
i2c questions / debug - Page 1
Forum section: electronics / general

author: Wawavoun
author_rank: Regular Contributor
timestamp: February 23, 2024, 08:49:46 pm
content: Hello All,I try to talk i2c to a DS3231 module.First I try to read the temperature. I do that with a 6809 proc and a 6522 via on B port bit 0 and 1.The DS3231 reply with a great constancy $FF for temperature MSB and LSB.The recording of the i2c session is here.The point looking strange is that the DS3231 reply NACK to device selection, to data write instruction and to address to read... Reading the datasheet this should be a ACK.Can somebody point to me what is wrong in the transmissionThanks and regards.Philippe

author: Peabody
author_rank: Super Contributor
timestamp: February 23, 2024, 09:57:40 pm
content: An ACK is bringing the data line low for one clock cycle. A NAK is simply not doing anything. So perhaps the DS3231 is not able to bring the data line low under any circumstance. That would also account for the temp register being all FFs. You might check your wiring.Edit: Perhaps the DS3231 isn't even powered up. What different results do you get from your test code if the DS3231 is not connected at all?

author: Wawavoun
author_rank: Regular Contributor
timestamp: February 24, 2024, 08:41:53 am
content: You are right.Without DS3231 module signals are the same...I have to think !

author: pcprogrammer
author_rank: Super Contributor
timestamp: February 24, 2024, 09:07:13 am
content: I noticed that you made adoublepost on this subject. Please do not do that.
IMU Kalman Filter  - Page 1
Forum section: electronics / general

author: Aurentiaco
author_rank: Contributor
timestamp: February 19, 2024, 12:24:17 pm
content: Hello

author: m98
author_rank: Frequent Contributor
timestamp: February 19, 2024, 12:39:39 pm
content: The library you are looking for:https://github.com/Reefwing-Software/Reefwing-AHRSNice overview over the different filters:https://www.olliw.eu/2013/imu-data-fusing/

author: Aurentiaco
author_rank: Contributor
timestamp: February 20, 2024, 01:39:07 pm
content: Quote from: m98 on February 19, 2024, 12:39:39 pmThank you for your reply. I looked at the github repo that you send but couldn't understand how can I implement it to my code could you give more information about if you know. Could you help me?

author: m98
author_rank: Frequent Contributor
timestamp: February 20, 2024, 03:35:12 pm
content: You deleted your initial post, so I'm not sure what you were trying to do, but just add the library to your project and modify one of the examples. This should have everything you need to get started:https://github.com/Reefwing-Software/Reefwing-AHRS/blob/main/examples/nano33BLErev2/nano33BLErev2.ino

author: SiliconWizard
author_rank: Super Contributor
timestamp: February 20, 2024, 08:08:00 pm
content: OK.

author: peter-h
author_rank: Super Contributor
timestamp: February 20, 2024, 08:18:22 pm
content: Inertial navigation has interesting applications in some parts of the world

author: SiliconWizard
author_rank: Super Contributor
timestamp: February 20, 2024, 08:30:13 pm
content: Given that there's nothing in the post, and that chances are the OP will never reply, we don't know what they are after exactly, nor whether it's even worth posting.But just as always, if the topic may be of interest to anyone else, know that this very topic is a huge, gigantic rabbit hole that you may spend years on. Good luck!

author: voltsandjolts
author_rank: Unknown
timestamp: February 20, 2024, 08:48:16 pm
content: IIRC they were building a device for attachment to a golf club head and using imu to calculate head speed. Not something I would need, everyone can clearly see my swing is crap, but somehow I make it to the 19th.

author: peter-h
author_rank: Super Contributor
timestamp: February 21, 2024, 09:45:21 am
content: If they want the speed at the ball impact point, just interrupt two IR beams. I did that to measure the pellet speed of an air rifle. Took maybe 10 mins to build.

author: coppercone2
author_rank: Super Contributor
timestamp: February 22, 2024, 11:28:34 am
content: Quote from: Aurentiaco on February 19, 2024, 12:24:17 pmhello!
STM32 WB55RGV6 OTA Firmware Update Does Not Work - Page 1
Forum section: electronics / general

author: Aurentiaco
author_rank: Contributor
timestamp: February 23, 2024, 06:32:48 am
content: Hello,I am trying to make a project for firmware update using OTA with ST BLE Sensor Classic on IOS device but I have a problem I watched the videos and try to understand how can I create a project for fimware update. I started with an easy one I run BLE_OTA on WB55RGV6 than I write a simple blinking led application, I change the flash address at .ld file you can see it in attachements. Than export the .bin file and try to update but it does not working. I try to update the examples that ST produced they are working perfectly but they don't have ioc files in it so I don't know what should I specificly do in IOC file. Can anyone help me with my project? I am trying to understand how can I make an OTA firmware update. I checked the P2Pserver_OTA but I couldn't understand how does it work clearly. You can see the board that I am using in attachements.
Esp32 ttgo display - Page 1
Forum section: electronics / general

author: ssport
author_rank: Newbie
timestamp: February 23, 2024, 12:48:42 pm
content: Hi,can someone answer me few questions for esp32 ttgo display?Does esp32 ttgo display has intergradted wi fi or bluetooth?Can I use one of those to connect it with the dslr camera without any other parts needed?Thank you

author: Fire Doger
author_rank: Regular Contributor
timestamp: February 24, 2024, 12:34:54 pm
content: esp32 has both bluetooth and wifi. It doesn't matter if the module name is "ttgo" or something else, if it uses "ESP32" it will have BT and WiFi 2.4(Keep in mind that ESP32 != ESP32S2, they are completely different chips with different capabilities)Yes in theory you can. How hard will be depends on dslr brand and model, if someone has reverse engineered the protocol, if there is any library etc...