hybridfree/eevblog-posts huggingface dataset:
Request For Comments - Mongoose Wizard for embedded network programming - Page 1
Forum section: electronics / general

author: tellurium
author_rank: Frequent Contributor
timestamp: April 20, 2024, 06:05:37 pm
content: I am part of a team that works on an open source TCP/IP stack in a single file,https://github.com/cesanta/mongoose/It is dual-licensed: free for open source, paid for commercial use.Over the years of interactions with customers, we have found that for embedded engineers it is difficult to implement descent networking code on microcontrollers, especially if it includes any front-end stuff like Web UI.We came up with an idea of a simple visual tool that simplifies the development and reduces it to almost no-code. We call it a Wizard. It allows to use a simple point-and click interface to configure your app, and to configure the Web UI dashboard in a Grafana-like style. It generates networking code which is fully functional. One of the generated files is a so-called "glue" file with a list of get/set functions that "glue" the networking code to the firmware code - and that simple file is the only thing that a firmware engineer should update / implement. The rest just works.Here it is :https://mongoose.ws/wizard/If you have any relevant experience developing network functionality, was it painful? Painless? What was the most difficult thing?I would appreciate any feedback, being it positive, or negative - but constructive.Cheers

author: aaronlevan
author_rank: Newbie
timestamp: September 11, 2024, 01:53:11 pm
content: I have used Mongoose a few times now. The device dashboard is a really nice starting point, and you guys have so many thorough tutorials to go along with the documentation.Recently, I have been adding a web UI to a STM32, so I got into the docs/tutorials. Somehow I stumbled upon the wizard, and it is honestly awesome for someone like me.I'm not very good at web development, so I spend way too much time just getting a simple UI going. The wizard takes a ton of hassle away from the UI development process.One thing that I think would be nice though is if you could also export the unpacked UI files. Just in case one day the wizard is no longer available, or I get frisky and want to extend past the capabilities of the wizard.Again, this is a really great tool for embedded guys to quickly and rather painlessly add a web UI to their device, and I really appreciate the work you're doing.

author: tellurium
author_rank: Frequent Contributor
timestamp: September 23, 2024, 01:39:50 pm
content: Thanks!Actually we don't have an unpacked UI files. We create a UI structure in a JSON file, as a sequence of nested JSON objects. THey are not HTML elements. And we render them on the fly as HTML elements. That gives flexibility and control. So yeah ... We can't export HTML - there is none!We'd like however add the possibility to extend the wizard - if you can share what exactly you're looking for, we'd definitely consider!
Does blank HCS08 micro default to xtal osc? - Page 1
Forum section: electronics / general

author: Circlotron
author_rank: Super Contributor
timestamp: March 17, 2019, 06:36:20 am
content: Got an older board that I have to update to HCS08 micros. Several micros on the board. The first has a crystal oscillator and the osc output feeds the next micro osc input and so on. That all works fine because these older micros are programmed externally then plugged into a socket on the board. The newer ones though will be programmed in circuit.What about the newer HCS08 micros? If any particular micro is blank, will the osc section still feed the clock signal to the next micro? I ask this because these micros have the option of using a given pin as an xtal osc connection or as a GPIO. What is the default for a blank chip?

author: dbator
author_rank: Contributor
timestamp: September 15, 2024, 01:18:10 pm
content: Hello,did you find the answer? If not, what is the P/N of the HCS08 you asked?

author: Circlotron
author_rank: Super Contributor
timestamp: September 16, 2024, 12:34:48 am
content: No, I never found, but turns out it didn’t matter for several reasons. If I programmed the micros in the order they received the clock signal it would probably have been okay. Or they might actually use their internal oscillator during programming. Don’t know. I ended up using a 4MHz oscillator module and fed that to an inverter, then fanned out to four inverters, then sent the clock on its way to the micros.The micro I used was a 9S08PA16. Not many people here seem to use S08 micros, it would appear. Me using those and assembly language makes help thin on the ground.

author: pgo
author_rank: Regular Contributor
timestamp: September 16, 2024, 05:00:06 am
content: This is definitelynecromancy!For what it is worth - HCS08 are usually reset into special mode for programming and default to the internal clock source. The clock may be reprogrammed to a higher speed to speed up communication but would not use the crystal since its frequency would be unknown to the programmer.bye
Arduino supported and recommended DACs - Page 1
Forum section: electronics / general

author: Sariel
author_rank: Regular Contributor
timestamp: September 19, 2024, 07:10:45 pm
content: Hello,I've primarily been using MCP4725 and MCP4728 DACs with Arduino boards, and they’ve worked well, especially with the solid library support from Adafruit.However, I’m looking to upgrade to DACs with higher resolution, faster speeds, and lower noise performance.Can you recommend any alternatives that come with reliable, well-tested Arduino libraries?Thanks!

author: MasterT
author_rank: Frequent Contributor
timestamp: September 19, 2024, 09:08:28 pm
content: AD has driver support here:https://github.com/analogdevicesinc/no-OS/tree/main/drivers/dachttps://github.com/analogdevicesinc/no-OSFor myself, any dac I linked to arduino (nucleo-stm32) I modified existing software or write completely based on DS.The best DAC I tested so far is DAC80501, quality /cost, noise, IMHO most important parameter : linearity close to 18-(!)-bits.

author: abraxalito
author_rank: Contributor
timestamp: September 20, 2024, 02:38:09 am
content: Quote from: MasterT on September 19, 2024, 09:08:28 pmStatic linearity does look exceptionally good, however the THD plot with 9th and above harmonics at -70dBr suggests that, dynamically, the glitch performance might be a major limitation.

author: Smokey
author_rank: Super Contributor
timestamp: September 20, 2024, 02:54:31 am
content: Writing a driver for I2C or SPI for a DAC is not that hard.
CH32V203C8T6 CANBUS peripheral not working. - Page 1
Forum section: electronics / general

author: corgon
author_rank: Contributor
timestamp: September 09, 2024, 07:21:08 pm
content: Hi,is there anyone who has already worked with the CANBUS peripheral on the CH32V203C8T6? I'm trying it with examples from the official WCH website. No matter which version I compile, I set the TX mode and check pins PB8 and PB9 connected to the CAN transceiver TJA1050 with an oscilloscope, but there is no activity on the pins. Meanwhile, the serial monitor reports a successful transmission. Even without the transceiver connected, the pins show no activity. I also tried the default pin settings without remapping, and it's just as unresponsive. Are these examples even functional? Does anyone have a working CANBUS communication example on this MCU?

author: thm_w
author_rank: Super Contributor
timestamp: September 09, 2024, 08:44:46 pm
content: I reported and asked to move to Microcontroller. In the future think you can click edit on the original post and it might let you delete or change the section.Maybe you can post some of the example code here?I assume you set the pins to outputs and toggling them as IO works fine?

author: voltsandjolts
author_rank: Unknown
timestamp: September 10, 2024, 07:43:13 pm
content: First you posted in the wrong section, then you didn't even link to the code until 22hours ago.Also, you're asking about a relatively new and obscure mcu, specifically about the CAN peripheral.Not so many folks here will have experience as yet of that particular mcu and its CAN peripheral.Care to share what the issue was?

author: jasonquin
author_rank: Contributor
timestamp: September 11, 2024, 03:25:30 am
content: https://www.wch.cn/bbs/thread-97676-1.htmlMaybe this post from wch official forum can help you, but you need a translator anyway. And that is why I don't suggest anyone outside china use WCH microcontrollers, especially their risc-v mcu, the only customer support is their chinese forum.

author: brucehoult
author_rank: Super Contributor
timestamp: September 11, 2024, 03:40:45 am
content: Quote from: jasonquin on September 11, 2024, 03:25:30 amThere are plenty of very happy customers for WCH's inexpensive and full-featured RISC-V microcontrollers, as well as their USB/UART adaptors.> Chink haterGood of you to self-identify so we know how much attention to pay to you.

author: SiliconWizard
author_rank: Super Contributor
timestamp: September 11, 2024, 04:12:19 am
content: Note that many of their peripherals are very similar to those of the STM32's, so that if something is not quite clear in WCH docs, you can always refer to STM32 docs and often find your answers.Silicon bugs are actually relatively rare on those WCH chips IME.

author: voltsandjolts
author_rank: Unknown
timestamp: September 13, 2024, 09:28:22 am
content: Well done sir. The screenshot is kinda hard to read and text can't be copied of course. It would be useful if you could post the code, here in a 'code' section or link to github.
[Tutorial] CH32V003: Flashing through USB - Page 1
Forum section: electronics / general

author: boreack
author_rank: Newbie
timestamp: September 14, 2024, 12:53:07 pm
content: After playing a bit with the CH32V003 development board, I tried to get rid of the WCH-LinkE.I design a little PCB with a USB-B female connector connected to a CH340G connected to the PD5 and PD6 pins of a CH32V003F4P6.The rest are some resistors, capacitors and a 12mhz crystal for the CH340G. After the design I added a Switch between VCC-PC0-VSS for selecting between programing and operational mode.In the video the switch is not solder yet and I used a jumper cable.The process is simple. WCH has a tutorial about how to do all (Manual), but after doing it for myself, here are some hints:When downloaded theCH32V003EVT_ZIPfile, you need to open the project "CH32V003EVT\EVT\EXAM\USART_IAP\CH32V003_IAP" with MountRiver Studio and build it to generate the "CH32V003_IAP.bin" under folder "obj". This is the firmware file you need to use in the Step 3 inside the WCH-LinkUtility.For flashing the firmware, setup all as in the manual, select "File -> Open Firmware" with the file from last step and select "Target -> Program".For download a program as in the last step of the manual,PC0MUST be shorted toVDD(HIGH). Floating didn't work for me.For operation mode,PC0MUST be shorted toVSS(GND, LOW).With this, I got the CH32V003 programed through the USB cable!Little short about the complete process. Less than 2 min!https://youtu.be/FRm9grC7qo4Attached is a image of the PCB mounted with the programing mode switch.Greetings!
Bluetooth module from China - Page 1
Forum section: electronics / general

author: bborisov567
author_rank: Regular Contributor
timestamp: September 13, 2024, 09:51:20 am
content: Hello, I have problems with two module models - HC-05 and JDY-16. The idea is for the module to be the master, connect to an ELM327 device and establish a ware communication.The problem with the HC-05 is that I can't set up in master mode. I send the commands, reset, but it's still in slave mode. I tried all 4 possible configurations on 27 and 28 pins from this link:https://www.martyncurrey.com/hc-05-fc-114-and-hc-06-fc-114-first-look/, but ROLE it still says '0'. I send the commands in the setup mode with a button held on release. Command Descriptionhttps://cdn.instructables.com/ORIG/F8O/SMME/IU5NM2JJ/F8OSMMEIU5NM2JJ.pdfThen I got down to flashing. I decided to follow this guide because I have ft232 at hand:https://www.instructables.com/Upgrade-Your-3-Bluetooth-Module-to-Have-HID-Firmwa/. I set everything up, but BlueFlash doesn't recognize the chip. The connection is fine - I also checked the signals and there is some communication from the ft232 side which seems valid. Then I looked at the chip, as I said - it is smaller than the "classic" hc-05 module. Modules like mine are marketed as "new version". And the chip marking is CSR BC41C, but unfortunately nothing comes out as information. The closest is the CSR BC417 BlueCore 4 but according to the datasheet they are only in a BGA package and mine is a QFN.The problem with the JDY-16 is that it does not forward data. It connects normally, the port settings are correct, but it does not send any data to the bluetooth slave (ELM327 in this case). I also tried with a different ELM327 but again the behavior is the same. Description of commandshttps://esp32-server.de/wp-content/uploads/JDY16.pdfI have an older hc-05 module that connects to the ELM327 and communicates correctly, so the problems are isolated to the modules.
owonvsds1104 oscilloscope firmware - Page 1
Forum section: electronics / general

author: analog pro
author_rank: Newbie
timestamp: September 10, 2024, 04:23:08 pm
content: Hello friends. Am looking for owon sds1104 oscilloscope firmware file. Anyone with the file can send me. Thank you.

author: MathWizard
author_rank: Super Contributor
timestamp: September 14, 2024, 08:41:06 pm
content: Just ask or move this thread over into the Test Equipment forum, Tautech from Siglent or someone will have it all or know where to get it.
Programming a MC908JK3ECDWE without a computer - Page 1
Forum section: electronics / general

author: AdamHer
author_rank: Newbie
timestamp: September 12, 2024, 03:41:12 pm
content: Hi all,I am attempting to create a programming/testing fixture for PCB that is using a MC908JK3ECDWE.One of the features I want to have is not needing a computer to program the PCBs.Any tips on how I can achieve this?Thanks,Adam

author: eutectique
author_rank: Frequent Contributor
timestamp: September 12, 2024, 03:44:17 pm
content: Base your fixture on Raspberry Pi or Arduino.

author: AdamHer
author_rank: Newbie
timestamp: September 13, 2024, 02:13:34 am
content: well yeah, but I couldnt find anything about how an arduino can communicate with a microcontroller that is programmed using one wire +5V logic.

author: pgo
author_rank: Regular Contributor
timestamp: September 13, 2024, 07:37:19 am
content: Gee what an old micro.The chip can be programmed through a serial interface. The suggested cct. from the manual is attached.Given this circuit all you need is another micro to interact with the monitor program in the chip.From memory the programming interface was a bit of a pain but worked OK.Note that the chip may require Vtst ~8.5V to enter monitor mode if already programmed.You should be able to find details on NXP (formerly Freescale/Motorola) website.Manualhttps://www.nxp.com/docs/en/data-sheet/MC68HC908JL3E.pdfWebhttps://www.nxp.com/products/HC08JK-JLThe above assumes you can access the required pins (IRQ and PTB0) and can apply Vtst without conflict or damage since it is ~8.5V.bye

author: eutectique
author_rank: Frequent Contributor
timestamp: September 13, 2024, 09:50:53 am
content: Quote from: AdamHer on September 13, 2024, 02:13:34 amWiggle an arduino pinprogrammatically. Use alevel shifterif necessary.
Seeking TFTP Server for BDI3000 Programmer (Windows 10/11 Compatibility) - Page 1
Forum section: electronics / general

author: tarun172
author_rank: Regular Contributor
timestamp: September 08, 2024, 06:43:35 pm
content: Hello everyone,I'm in search of a TFTP server that is compatible with the BDI3000 Programmer and works on Windows 10/11. If anyone has experience with this setup or can recommend a suitable TFTP server, I’d greatly appreciate your assistance.Thanks in advance for any leads!tarun172

author: abeyer
author_rank: Frequent Contributor
timestamp: September 08, 2024, 08:38:58 pm
content: Haven't used it specifically for that device, but a modern windows tftpd that's commonly used istftpd64I don't think it does BOOTP, though, so you have to make sure your client can configure its network on its own enough to get connected to TFTP. Note that by default windows firewall is likely to block that, so if it's not disabled you'll have to also make sure to configure it.
STM32 SPI usage question - Page 1
Forum section: electronics / general

author: gogoman
author_rank: Regular Contributor
timestamp: September 07, 2024, 08:24:04 pm
content: Hello, I'm not a embedded person nor an expert with STM. is it possible to use the SPI internal hardware, with a gpio which I toggle to clock out/in data.If so in general how? The micro is the master.thanks gogo

author: dietert1
author_rank: Super Contributor
timestamp: September 07, 2024, 08:58:29 pm
content: If you input your GPIO generated clock into the SPI peripheral unit pin SPI1_SCK, you can configure and use the SPI unit as SPI slave. Is that what you want to do?

author: gogoman
author_rank: Regular Contributor
timestamp: September 07, 2024, 10:45:44 pm
content: Quote from: dietert1 on September 07, 2024, 08:58:29 pmyes: to replace the internal SPI clock with GPIO generated clock and no: the STM32 SPI is a master not a slave.gogo

author: dietert1
author_rank: Super Contributor
timestamp: September 08, 2024, 09:44:58 am
content: That can't work. If you want to run the SPI interface from an external clock, its clock pin must be an input, so it will run in slave mode. That STM32 can still be the SPI master, but its SPI device can't.
ESP32-S2 and MFRC522 problem - Page 1
Forum section: electronics / general

author: ggchab
author_rank: Frequent Contributor
timestamp: September 04, 2024, 08:23:33 am
content: I have a very simple project (opening a door) based on an ESP32-S2 mini dev board and an MFRC522 badge reader module. Connection is using SPI + SS and RST lines.The application was developed with the version 2 of the Arduino IDE + library "MFRC522 by Miguel Balboa".Everything works well has long as the serial port (via the USB C connector) is available. When disconnected (the board is then powered via its 5V pin), the MFRC module becomes unresponsive after 15-30 seconds.I don't think this is a power supply issue: if the board's USB C is connected to a simple USB charger, I observe the same behaviour.I modified the library function "MFRC522::PCD_CommunicateWithPICC()" to count consecutive errors ("ComIrqReg" register never changes and remain set to 4). I can then call "PCD_Init()" when the counter reaches a certain limit. This "fixes" the problem but I still don't know why it happens.Any idea ? Thank you.
Fluke 19X/B/C/II Tektronix THS3014/3024 FlashTool.ini / cpl.bin Decrypt/Encrypt - Page 1
Forum section: electronics / general

author: patpat
author_rank: Contributor
timestamp: September 05, 2024, 10:59:49 pm
content: Update 01;FlukeFlashTool2txt v2.0 2024It works on Fluke and Tektronix Scope Firmware for:Fluke 192B/196B/199B/192C/196C/199C/215C/225CFluke 190 - 062/102/104/202/204/502/504 (Series I & II)Tektronix THS3014/3024It Decrypts/Encrypts FlashTool.ini and cpl.bin filesIt creates output files prepended by "o"Usage:FlukeFlashTool2txt -d|-e [-f FlashTool.ini] [-c cpl.bin]Examples:FlukeFlashTool2txt -d -f .\FlashTool.ini -c .\cpl.binFlukeFlashTool2txt -d -c .\cpl.iniFlukeFlashTool2txt -e -f .\FlashTool.ini -c .\cpl.binFlukeFlashTool2txt -e -f .\FlashTool.iniOptions:-h, --help Get help-d, --Decrypt Decrypt file-e, --Encrypt Encrypt file-f, --FlashTool_ini FlashTool.ini input file-c, --cpl_bin cpl.bin input fileVirustotal still produces false positives.https://www.virustotal.com/gui/file/ffcab96927ccfef435ea99bcce97eef9a04dd85426915525db69922e14aa37d1I just decrypted the file cpl.bin from 2 different Fluke v8.04 firmware upgrades;one that claims having bushealth support (19xC_2xC_v804.zip) and a regular one (FlashTool_19xC_2xC_V804.exe) with out itWhile data.bin are both identical, cpl.bin ( it contains the upgrade command sequence) are different.cpl.bin decrypted no BushealthQuotecpl.bin decrypted w/BushealthQuoteFully understanding the CI RC and EO commands is still pending.Best,Pat

author: squadchannel
author_rank: Frequent Contributor
timestamp: September 06, 2024, 12:47:26 am
content: patpat, you have helped me with your firmware tool.Thanks.https://www.eevblog.com/forum/repair/looking-for-firmware-dump-for-tek-ths3024/

author: patpat
author_rank: Contributor
timestamp: September 06, 2024, 12:58:55 am
content: Hi squadchannelI have a 199C and last week I got a THS3024, yesterday I read your thread, awesome job.One of the posts mentioned that that some parameters can be set in FlashTool.ini and today I got lucky and coded a very basicdeofuscator, sure someone will find some use for itBest,Pat
Ch32v003 ADC not working! - Page 1
Forum section: electronics / general

author: kgavionics
author_rank: Regular Contributor
timestamp: August 28, 2024, 02:51:13 pm
content: HelloI'm using the GitHub project CH32V003fun, I used this repository to modify many examples, and they worked fine, except for the ADC which I'm having trouble to make it work.I have the following code to measure a voltage on pin PA1, but when I call the adc_get() function, the LED (on PC0) stops flashing and the function blocks the execution of the program.I analyzed my code a lot of times, but I don't see what's the problem! Furthermore, I posted this issue on Ch32v003fun GitHub, but I didn't get an answer yet! Can someone help me please?TIACode:#include "ch32v003fun.h"void adc_init(void);uint16_t adc_get(void);volatile uint32_t count;int main (){SystemInit();// system clock configadc_init();RCC->APB2PCENR |=RCC_IOPCEN ;// enable GPIOC FOR LEDGPIOC->CFGLR =0x44444441;//PC0 as output 10Mhz, the rest are kept on the reset value which is 0x4444444while(1){GPIOC->BSHR |=(1<<0);Delay_Ms(1000);GPIOC->BSHR |=(1<<16);Delay_Ms(1000);printf( "Count: %d adc: %d\n\r", count++, adc_get() );}}void adc_init(void){RCC->APB2PRSTR |= RCC_APB2Periph_ADC1;RCC->CFGR0 |=(0b01000<<11);//FOR 3.2V MAX ADC FREQ IS 12MZ ADCPRES[11:15] 010XXRCC->APB2PCENR |=RCC_IOPAEN;// enable GPIOA PA1GPIOA->CFGLR =0X44444404;//PA1 AS ANALOG INPUTADC1->CTLR2 &=~(ADC_ADON);// Set up single conversion on chl 0ADC1->RSQR1 = 0;ADC1->RSQR3 = 0; // 0-9 for 8 ext inputs and two internalsADC1->SAMPTR2 |=6; // 241 CYCLESADC1->CTLR2 |= ADC_ADON | ADC_EXTSEL;// turn on ADC and set rule group to sw trig//-------------------------// Reset calibration}uint16_t adc_get( void ){// start sw conversion (auto clears)ADC1->CTLR2 |= ADC_SWSTART;// wait for conversion completewhile(!(ADC1->STATR & ADC_EOC));// get resultreturn ADC1->RDATAR;}

author: HwAoRrDk
author_rank: Super Contributor
timestamp: August 28, 2024, 08:30:34 pm
content: Quote from: kgavionics on August 28, 2024, 02:51:13 pmAre you sure you didn't mean to use APB2PCENR here? Nowhere are you actuallyenablingthe ADC peripheral clock.

author: SiliconWizard
author_rank: Super Contributor
timestamp: August 28, 2024, 08:36:41 pm
content: Are you sure the clock for the ADC is enabled?

author: kgavionics
author_rank: Regular Contributor
timestamp: August 28, 2024, 10:39:58 pm
content: Quote from: HwAoRrDk on August 28, 2024, 08:30:34 pmThank you very much guysSorry! I copied the example without even double-checking!So, I corrected that line, it works, but there is a lot of fluctuation, which is another problem, that I'm debugging right now!Code:RCC->APB2PCENR |=RCC_ADC1EN;
STM32F733 in LQFP-100 - Page 1
Forum section: electronics / general

author: SiliconWizard
author_rank: Super Contributor
timestamp: August 13, 2024, 06:10:23 am
content: Well well, as can be seen here:https://estore.st.com/en/stm32f733vet6-cpn.html, the STM32F733VE seems to exist in LQFP-100 package.But the datasheet (STM32F732xx STM32F733xx) doesn't list any STM32F733 in such a package in the pinout chapter, only STM32F732.What gives? Anyone got a clue? Thanks!

author: hans
author_rank: Super Contributor
timestamp: August 13, 2024, 09:22:25 am
content: It looks like this device has 2 versions: F723 and F733. The F723 has rev9 datasheet and does list LQFP-100 as an option for its F723 variant. However, the F733 datasheet is only at rev7 and says only F732 is available.The F723 does have a pinout available. Afaik both feature the USB-HS peripheral, but the F73x have crypto features. Why these parts have dedicated datasheets: I don't know, maybe because of some export restriction.Confusing at the very least, moreover suggesting some mistakes on ST's documentation part.

author: SiliconWizard
author_rank: Super Contributor
timestamp: August 13, 2024, 08:56:18 pm
content: Yes it looks like it. But anyway, while the STM32F733VET6 seems to exist, it's non-stock from most distributors, so it's probably best to stay away for now.

author: glenenglish
author_rank: Frequent Contributor
timestamp: August 13, 2024, 10:14:44 pm
content: Write to feedback for the STM page, they are fairly receptive in my experience.QFP seems to have been the big survivor. Despite being a PITA to mount and solder, hot friends tell me they are more reliable than large QFN...

author: helenbukater
author_rank: Newbie
timestamp: August 28, 2024, 04:08:09 am
content: emm, you could check the STM32F733 series for the package info, hope it helps.https://www.lisleapex.com/series-stm32f733
Microchip hacked - Page 1
Forum section: electronics / general

author: madires
author_rank: Super Contributor
timestamp: August 21, 2024, 12:43:11 pm
content: Chipmaker Microchip reveals cyber attack whacked manufacturing capacity (https://www.theregister.com/2024/08/21/microchip_technology_security_incident/)SEC notice:https://www.sec.gov/Archives/edgar/data/827054/000082705424000153/mchp-20240820.htm

author: JPortici
author_rank: Super Contributor
timestamp: August 21, 2024, 12:59:58 pm
content: Microchip Direct has been down... i figured they were updating something

author: Jon_S
author_rank: Contributor
timestamp: August 21, 2024, 01:44:09 pm
content: Quote from: JPortici on August 21, 2024, 12:59:58 pmI have been refreshing it all day as it just says it's down for maintenance. Guess I'm using Digikey for my order then!

author: helenbukater
author_rank: Newbie
timestamp: August 28, 2024, 04:12:24 am
content: why digikey
CAN FD on RP2040? - Page 1
Forum section: electronics / general

author: NiHaoMike
author_rank: Super Contributor
timestamp: September 02, 2024, 03:51:28 am
content: So I need to interface with a CAN bus for some reverse engineering and found some projects for using a RP2040 (which I have a few of) as a USB to CAN bridge. But they all seem to only support regular CAN and not CAN FD as well. (I don't think I will need CAN FD now but would like to be ready for it in the future.) Even CAN FD seems quite slow compared to many other things that have been done with the PIOs, is it just a matter of nobody has yet been interested in such a project or is there some timing detail that is hard to achieve on a RP2040?

author: ataradov
author_rank: Super Contributor
timestamp: September 02, 2024, 02:27:37 pm
content: I don't know for sure, since I have not tried to implement CAN FD on PIO, but the difficulty I see is that CAN FD can use different data rates that switch mid-frame depending on the bit in the header. PIO is very good as working with consistent data rates, since PIO itself only does the bit transfer and the software deals with the payload. PIOs are very limited if you need to make complicated decisions and adjustments mid-transfer.It may be possible to pull off, but it would not be easy.

author: SiliconWizard
author_rank: Super Contributor
timestamp: September 02, 2024, 08:37:38 pm
content: Yes, may be easier to implement mixing the UART and PIO, or something. Even just one UART, reconfigured on the fly, and one dedicated core without PIO may do the trick, we're talking about relatively "slow" (a few MHz max) communication.That said, CAN FD will require a dedicated transceiver anyway, and a full CAN FD controller + intregrated transceiver is barely more expensive than a transceiver alone, unless you're trying to shave off every penny:https://www.ti.com/product/TCAN4550(and I'm sure there are cheaper alternatives).

author: ataradov
author_rank: Super Contributor
timestamp: September 02, 2024, 08:46:56 pm
content: You can't use UART for that, since it will impose mandatory breaks.Plus Bit Rate Switch (BRS) bit is in the middle of the byte.

author: fchk
author_rank: Frequent Contributor
timestamp: September 03, 2024, 06:26:07 am
content: I'd rather look for a more suitable device. The ATSAME51G19A is an 48 pin device with both USB-FS and CAN-FD hardware. and would fit your bill best.Seehttps://github.com/RudolphRiedel/USB_CAN-FDThe work als already been done.fchk
5v LED Controller board sourcing help!  CSY007-RF-5v-24v - Page 1
Forum section: electronics / general

author: foodseller
author_rank: Newbie
timestamp: August 24, 2024, 01:09:49 pm
content: Hello,Newbie here to the forum! I am trying to source just the controller board for running strings of LED lights. I will be embedding the controller in the project and need just the board itself with the RF or BT receiver, input/output etc. They typically come with the controller and the board itself is wrapped in shrinktube with power supply on one end and output on the other. Any help would be greatly appreciated in sourcing these!Thanks,foodseller
LSM6DSM Motion Detect Interrupt Interrupts - Page 1
Forum section: electronics / general

author: Arsh ahmad
author_rank: Regular Contributor
timestamp: August 21, 2024, 01:39:55 pm
content: I am working on application with ATMEGA2560-IC and LSM6DSM IMU, I only want to use IMU to sense Significant motion detect and Using an Interrupt pin to read that signal, I am not concerned about specific values of the sensor.Basically, this is mounted on the rails of a server rack, whenever rail is pulled, I want a temporary alarm from ATMEGA2560, I have checked the configuration Multiple times, but the LSM6DSM is not giving any interrupts.
HMC5883L chip difference between two board? - Page 1
Forum section: electronics / general

author: Solartracker2
author_rank: Contributor
timestamp: August 19, 2024, 09:30:29 am
content: Hello,Can someone explain me why there are two version of the GY-801 boards where on one there is a capacitor is missing by the HMC5883L pin STEP & STEC chip?https://cdn-shop.adafruit.com/datasheets/HMC5883L_3-Axis_Digital_Compass_IC.pdfI don’t understand the difference between these two boards😬

author: amyk
author_rank: Super Contributor
timestamp: August 20, 2024, 02:01:53 am
content: There are several magnetometers with "5883" in their name, but slightly different characteristics. The first one you show appears to be an HMC5883L, while the other could be anMMC5883MA. The latter doesn't need the set/reset cap. The other common one, QMC5883L, also does (and has a different package marking too.)

author: Solartracker2
author_rank: Contributor
timestamp: August 20, 2024, 08:06:09 am
content: Oke. What will change if I add that capacitor?

author: ftg
author_rank: Frequent Contributor
timestamp: August 20, 2024, 11:55:40 am
content: What does the datasheet say it is used for?It could be a DC decoupling cap that got value-engineered out.

author: coromonadalix
author_rank: Super Contributor
timestamp: August 20, 2024, 04:44:00 pm
content: or an error in the pcb assembly ?

author: amyk
author_rank: Super Contributor
timestamp: August 21, 2024, 01:36:00 am
content: Quote from: Solartracker2 on August 20, 2024, 08:06:09 amIn the best case, nothing. In the worst case, maybe you trigger an internal test mode or similar and break something. The IC doesn't require it and the pins are marked as NC, so likely the former.Quote from: coromonadalix on August 20, 2024, 04:44:00 pmLook at the datasheet I posted and compare with those for QMC5883L and HMC5883L.

author: Solartracker2
author_rank: Contributor
timestamp: August 21, 2024, 10:39:24 am
content: I’m just curious and wondering why this board not and other board well😉😬.For safety I will hook it up on the 3.3VCC instead of the 5V rail😬

author: Solartracker2
author_rank: Contributor
timestamp: August 21, 2024, 10:40:08 am
content: Thank you all for your interest and answering
ESP-WROOM-32 devkitv1 firmware issues  - Page 1
Forum section: electronics / general

author: Solartracker2
author_rank: Contributor
timestamp: August 19, 2024, 08:48:38 am
content: Hello all good nerds!,I’m struggling with my secondhand ESP-WROOM-32 IOTDEVKITV1…Normally if I connecting any ESP on my Mac and start Arduino there I can see with kind of processor it’s, but now it’s showing only ESP32 and nothing about mythe clock speed or how big the flash memory is.Is this new or do I need to reflash the ESP32 with the factory firmware?If so what is the best way on the Mac or as last resort window a😬😉Thank you for you interesting and time to read my topic!Hope too hear from you!

author: darkspr1te
author_rank: Frequent Contributor
timestamp: August 19, 2024, 10:53:39 am
content: Can you post a few pics of the board, some board out there dont reset via the com port so arduino cannot reset the device then auto read the specs. the black devkit with psram board has this issue, putting a 10uf 10v cap between gnd and reset will fix that issue.

author: Solartracker2
author_rank: Contributor
timestamp: August 19, 2024, 12:21:30 pm
content: I downloaded the latest firmware from there website and flashed it too address 0

author: Solartracker2
author_rank: Contributor
timestamp: August 19, 2024, 09:13:20 pm
content: Solved! The wrong address 0x00000

author: Solartracker2
author_rank: Contributor
timestamp: August 20, 2024, 08:04:36 am
content: Not really solved🥺.It flashed but in Arduino I can’t view the controllers settings.

author: darkspr1te
author_rank: Frequent Contributor
timestamp: August 20, 2024, 08:48:57 am
content: I dont have a mac but in the pc version you must match the com port to the device at least once,click the red box then match "device library" to the com port (green box) , shown here is a fdti cable match to the espdev and where i move that cable too the (eg switch usb ports) it follows even though there is no esp connected to that cable, same goes with ch serial based devices. Please note that in the arduino flashing tool they added com port search option too so even if you select the wrong com port in the ide it can sometime auto find the device leaving you assuming the system config is correct.i use many ESP's under platformio (personal choice) but i have found that when i am under arduino ide i have to ensure the ide knows the device connected when it's a new device. Sometimes i also have to manually change the device as it see's a serial cable as a esp because they share the same PID/VID so you may have too as well.darkspr1te

author: Solartracker2
author_rank: Contributor
timestamp: August 21, 2024, 10:34:17 am
content: I switched too windows…And under arduino I selected board EasP32 Dev Module and now I get the board settings and information 🤦🏼‍♂️🙏🏻😬
Microcontroller simulation Problem. - Page 1
Forum section: electronics / general

author: yalect
author_rank: Regular Contributor
timestamp: August 19, 2024, 09:18:39 pm
content: Hi, I would like to ask you that I have problem with PIC microcontroller simulation in Multisim software, when I try to simulate a circuit it shows me that it's out of date then not working, time step runing and nothing is changing other compenents circuit simualtion works ( leds, transistors.....etc) but microcontroller no.Have you an Idea?.
esp32:manipulate the I2S registers in the ESP-ADF framework - Page 1
Forum section: electronics / general

author: digitalectron
author_rank: Contributor
timestamp: August 17, 2024, 01:58:33 pm
content: hello every oneHow can I directly manipulate the I2S registers in the ESP-ADF framework to create a custom board with the PT8211 codec IC that only supports LSB justified format?
Help needed with the EEPROM on PIC32MK1024MCF064 - Page 1
Forum section: electronics / general

author: R-K-9592
author_rank: Newbie
timestamp: August 20, 2024, 08:07:51 am
content: Hey folks,I'm having a problem where after multiple writes into the EEPROM I'm only able to read back the last value that was written.Look at the difference between a read immediately after a write vs multiple writes and multiple reads. It's as if the value of EEDATA is only updated on a write.Notes:-Strangely, Reads only work when I DON'T set 'EECONbits.CMD = 0b000' otherwise I get non-printable characters, this happened whether I worked in 32bit or 8bit dataI get the same result whether I use the DEVEE0->DEVEE3 initialisation routine or notCFGCON2bits.EEWS = 0 as I'm using a low clock speed, setting this to '1' did not matterGot the same results whether I used 'char' or 'uint32_t' as the type on the EEPROM routinesI included a read-back test inside the EEPROM write function that would cause the execution to stay in a loop if there was a mismatch in the written vs read value and it's not locking up, implying that the written value matches the read value.Strange again.. If I include 'EECONbits.CMD = 0b000' in the WRITE function's read-back test, the data being read & printed from the READ function is affected and becomes a non-printable character.Physical external clock speed 8MHz... had no issue with any other peripheral.Thanks in advance for any assistance.*******************************************************************************RESULTS:-Test set A:-Step1. Write to EEPROM @ 0xA0 with value 'A'Step2. Write to EEPROM @ 0xB0 with value 'B'Step3. Write to EEPROM @ 0xC0 with value 'C'Step4. Write to EEPROM @ 0xD0 with value 'D'Step5. Read EEPROM @ 0xA0 and write in USART => value printed:- 'D'Step6. Read EEPROM @ 0xB0 and write in USART => value printed:- 'D'Step7. Read EEPROM @ 0xC0 and write in USART => value printed:- 'D'Step8. Read EEPROM @ 0xD0 and write in USART => value printed:- 'D'test set B:-Step1. Write to EEPROM @ 0xA0 with value 'A'Step2. Read EEPROM @ 0xA0 and write in USART => value printed:- 'A'Step3. Write to EEPROM @ 0xB0 with value 'B'Step4. Read EEPROM @ 0xB0 and write in USART => value printed:- 'B'Step5. Write to EEPROM @ 0xC0 with value 'C'Step6. Read EEPROM @ 0xC0 and write in USART => value printed:- 'C'Step7. Write to EEPROM @ 0xD0 with value 'D'Step8. Read EEPROM @ 0xD0 and write in USART => value printed:- 'D'*******************************************************************************My code attached (N.B. I did not set 'EECONbits.CMD = 0b001' and 'EECONbits.CMD = 0b000' in the example code as when I do there isn't any actual data being read whether I cater for 32bit or 8bit data).Thanks in advance.
STM32L452 - Same timer for varying frequency PWM and fixed frequency interrupt - Page 1
Forum section: electronics / general

author: ricko_uk
author_rank: Super Contributor
timestamp: August 16, 2024, 02:54:41 pm
content: Hi,I am using a STM32L452 (without any RTOS) and I would like to use the same timer for both of the following:- drive a sounder on a fixed 4KHz PWM frequency but ideally also other frequencies (which I dynamically set at runtime)above and below 1ms time periodso it can make more elaborate sounds which- also generate a 1ms interrupt to control flashing of LEDs and do other quick and simple tasksObviously I can set the timer interrupt to twice the highest sound frequency I want to generate and drive the sounder through a PWM I generate by toggling the buzzer pin in the int routine.But I was wondering if there are more elegant ways especially to drive the buzzer with the PWM...? Perhaps the STM32L4 family has some nice features that I did not come across when reading the manual?Thank you as always :slightly_smiling_face:
Looking for professionals who use advanced encryption modules and SSL communicat - Page 1
Forum section: electronics / general

author: em_elsa
author_rank: Newbie
timestamp: August 13, 2024, 06:29:52 am
content: Looking for professionals who use advanced encryption modules and SSL communication in 32-bit MCUs and are familiar with the use of libraries such as mbedtls.

author: radiolistener
author_rank: Super Contributor
timestamp: August 13, 2024, 09:22:28 am
content: What is your question?I didn't worked with SSL on MCU, but some time ago implemented some custom TLS stack with specific requirements on a client side.

author: Pseudobyte
author_rank: Frequent Contributor
timestamp: August 14, 2024, 12:43:27 pm
content: Mongoose has a built-in TLS1.3 stack.https://mongoose.ws/documentation/#built-in-tls13-stackHave not used that feature, but I use Mongoose professionally and enjoy working with it.

author: peter-h
author_rank: Super Contributor
timestamp: August 14, 2024, 03:45:44 pm
content: I have finished a project which contains MbedTLS. It has HTTPS client which uses this.A huge chunk of code, over 200k (32F417) but does seem to work. TLS is difficult to integrate; connects to LWIP in this case which also works.What input are you specifically looking for? You must have a specific use case for TLS, because embedded (IoT) devices on open ports, for public access, are a really bad idea. See past threads on this, and a "wide variety of views".
ML66Q592 serial flash mode - protocol details - Page 1
Forum section: electronics / general

author: twizzter
author_rank: Contributor
timestamp: August 09, 2024, 07:52:35 am
content: I am looking for information on the protocol for flashing this MCU via serial port.Does anyone have information/experience with this model or family?Managed to dig into the MCU user's manual, MCU datasheet, Q591 flash memory user's manual, PW66K programmer datasheet but no details there unfortunately.

author: amyk
author_rank: Super Contributor
timestamp: August 10, 2024, 02:38:53 am
content: Found someone looking for the same thing 12 years ago, may or may not be a dead end:https://www.freelancer.co.ke/projects/c-programming-microcontroller/serial-programmer-decoding
MSP430FR BSL With CP2012 or FT232 - Page 1
Forum section: electronics / general

author: pacmann
author_rank: Contributor
timestamp: August 12, 2024, 09:57:02 am
content: I want to program MSP430FR24xx microcontrollers in system. The MSP430FR come with BSL bootloader but I read from old forums that generic uart bridges cant be supported by the BSL scripter from TI. Is that true still? Is the problem the BSL entry sequence? If the BSL is entered already then can the BSL scripter be used for uploading firmware with the FT232 or CP2102 without mods?

author: Peabody
author_rank: Super Contributor
timestamp: August 12, 2024, 02:37:19 pm
content: I created a Github repo on this problem a while back, and came up with a possible workaround. That took the form of Invoke.exe, which would be run before Scripter to trigger the BSL (as in your diagram). But then "drcrane" was able to modify the Scripter source code and recompile to include the INVOKE option in the Scripter Mode command. My repo is:https://github.com/gbhug5a/CP2102-with-BSL-Scripter-for-MSP430and his is:https://github.com/drcrane/bslscripter-vs2017He has all the source code, but it's simpler to just use his executable provided in Releases. At the least though, you should read the instructions in the release zip.None of this is approved by TI, so you proceed at your own risk. I would just say that it's unfortunate that TI didn't provide this option, at least as far as I know. They added suport for their Rocket device, but I don't think that's the same as the generic USB-to-UART devices. But of course you can just buy a Rocket, if you can find one, and use that with Scripter. See SLAU573C.
Recommended ESP32 for Ultra low power using Arduino framework. - Page 1
Forum section: electronics / general

author: djsb
author_rank: Super Contributor
timestamp: August 02, 2024, 03:13:51 pm
content: I'm trying to find an ESP32 that uses the lowest possible power consumption. It needs to be able to be put into a low power state from within an Arduino sketch. I've had a look at the ESP32-H2-DevKit-LiPo and some kind of Ultra low power coprocessor has been mentioned by someone at work.Has anyone had any experience with using such a device? Thanks.

author: Nominal Animal
author_rank: Super Contributor
timestamp: August 03, 2024, 03:01:49 pm
content: "Best" is such a loaded term that nobody seems to want to risk it!If I had a project where a low-power ESP32 would be best suited, I'd start withOlimex ESP32-H2-DevKit-LiPomyself. Olimex pushes changes upstream to Espressif's GitHub repos, so to add the requisite support to the Arduino environment, you'd start at theEspressif Arduino Install documentation.Olimex ESP32-H2-DevKit-LiPo iscertifiedOpen Source Hardware, and both the schematic and the KiCad source files are available. I am personally only a hobbyist on the electronics and design side, so having those available means that if I wanted to change something, perhaps just change the pinouts to better suit my needs or replace the CH340G USB-UART bridge with an USB-powered MCU like CH552G/CH554G, it would be quite doable. For commercial designs, one should of course heed theCERN-OHL-S-2.0license for the board files; it is a strongly reciprocal license, so derivatives should be licensed under the same license.However, I do not consider this "best" in any sense; just the one I would currently start with. I've only used or played with maybe two dozen different development boards, and the Olimex one ticks both the hardware needs, as well as the toolchain and documentation needs (noting that the ESP-H2 itself is documented by EspressIf as it is a castellated module soldered to the devboard) that I imagine having in your shoes. (As to Olimex as a company, note that e.g. Mouser resells their products, and Olimex does have acontinuous history since 1991.)

author: djsb
author_rank: Super Contributor
timestamp: August 03, 2024, 03:21:28 pm
content: Yes, I agree on the title. Changed to recommended instead. Thanks.

author: Doctorandus_P
author_rank: Super Contributor
timestamp: August 07, 2024, 03:53:12 pm
content: If low power is the main driving force, then ESP32 is probably not the best option. What is your battery size and how long should it last? What is your power budget?As far as I know yo can get around 100nA while the uC is still doing some housekeeping tasks such as running a clock or monitoring sensors via external interrupts. When power consumption gets so low, then the dominating factor may be an electrolytic capacitor with a bit of leaking current.