hybridfree/eevblog-posts huggingface dataset:
ESP32 / ESP8266 three remote attacks - Page 1
Forum section: electronics / general

author: sokoloff
author_rank: Super Contributor
timestamp: September 03, 2019, 04:22:32 pm
content: Three exploits:1.Zero PMK Installation- The vulnerability (CVE-2019-12587) found in latest SDK version of ESP32 and ESP8266 (ESP-IDF v4.0-dev-459-gba1ff1692 and NONOS-SDK v3.0-103-g7a31cb7 respectivelly) allows an attacker to take control of the Wi-Fi device EAP session by sending an EAP-Fail message in the final step during connection between the device and the access point (AP).2.ESP32/ESP8266 EAP client crash(CVE-2019-12586) - Crashes clients connected to enterprise networks3.ESP8266 Beacon Frame Crash(CVE-2019-12588)CVE-2019-12588: The client 802.11 mac implementation in Espressif ESP8266_NONOS_SDK 3.1.0 and earlier does not validate correctly the RSN AuthKey suite list count in beacon frames, probe responses, and association responses, which allows attackers in radio range to cause a denial of service (crash) via a crafted message.More information:https://github.com/Matheus-Garbelini/esp32_esp8266_attacks

author: ralphrmartin
author_rank: Frequent Contributor
timestamp: September 03, 2019, 05:44:28 pm
content: At least these appear to be bugs in the SDK, not the silicon, so are fixable.

author: magic
author_rank: Super Contributor
timestamp: September 03, 2019, 08:34:08 pm
content: Worth noting that EAP isn't something that you are likely to be using if you don't know that you are using it.

author: MarkR42
author_rank: Regular Contributor
timestamp: September 18, 2019, 07:58:27 am
content: Well it's not that bad:* All the attacks are over-the-air wifi attacks, not ip-based, so they can't be routed* Almost nobody uses EAP on those ESP chips, probably (someone, somewhere probably does and has deployed 500k devices)* If you crash it or hang it, there is a hardware watchdog that the firmware should be using!
Keil Logic Analyzer View for STM32F7 - Page 1
Forum section: electronics / general

author: A.Ersoz
author_rank: Regular Contributor
timestamp: September 04, 2019, 06:56:09 pm
content: Hello guys,I digitized the ADC converted data and see the value changing in Keil IDE debug mode. Now I try to visualize the converted data with logic analyzer. Because the designing an interface will take time for me. My question is that the matching error between oscilloscope capture signal and logic analyzer shows. Why there is a difference between the signals and how can I fix it? The other thing is that my ADC is ADS7886 and the sampling rate is 1 MSPS. So what is the actual sampling rate in the conversion? How can I calculate it?Thank you,
JTAG on SAMC - Page 1
Forum section: electronics / general

author: Simon
author_rank: Unknown
timestamp: September 04, 2019, 08:43:15 am
content: After some searching I found the programming pins on the SAMC. a clk pin and data i/o. But the ICE has a separate in and out pin for data. Do I just connect both jtag pins to the one pin on the SAMC?

author: 2N3055
author_rank: Super Contributor
timestamp: September 04, 2019, 09:02:23 am
content: It's SWD interface..Page 28

author: Simon
author_rank: Unknown
timestamp: September 04, 2019, 09:23:44 am
content: I see, thank you.
M27C1001 replacement - Page 1
Forum section: electronics / general

author: IconicPCB
author_rank: Super Contributor
timestamp: September 04, 2019, 03:35:22 am
content: Looking for the UV erasable version of M27c1001 memory chip in PLCC package.So far all searches suggest no longer available anywhere in the wild.If anybody knows of or can recommend pin for pin replacement part in either UV or electrically erasable variant..please advise.

author: oPossum
author_rank: Super Contributor
timestamp: September 04, 2019, 03:46:56 am
content: 27C010 is pin compatible.

author: oPossum
author_rank: Super Contributor
timestamp: September 04, 2019, 03:48:22 am
content: Also 29F010 if you want flash.https://www.arrow.com/en/products/am29f010b-70ji/cypress-semiconductor

author: IconicPCB
author_rank: Super Contributor
timestamp: September 04, 2019, 03:49:25 am
content: oPossum there is a warm dry spot in my attic of gratitude for You.

author: james_s
author_rank: Super Contributor
timestamp: September 04, 2019, 03:51:34 am
content: UV erasable is probably tricky but electrically erasable should be trivial to find, the M27C1001 uses a standard JDEC pinout so just find any 5V capable PLCC32 EEPROM that is at least 128k x 8.
Debug Issues using CooCox CoIDE for stm32f0 discovery - Page 1
Forum section: electronics / general

author: Etesla
author_rank: Regular Contributor
timestamp: September 03, 2019, 06:01:44 pm
content: I'm trying to use CoIDE Version 1.7.8 to program and debug a stm32f0308 discovery dev board. I can successfully write programs, build them, and flash the programs to the board. However, I cannot get the debug mode to work. When I hit the debug button, a window with some loading bars pops up for a couple of seconds. Then I get the error message "execution is suspended because of error.", which I hit OK to. Then I'm in debug mode, but all the step over, step out, etc options are grayed out. When I hit the green "run" button, I get this error: "Target request failed: Cannot execute this command without a live selected thread.". Has anyone else experienced this, or does anyone have any ideas on how to solve this problem? Thanks!

author: Etesla
author_rank: Regular Contributor
timestamp: September 03, 2019, 06:23:22 pm
content: Problem Solved! In case anyone has the same problem in the future, it had to do with the toolchain I had installed being I guess not the right one??? I reinstalled the toolchain fromhttps://launchpad.net/gcc-arm-embedded/+download, ran the executable for windows, and selected C:\Program Files (x86)\GNU Tools ARM Embedded\5.4 2016q3\bin as my toolchain path.
GUI Control of STM32F7 with HC05 UART - Page 1
Forum section: electronics / general

author: A.Ersoz
author_rank: Regular Contributor
timestamp: September 02, 2019, 07:47:45 pm
content: Hello guys,I have a custom design PCB with stm32f7 microprocessor and HC05 Bluetooth module. I want to send and receive data to my PCB with an interface via HC05 Bluetooth module.The user interface will have signal amplitude, frequency, and pulse width settings. Also, it will have a graph area to plot what I measured with my PCB.How can I do that? I watched some Labview implementations but it didn't work. One of my friend suggests me FreeRTOS, so I will search about it. But I wonder what other options are for doing in short time of my tasks.Thank you,

author: MasterT
author_rank: Frequent Contributor
timestamp: September 03, 2019, 02:52:35 am
content: What is on the other side, android? I 've done similar project, aka o-scope , interfacing arduino DUE to android via BT. The most time consuming was to write an application for tablet using java. Try on-line stores for android-arduino software, may accelerate your start-up.

author: A.Ersoz
author_rank: Regular Contributor
timestamp: September 03, 2019, 02:31:53 pm
content: It is STM32F767 mounted on a custom design board.

author: MasterT
author_rank: Frequent Contributor
timestamp: September 03, 2019, 04:20:13 pm
content: Quote from: A.Ersoz on September 03, 2019, 02:31:53 pmThe comm link is like that:stm32 -> serial port -> HC05 -> RF -> BT module on the other side (PC/ Android) -> OS.So, there is no difference if it's arduino or stm32. BTW, I run my nucleo-F767 under arduino IDE, greatly simplifies me serial link whereabouts.
help identifying chip - Page 1
Forum section: electronics / general

author: vtwin@cox.net
author_rank: Regular Contributor
timestamp: August 31, 2019, 11:15:13 pm
content: Wondering if somebody might be able to identify what chip this is, I think it is an f609 microcontroller from the markings. a link to a data sheet would be awesome too

author: wraper
author_rank: Unknown
timestamp: August 31, 2019, 11:29:00 pm
content: PIC12F609
RISC-V processor made with carbon nanotubes - Page 1
Forum section: electronics / general

author: oPossum
author_rank: Super Contributor
timestamp: August 29, 2019, 08:25:13 am
content: Quotehttps://arstechnica.com/science/2019/08/16-bit-risc-v-processor-made-with-carbon-nanutubes/

author: SiliconWizard
author_rank: Super Contributor
timestamp: August 30, 2019, 04:00:08 pm
content: No graphene though?
Timer Controlled External DAC with STM32F7 - Page 1
Forum section: electronics / general

author: A.Ersoz
author_rank: Regular Contributor
timestamp: September 15, 2019, 09:17:17 pm
content: Hello,I have an external 8 bit DAC (DAC082S085) on my custom designed board with stm32f767. I can command to DAC for generating a step function signal. But now I want to generate a square wave signal as an output of the DAC. The square wave of signal will generate from a timer for setting a period/frequency of the signal.For this purpose, I set TIMER3 in Cube MX with internal clock settings. I adjusted its prescaler 108-1 and counter period as 100-1 for getting 100us square wave signal. I write the code like this,Code:uint8_t DAC_A_Write = 0x1; // DAC's A output is selected 0 0 0 1uint8_t DAC_B_Write = 0x5; // DAC's B output is selected 0 1 0 1uint16_t DACA_Buf; // Output A of the DACuint16_t DACB_Buf; // Output B of the DACHAL_GPIO_WritePin(DAC_CS_GPIO_Port, DAC_CS_Pin, GPIO_PIN_RESET);DACA_Buf = DAC_A_Write<<12 | HAL_GPIO_TogglePin(DAC_DATA_GPIO_Port, DAC_DATA_Pin)<<4;HAL_SPI_Transmit(&hspi2,(uint8_t*)&DACA_Buf,16,100);HAL_GPIO_WritePin(DAC_CS_GPIO_Port, DAC_CS_Pin, GPIO_PIN_SET);How can I solve the problem? I also want to control the amplitude of the signal.Thank you,
Lattice Diamond - VHDL 2008 - Page 1
Forum section: electronics / general

author: Unknown
author_rank: Unknown
timestamp: January 11, 2015, 11:58:56 pm
content: Hello all:Hopefully this is not a dumb question and is not staring me in the face.I am using the MachX02 dev kit with Lattice Diamond. The website says it supports VHDL 2008. It then says to select it, you must go to your active strategy and set VHDL 2008 to true. I have done this, but it looks like the editor does not pick it up. When you save your HDL (vhdl) file, it does a simple syntax and validity check on your file. The simplest way to see if it is using VHDL 2008 is to just put block comments in the file and see if it compiles (/* */). Well.. it does not compile under any circumstances and settings that I have laid my hands on.Is there some setting I need to change to get VHDL 2008 support in the editor and synthesizer other than what I have already changed, or does the IDE not support VHDL 2008? I am running under windows 7 x64.Any help is appreciated

author: gnuarm
author_rank: Super Contributor
timestamp: June 12, 2016, 07:38:47 pm
content: Hmmm... I'm seeing the same thing. I wonder why no one has replied in such a long time.I use this tool from time to time and forget some of the details of getting it to work. I figured someone would know this, but a web search hasn't found anything as yet.

author: kcuzner
author_rank: Newbie
timestamp: August 23, 2019, 06:37:30 am
content: Really sorry for resurrecting this, but I have discovered the answer and this happens to be one of the first google results. There are not one, buttwoVHDL flags that have to be set for everything to work. Running the following tcl commands on my project got synthesis to work (not sure about the editor...I'm using a scripted flow and avoid the Diamond editor at all costs):Code:prj_strgy set_value lse_vhdl2008=Trueprj_strgy set_value syn_vhdl2008=TrueI discovered these by seeing hints online that the strategy needed to be changed, running "prj_strgy list_option *", and setting all the VHDL 2008 options to true. I also looked in the .sty file to make sure I hadn't missed any.

author: SiliconWizard
author_rank: Super Contributor
timestamp: August 23, 2019, 03:22:00 pm
content: Should probably be moved to the FPGA section. But anyway, this is pretty old. What version of Diamond are you using exactly? I just checked in Diamond 3.11, and setting the option in the strategy dialog (LSE or Synplify settings depending on whatever synthesis tool you're using, doesn't need to be set for both here) is enough to make it handle VHDL-2008 properly here, including in the text editor.
6805 branch and compare instruction conditions/results - Page 1
Forum section: electronics / general

author: Scratch.HTF
author_rank: Regular Contributor
timestamp: August 23, 2019, 02:12:43 am
content: I am in the process of converting code from a Motorola 6805 series (MC68705P3) microcontroller to another architecture, but I am having trouble identifying what conditions (or what registers) are compared in the Branch and Compare instructions (also for Compare, where the result is stored):eor #$20 // Exclusive OR Memory with Abne L013C // Branch if Not Equallda X0014 // Load A from Memorybne L015C // Branch if Not Equalcmp #$01 // Arithmetric Compare A with Memorybeq L01AE // Branch if Equal

author: amyk
author_rank: Super Contributor
timestamp: August 23, 2019, 03:26:23 am
content: The questions you ask suggest that you haven't familiarised yourself with the architecture yet; give the first half of this a quick read first:http://bitsavers.trailing-edge.com/components/motorola/6805/6805_Users_Manual_2ed_1983.pdfThen use the instruction set reference in the second half for the details on what each of the instructions do.

author: westfw
author_rank: Super Contributor
timestamp: August 23, 2019, 04:12:31 am
content: The branches are conditional based on bits in the “condition code register” that were set as the result of some previous ALU operation (xor, add, sub, etc)The CMP instruction works like subtract, but does not store the result. It ONLY sets bits in the CC register.

author: thinkfat
author_rank: Unknown
timestamp: August 23, 2019, 03:12:13 pm
content: bne/eq branches based on the 'zero' flag. The zero flag is set in the result of an operation is 0.Beq branches if the zero flag is set, bne not.Gesendet von meinem Nokia 6.1 mit Tapatalk
Arduino Mega 2560 boards without headers installed? - Page 1
Forum section: electronics / general

author: rhb
author_rank: Super Contributor
timestamp: August 22, 2019, 01:35:55 am
content: I just got some of the 2560 minis, but I'm not enthused about the microUSB connector. I'd like a conventional Mega2560 R3, but without the header sockets installed.An ebay search didn't turn up any. Does anyone know of anyone selling such? Even with a desoldering gun, removing the headers is time consuming. Sufficiently so that next time I'll simply destroy the headers.

author: ledtester
author_rank: Super Contributor
timestamp: August 22, 2019, 02:31:20 am
content: https://www.aliexpress.com/item/32904052177.htmlTitle is: MEGA 2560 PRO Embed CH340G/ATMEGA2560-16AU Chip with male pinheaders Compatible for arduino Mega2560 DIY

author: rhb
author_rank: Super Contributor
timestamp: August 22, 2019, 04:16:12 am
content: Sigh...I got 3 of those today. They don't have USB-B connectors, which was the whole point of my post. They are wonderful unless you expect to connect and disconnect them a lot.

author: ledtester
author_rank: Super Contributor
timestamp: August 22, 2019, 04:58:43 am
content: Just plug it into a USB hub and connect/disconnect the hub. Or use a USB extension cable.

author: ledtester
author_rank: Super Contributor
timestamp: August 22, 2019, 05:11:03 am
content: Another idea... use a USB hub with a power switch for each port:https://www.amazon.com/Sabrent-4-Port-Individual-Switches-HB-UM43/dp/B00JX1ZS5O/ref=sr_1_3Then you don't even have to unplug anything.

author: donotdespisethesnake
author_rank: Super Contributor
timestamp: August 23, 2019, 09:11:14 am
content: A quick google search shows several vendors selling Mega 2560 without headers.
dspic33CH / dspic33CK Compiler __builtin's problems. - Page 1
Forum section: electronics / general

author: ndan
author_rank: Newbie
timestamp: August 19, 2019, 03:10:10 pm
content: Hi guys,I'm trying to optimize some math operations for an dspic33CK32MP205 motor control application, by using the xc16 v1.36 compiler builtin functions. That is, the builtin's that use the accumulator registers, e.g. __builtin_clr, __builtin_mac, __builtin_mpy.But, when I try declare an accumulator as in the xc16 compiler user guide, I get an error, namely:Code:volatile register int result asm("A");error: register specified for 'result' isn't suitable for data typeFurthermore, enabling fixed point data types support (-menable-fixed) din't fixed the problem. While using an _Accum declaration, instead, does not seem to be recognized by the builtin functions, as in:Code:int a = 0x00FF;int b = 0x00FF;_Accum result; // or volatile _Accum result asm("A");result = _builtin_mpy(a, b,0,0,0,0,0,0);error: Expected DSP accumulator result (__builtin_mpy)Of course, I can write these in inline assembly, but I was really hoping to use the builtin's since the code looks much cleaner.Does anyone have any idea how to get around this problem?Thanks.

author: ndan
author_rank: Newbie
timestamp: August 20, 2019, 02:49:04 pm
content: Hi,In my case, there were some sources for which the "-menable-fixed" compiler flag was still present in the Makefile. This is due to either an MPLAB X makefile generation screw up or someone edited the makefiles by hand (as the application is part of a larger project).Anyway, what is not clear in the XC16 C Compiler User’s Guide is two fold:1. "-menable-fixed" enables fixed point support for the MCU, NOT the DSP engine (e.g. _Accum referes to a data type operated upon by the MCU core). This can be seen from the compiler listing of the following code:Code:_Accum a = 1,b = 1,c = 1;a = b*c;Listing:add.w w14, #0xc, w1mov.w , w4mov.w [w1+2], w5mov.b [w1+4], w6add.w w14, #0x6, w3mov.w , w0mov.w [w3+2], w1mov.b [w3+4], w2rcall 0x608 <___mulda3>mov.w w0, [w14++]mov.w w1, [w14++]mov.b w2, 2. More importantly, the "-menable-fixed" flag, probably imposes a specific alignment which clobbers the DSP engine usage (though the __builtin's) and the compiler reports the error from the previous post. Plus, the only information I could find about the error message was this statement in the user manual: "Alignment or other restrictions prevent using requested register".To solve this issue, I removed the "-menable-fixed" flag from all the places it was present in the Makefile and re-imported the project into MPLAB X.I guess one can't use the MCU supported fixed point types and DSP engine operations at the same time. Or, possibly, it can be done by using inline assembly instead of the __builtin's for the DSP.Hope this helps!
Atmega1284p use SS pin (PB4) as input for simple push button -> hang - Page 1
Forum section: electronics / general

author: nemail2
author_rank: Regular Contributor
timestamp: July 26, 2019, 11:25:20 pm
content: HiI'm struggling with using PB4 (SPI Slave Select) as an input in my current project. Unfortunately I did the PCB in a way that I need this pin working as an input for a standard tactile switch button.I understand that in SPI Master mode when the SS pin is pulled low by external periphery, the SPI bus goes to slave mode. Subsequently in my software, the code tries to communicate via SPI with a DAC and that's where the whole thing freezes. I guess because the SPI bus is still in slave mode.I already tried to do this, right after recognizing that the button has been pressed (i.e. PB4/SS has been pulled low):SPCR = (1<<SPE)|(1<<MSTR)|(1<<SPR0);also, I did set SS, MISO and SCK as a output, right after recognizing the button press.Still, the firmware hangs as soon as it tries to communicate with the SPI DAC.I do use the Arduino Framework.Any ideas/ways how to do this without redoing the PCB?Thanks!

author: iMo
author_rank: Super Contributor
timestamp: July 26, 2019, 11:27:56 pm
content: Is the 1284p supported by Arduino IDE today?

author: nemail2
author_rank: Regular Contributor
timestamp: July 26, 2019, 11:35:17 pm
content: there is a third party core for it because basically every 8 bit 3d printer mainboard uses the 1284p and one of the most popular firmwares (Marlin) is based on the Arduino Framework.Marlin is a huuuge project and thorougly tested for many years. so i gues the used 1284p core is mature...

author: nemail2
author_rank: Regular Contributor
timestamp: July 26, 2019, 11:57:29 pm
content: ok fixed, the library I was using didn't make use of SPI Transactions. Fixed that, and now the thing isn't freezing anymore.

author: nemail2
author_rank: Regular Contributor
timestamp: July 27, 2019, 01:30:10 am
content: nah, false positive, still hanging. went with using another pin than slave select of the atmega.arduino SPI library documentation clearly says to always use the SS pin as an output. so i clearly goofed that.

author: nigelwright7557
author_rank: Frequent Contributor
timestamp: August 09, 2019, 04:41:59 pm
content: Quote from: nemail2 on July 27, 2019, 01:30:10 amI got caught out with a PIC micro with USB pins.A couple of the pins have a usb function on them that can't be used for anything else if using USB module.Its a pig having to hack a nice pcb to move a pin function elsewhere.The ICSP pins can be a nuisance too. I found sometimes the PICKIT3 locks up if I use data or clock pins.The trick is to put resistors in series with the pins.
STM32MP1 - ST's Applications Processor - Page 1
Forum section: electronics / general

author: JVR
author_rank: Regular Contributor
timestamp: August 06, 2019, 08:13:47 pm
content: Couldn't find anything on search, so here goes.I'm looking for a CPU capable of running ye olde Linux for a new project, and while trying to figure out EOL of some of the ones I have devkits of, I stumbled upon this:https://www.st.com/en/microcontrollers-microprocessors/stm32mp1-series.htmlCopypasta from the sales blurb:Dual Cortex®-A7 cores running at 650 MHz32-Kbyte L1 Instruction cache32-Kbyte L1 Data cache256-Kbyte Level 2 cacheCortex®-M4 core running at 209 MHza single-precision floating point unit (FPU)a full set of digital signal processor (DSP) instructionsmemory protection unit for enhanced application securityNow its cheap, real cheap, and covers everything that I need. My issues are that I assume support will be highly limited, and a cursory look at the errata shows that it has some issues identified already. This will be my own self-designed Linux system, so I don't really feel like being a beta-tester. What are the thoughts on using a brand new SoC?The other contenders are the AM3352 and the i.MX6UL. The TI part I am worried about EOL, as its 8 years old, and the Freescale I have zero experience with.

author: JPortici
author_rank: Super Contributor
timestamp: August 06, 2019, 09:04:24 pm
content: Yeah the part is really new (it was officially released at this year's embedded world) but ST is doing a number of classes and workshops around europe to promote the part.I was actually tempted to go to one

author: thm_w
author_rank: Super Contributor
timestamp: August 06, 2019, 10:06:39 pm
content: I would call up TI and see if they can give a guarantee of the lifecycle for AM3352. I can't find any details on their site.Olimex still using it relatively recently:https://olimex.wordpress.com/tag/am3352/This module was introduced in late 2018 as well:https://www.digikey.com/en/product-highlight/c/critical-link/mitysom-335x-arm-cortex-a8QuoteWould the speed be much different? I'm thinking either if you need dual core, or if there is a specific peripheral it would sway you one way or the other.Seems to be TIs next release:https://www.ti.com/processors/sitara-arm/am6x-cortex-a53-r5/overview.html

author: krho
author_rank: Regular Contributor
timestamp: August 07, 2019, 04:28:24 am
content: i.MX6UL if you need the graphics with acceleration & layers, then you MUST use the old kernel provided by NXP. As all others, that are providing SOMs use the upstream kernel.

author: JPortici
author_rank: Super Contributor
timestamp: August 07, 2019, 07:13:04 am
content: https://www.st.com/content/st_com/en/about/events/events.html/stm32mp1x-hands-on-workshop-emea-2019.html?ecmp=tt11633_em_enews_jun2019The workshops i mentionedStill tempted to go (i have to ask the boss, as it's something that will probably never need, it would be for my own sake)

author: JVR
author_rank: Regular Contributor
timestamp: August 07, 2019, 08:43:19 am
content: Quote from: JPortici on August 07, 2019, 07:13:04 amThanks for that. I should see if I can get myself to one of those as well.
STM32CubeIDE, device configuration tool does not open - Page 1
Forum section: electronics / general

author: luiHS
author_rank: Frequent Contributor
timestamp: August 06, 2019, 09:49:07 pm
content: Hello.I imported two projects from the package examples in SMTM32Cube_FW_F7_V1.15.0, using STM32CubeIDE.The problem is that when I press the Device Configuration Tool, it is not displayed.If I create a new project, I can access this option, but not by clicking on the icon in the upper right corner, but by clicking on the ioc file of the project, there is no ioc file on the imported projects.What may be happening, is it a bug of the Editor?I already tried it with Window> Show View> Outputs, and the result is the same, nothing is shown.In the attached screenshots, only the last one shows the configuration of the device, but only when creating a new project, not when importing it, and only pressing on the ioc file, not clicking on the upper right icon.Regards

author: hansd
author_rank: Contributor
timestamp: August 07, 2019, 07:31:45 am
content: Hi, it works not like MCUxpressoIDE. I have not seen supplied sample projects with ioc files. That might change in the future.
GPS clock reference for avr - Page 1
Forum section: electronics / general

author: SlashBuster
author_rank: Newbie
timestamp: August 04, 2019, 12:18:04 pm
content: Hi there,currently I'm trying to make a gps accurate watch with an avr.But I'm not sure how to calibrate the internal clock of it.The setup is a org4400 gps module which is controlled by an attiny817.Is there a "best practice" way to do that?The Attiny817 has a internal Clock and 32kHz tuning fork.Thank you in advanceBest regards

author: PCB.Wiz
author_rank: Super Contributor
timestamp: August 04, 2019, 08:58:07 pm
content: Quote from: SlashBuster on August 04, 2019, 12:18:04 pmDo you want this to work with no GPS, or is the GPS always connected and always on ?If the GPS is always there, I think you can simply ask the GPS the time...If the GPS is only sometime there, that needs more finesse.Internal Clocks are very poor, 32kHz tuning forks are better, but still have parabolic error curves, which are not great.You could calibrate 32kHz at room temperature, and hope the temperature does not change much.Capture of 1pps at 32kHz gives you ~31ppm in 1 second, and ~3ppm in 10 seconds, and 61 seconds of capture will give you 0.5ppm32.768k*61 = 0x001E8000, so you can simply read the lower 16 bits captured every 61 seconds, via the 1pps signal32.768k*(1+100u)*61 = 0x001E80C7 is the result for a 100ppm error in Crystal.Better may be to run the AVR from a TCXO and calibrate that, as that allows longer no-GPS times.
sim72-fp - timing &C - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: August 02, 2019, 09:25:01 am
content: sim30's are simple, you have { ras, cas }, while sim72-fp's looks more complex and I am a bit confused because they have { { RAS0 RAS1 RAS2 RAS3 } { CAS0 CAS1 CAS2 CAS3 } } but I have seen designs where only { ras0 ras2 } are used, and connected together, while { ras1 ras3} are simply unconnected.is there a clear and neat document about this?

author: legacy
author_rank: Super Contributor
timestamp: August 04, 2019, 12:00:20 pm
content: There are documents on 72SIMM around the internet but they are confusing. Yesterday I found in a street market a copy of "The indispensable PC hardware book", and from what I have understood, the assignment of RASx and CASx are made according to single-sided or double-sided. The book gives examples, and it seems that if the SIMM is singled-sided, then only RAS0 (lower 16 bits) and RAS2 (upper 16 bits) are used, while RAS1 and RAS3 are for the 2nd side of the double-sided SIMM card.
IC Programming Basic Question - Page 1
Forum section: electronics / general

author: mendez
author_rank: Regular Contributor
timestamp: August 02, 2019, 04:02:50 am
content: I'm trying to find an IC Programmer for flashing ATMega16U2 and ATMega2560 chips;Anyone knows if something like this will work? (TL866II)https://www.amazon.com/gp/product/B07DHTC44J/ref=ox_sc_saved_title_3?smid=A2J0TMTN1QJCNU&psc=1For the ATMega2560 I was going to purchase this adapter:https://www.amazon.com/gp/product/B077G16RK6/ref=ox_sc_saved_title_1?smid=AFBR14VXSBPC&psc=1For ATMega16U2 I was going to purchase this adapter:https://www.amazon.com/gp/product/B0757MJW4P/ref=ox_sc_saved_title_2?smid=AFBR14VXSBPC&psc=1Thanks for the help!Anyone has any experience on this?

author: ataradov
author_rank: Super Contributor
timestamp: August 02, 2019, 04:20:06 am
content: Why would you want to program them outside of the board?Get something like thishttps://www.ebay.com/itm/USBASP-USBISP-AVR-Programmer-Adapter-10-Pin-Cable-USB-ATMEGA8-ATMEGA128-Arduino/323636672471if you want things to be cheap.

author: coromonadalix
author_rank: Super Contributor
timestamp: August 02, 2019, 05:34:11 am
content: For the two sockets links you provided there is no garantie they will work fine for an tl866As ataradov wrote, an usbisp could do just fine if you have the jtag/isp port cpu on the board ...https://www.amazon.com/gp/product/B077G16RK6/ref=ox_sc_saved_title_1?smid=AFBR14VXSBPC&p;sc=1doesnt seem to have its base board / Ie the 44 pins dip to the zif conversion board who's missing ??Or use the tl866 special port on the side to do the same ... unless you really need them programmed before putting them on a pcb ?
kivy on raspberry pi - Page 1
Forum section: electronics / general

author: billtodd
author_rank: Contributor
timestamp: July 30, 2019, 05:20:40 pm
content: hi all,anyone here have experience installing and running kivy on later rpis? (3+ , 4)I'm fairly familiar with python on the pi running under raspbian , but would not like to have to get too familiar with the Linux command line.Bill

author: HB9EVI
author_rank: Frequent Contributor
timestamp: July 30, 2019, 05:49:53 pm
content: download it and try it out!I don't know what's the point using linux and not wanting to use the console; that's the most powerful tool you can have, all the sysadmin GUIs are just bogus

author: billtodd
author_rank: Contributor
timestamp: July 30, 2019, 06:07:47 pm
content: Sorry i have posted this question to the wrong forum . mod's can you move this to embedded please.hb9evi,if things were only that simple...I should have said that i have tried: the prepared boot image unfortunately does not work on the 3+and I believe the pip install requires some fiddling to configure for the rpi .I'd love to get to know linux better , but the years are piling up and my brain is still using core memory !(i wrote my first program (and bug! )in 1968 for a honeywell and may still have the stsck of line-printer paper to prove it :,-))bill
Speaker protect circuits. - Page 1
Forum section: electronics / general

author: nigelwright7557
author_rank: Frequent Contributor
timestamp: July 26, 2019, 01:14:29 am
content: As I build a few amplifiers after nearly blowing up a speaker after one had a fault I came up with speaker protect circuit.It just drops out a relay if it detects dc in the signal to the speaker.I used a PIC12F509. I used 2 pins to detect the phase of the audio signal.I also added a power up delay for the relay.I then progressed the design to a solid state relay with dc detect, over current detect and power up/down detect.I designed the pcb myself using PCBCAD360.

author: Rick Law
author_rank: Super Contributor
timestamp: July 26, 2019, 02:45:10 am
content: I am not as experienced as most here, but I have seen a number of PCB in photo attachments here - tens of dozens probably.I must congratulate you. I found your board very aesthetically pleasing. It is very nice to look at.

author: nigelwright7557
author_rank: Frequent Contributor
timestamp: July 28, 2019, 09:27:37 pm
content: Quote from: Rick Law on July 26, 2019, 02:45:10 amMy only criticism of the pcb is the size.It really needs to be smaller to fit in the enclosure with the amplifer.My latest revision is a bit smaller.PCB was done with PCBCAD360.

author: bob91343
author_rank: Super Contributor
timestamp: July 28, 2019, 10:14:07 pm
content: Is relay dropout fast enough? I would add a closure to short the speaker as well. One major spike could still get through.But yes, a nice job. I have never been able to get myself into fabricating PC boards but would like to. The software always seems awkward and often the libraries lack some devices I need. Do you use ferric chloride? Or do you just buy the boards?

author: nigelwright7557
author_rank: Frequent Contributor
timestamp: July 28, 2019, 10:27:02 pm
content: Quote from: bob91343 on July 28, 2019, 10:14:07 pmIts a solid state relay, the mosfet's drop out in micro seconds.I only buy in pcb's from China. I can get 10 pcb's 10cm by 10cm for $5 plus p+p.I often buy in a few different pcb's so the cost of p+p is shared out among them.p+p is only expensive if you get 3 day delivery.I use PCBWAY and JLCPCB.
ATmega328p not running - Page 1
Forum section: electronics / general

author: vockleya
author_rank: Newbie
timestamp: July 22, 2019, 02:15:20 am
content: I'm working on a PWM-controlled LED lamp with full 0-100% dimming on 2 separate channels. It's based on an Arduino Nano and the ATmega328P.This is the second iteration of the board, due to some layout and component footprint issues from the first version. I couldn't fit enough capacitance on the buck regulator output to keep it stable. This has been fixed in the latest iteration. The only things that have changed since the first version are some component selections (mostly footprint changes) and a rework of a few section of the layout.The uC worked fine in the first version (I just powered it from the ICSP port), but now it just doesn't run. I don't even see anything happening at the oscillator pins. I have a few options for what is wrong, but I'm not sure where to start. The only thing that I can think of is a layout issue in the oscillator section, as that is really the only thing related to the uC that has changed between board versions.I've attached the schematic and board layout in the hope that someone more experienced than me might see something. I had to hide the copper pours to make the board image intelligible, but there is a ground pour that fills the entire back of the PCB and a +5v pour on the left third of the top layer. There are also some small pours in the 3 power sections (U1-3) where things look disconnected.

author: vockleya
author_rank: Newbie
timestamp: July 22, 2019, 03:20:56 am
content: Whoops. It appear that I forgot to actually attach the files.

author: oPossum
author_rank: Super Contributor
timestamp: July 22, 2019, 05:06:00 am
content: Missing ground on pins 5 and 21.Missing Vcc on pin 6.No 100 nF cap near the '328 supply pins.PCB doesn't seem to completely match schematic. No connection to pin 4 for example.

author: vockleya
author_rank: Newbie
timestamp: July 22, 2019, 05:28:06 pm
content: Ah dangit. I knew there had to be something stupid that I forgot. I always seem to miss the bypass caps.All the power pins are connected. As I said in the original post, I had to hide the ground and VCC pours to make the rest of the traces visible. And for some reason the "missing" power pins on the schematic are actually hidden under the other ones. A bit weird, I know, but they are all connected when the pours are visible.

author: JDubU
author_rank: Frequent Contributor
timestamp: July 24, 2019, 01:57:42 am
content: Did you program the ATmega328 fuses?
IAR switched all files to "not compiled" after linker is done - Page 1
Forum section: electronics / general

author: michaelym
author_rank: Regular Contributor
timestamp: July 21, 2019, 06:03:16 am
content: Hi,I'm using IAR for arm v7.40.After adding a few new files to my project (not sure if this is the cause) i have the following effect.When I click "Make", all the files compile and the red '*' goes away to indicate that it compiled.As soon as the linker is done successfully all the files immediately get a red '*' back.This is frustrating because I need to wait a few minutes each time I want to enter debug for example.Does anyone know of any possible causes for this?Michael

author: ataradov
author_rank: Super Contributor
timestamp: July 21, 2019, 06:19:12 am
content: Check/set modification time of all files. I'm not sure about IAR, but sometimes stuff like this happens when files are created in the future compared to the local time of the computer.

author: michaelym
author_rank: Regular Contributor
timestamp: July 21, 2019, 06:48:45 am
content: Amazing thank you!!! One of my header files was modified in august 2019 once I corrected it the problem was solved.
TXS0104ED translator is not generating 5V PWM from 3.3V PWM from MCU ? - Page 1
Forum section: electronics / general

author: muthukural001
author_rank: Regular Contributor
timestamp: July 11, 2019, 03:53:34 pm
content: Hello All,I have been working on controlling a motor using PWM which is from microcontroller (3.3V logic)...Since the motor driver that I am using is 5V, I used a level translator that converts 3.3V signals of microcontroller to 5V signals that is Motor driver compatible...The problem is that the PWM signal level at the level translator output around 3.2 V instead 5V...Is it due to the weak current source of that channel and it is reducing the voltage level...Do I need an external pull-up at the output ?...But, I have not checked the PWM level without motor driver yet to confirm the above...Do anyone think this problem is related to others?Thanks,

author: fchk
author_rank: Frequent Contributor
timestamp: July 13, 2019, 06:48:37 pm
content: You should not use bidirectional level translators with automatic direction control unless you REALLY need to. The automatic direction control is easy to disturb, and the push capability is usually low.74LVC1T45/2T45/8T245 are much more reliable and have +-24mA drive capability.

author: SiliconWizard
author_rank: Super Contributor
timestamp: July 13, 2019, 07:44:36 pm
content: Yeah, I usually don't like those much either.That said, the datasheet (which isn't that great IMO) states: "An external pull down resistor decreases the output V OH and V OL ."Check that your motor driver doesn't load the outputs of the translator too much. Have you looked at the outputs with the motor driver disconnected?

author: muthukural001
author_rank: Regular Contributor
timestamp: July 20, 2019, 11:41:00 am
content: Hi,Thanks for the reply...Actually, the purchased motor driver board has 10K pull down resistor at its pwm input...It makes a voltage divider with the 10K pull up resistor inside the translator chip...So, the voltage divides half...After removing the 10K, I can see the PWM at 5V...Thanks,Muthu
X C 8 - Evolution  - Page 1
Forum section: electronics / general

author: DownToTheCode
author_rank: Newbie
timestamp: July 26, 2019, 09:16:16 pm
content: Hi, I'm new (electronic engineer, love hw and sw),I've read a nice post concering PIC32 evolution and related stuff about the compiler and how is possible to cure it, so the title of this thread.I've did some testing around the 8 bit PIC compiler by compiling the xclm file but is not possible to get working the compiler with all the opt set, I'm checking about the widely used 1.45 and the newest 2.05 release to see what are the main difference on some code that I've on my hand to test somethings have info how to step away?BR
ARM: SAMD51, Mainclock Reg APBDMASK not accepting settings? - Page 1
Forum section: electronics / general

author: XFDDesign
author_rank: Frequent Contributor
timestamp: July 19, 2019, 12:21:33 am
content: Sorry to bother, but this is rather irritating me: I have an ATSAMD51, and am looking to get a timer (TC6) setup. TC6 is tied to the Main Clock peripheral's (0x40000800) APBDMASK register (0x40000820). In order to enable TC6, I need to enable the clock resource. Per the usual gamut, I also have to setup the GCLK resource through the PCHCTRL register (39). Pretty standard stuff, which I've done for SERCOM resources and the like.The problem I get is, MCLK->APBDMASKrefusesto accept any settingsexceptsetting SERCOM4 and SERCOM5 to 1 (enabling them). SERCOM6 and SERCOM7 bits do not take. I cannot set any other bits of MCLK->APBDMASK and get it to stick. I did a number of reality checks:- No error in my peripheral mapping, APDBMASK is correctly at 0x4000820 (MCLK + offset of 0x20).- APDBMASK is not write-protected per the PAC- I changed the ordering of PCHCTRL to before the mask enabling, and still nothing (just in case)- I have not found anything in the datasheet specifically on APBDMASK which suggests special clock routing or setupThe short code snippet is:pMCLK->APBAMASK.bits.SERCOM0 = 1; // enable SERCOM0 peripheralpGCLK->PCHCTRL.bits.GEN = 2; // use Generator 2 for itpGCLK->PCHCTRL.bits.CHEN= 1; // turn on the peripheral channel for SERCOM0pMCLK->APBDMASK.bits.TC6 = 1; // enable TC6 peripheralpGCLK->PCHCTRL.bits.GEN = 2; // route GEN2 to TC6pGCLK->PCHCTRL.bits.CHEN = 1; // enable itWhat gets more bizzare to me, is that this behavior mirrors itself on APBCMASK. But once you get to APBAMASK and APBBMASK, they work just fine.GCLK0 and GCLK2 share the same input resource, a 12MHz external oscillator. Everythingoutsideof this affair works just fine.Does anyone have some ideas on what I'm doing wrong, or where I should look?

author: ataradov
author_rank: Super Contributor
timestamp: July 19, 2019, 02:02:33 am
content: What is the full part number of the device you have? QFN-48 parts only have 4 TCs, for example.

author: XFDDesign
author_rank: Frequent Contributor
timestamp: July 19, 2019, 11:56:27 am
content: Quote from: ataradov on July 19, 2019, 02:02:33 amYou know, that's it and thus why I'm a moron. (It is a QFN48 on this project: SAMD51G19A )Thank you.

author: westfw
author_rank: Super Contributor
timestamp: July 20, 2019, 06:44:43 am
content: Heh. It is interesting to have actual code show that the 48pin chip is actually different, and not just the same die in a smaller package...

author: ataradov
author_rank: Super Contributor
timestamp: July 20, 2019, 06:47:49 am
content: Quote from: westfw on July 20, 2019, 06:44:43 amBut it is though. There are settings programmed in production to tell the chip what it is.But even on the chips where there are no settings, functionality of those "extra" blocks is not guaranteed. There may be a die cut in the future that will cut them for real.
[SOLVED] Looking for a NXP XA-G30 Dissasembler - Page 1
Forum section: electronics / general

author: sixtimesseven
author_rank: Frequent Contributor
timestamp: July 13, 2019, 10:17:36 pm
content: I have a chroma 16502 which needs calibration, unfortunatly the cal. menu is pasword lockedI got the firmware of the eeprom, see attached zip for the bin file.However, the microcontroller is a NXP PXAG30KBA which they describe as XA-G30 family.I could not find much regarding this old, obsolete chip but I was wondering if sombody has a disassembler for it?

author: GromBeestje
author_rank: Frequent Contributor
timestamp: July 13, 2019, 10:41:38 pm
content: From a quick glance at the datasheet, it looks like its architecture is an extended version of the 8051. Therefore I would try to see what a 8051 decompiler makes of it. I suggest to load the file into radare2, select 8051 architecture and see what happens.

author: amyk
author_rank: Super Contributor
timestamp: July 14, 2019, 02:02:17 am
content: It's not an 8051. The claims of 8051 compatibiilty are like saying that the 8086 is compatible with the 8080/8085.https://www.ceibo.com/eng/datasheets/Philips-XA-User-Guide.pdfThe password is probably stored in EEPROM. Do you want to actually reverse the algorithm, or find which byte(s) to patch in the ROM to bypass it?Either way, if you don't find something, let me know and I can write a disassembler. The above doc has all the necessary information.

author: sixtimesseven
author_rank: Frequent Contributor
timestamp: July 14, 2019, 10:24:53 am
content: Quote from: amyk on July 14, 2019, 02:02:17 amNice thank you!I'm not so much interested in the firmware, just knowing which bytes to flip would be plenty.However, I had another idea. I noticed that there is no max number of passwords. And the max input frequency for the keys is pretty high (>40Hz). There are 9 different keys with a five position pasword makes 5^9= 1953125 combinations which should take about 3 days to brute force

author: sixtimesseven
author_rank: Frequent Contributor
timestamp: July 14, 2019, 12:59:59 pm
content: Sooo ... Turns out Chroma cannot implement a halfway decent passwordI wired up an arduino to trigger each switch, but before going trough with the 5^9 combinations I figured I test the simpler 5^4 or 5^5 combinations in case they used F1-F4 or the navigation keys exclusivly.Turns out they have... Password is pretty trivial, should have gotten it by trying obvious ones hand:It is: [ArrowUp, ArrowDown, ArrowLeft, ArrowRight, Trigger]
Help this newbie with using digital potentiometer and LM386 - Page 1
Forum section: electronics / general

author: radhika
author_rank: Regular Contributor
timestamp: June 30, 2019, 08:06:09 pm
content: Hello,I am newbie at CCS programming. I am designing speaker with digital potentiometer. The amplifier is LM386 and digital potentiometer is MCP4131 (100k). I am using PIC18F4520 microcontroller at 8Mhz frequency.I have code for it and checked it in Proteus. In starting I get the result but later it's distroted. I am even not sure about connection and code.Here is the link of my project:https://drive.google.com/file/d/1QHNxqeWKzp2rSDr7pHt8O0fzUNK9sQoW/view?usp=sharingPlease guide me that where I am wrong and where I can improve and how.Awaiting response.Thanks

author: radhika
author_rank: Regular Contributor
timestamp: July 01, 2019, 04:55:22 am
content: Quote from: radhika on June 30, 2019, 08:06:09 pmIf anybody is not able to open the link in this post, then please click on this link here you can easily download .rar file.https://www.edaboard.com/showthread.php?385191-Help-in-using-digital-potentiometer-with-LM386&highlight=digital%20potentiometer%20LM386Awaiting response.Thanks

author: mikerj
author_rank: Super Contributor
timestamp: July 04, 2019, 11:51:42 am
content: Only a thumbnail of your schematic can been seen on edaboard unless the viewer is registered, better to post the image on here if you want people to see it.To use a digipot with audio signals the signal must be biased somewhere close to the centre of the digipots operating range. If you are trying to pass an AC coupled signal though the MCP4131 then it will be clipped on the negative going parts of the waveform (effectively half wave rectified) which will cause a huge amount of distortion.

author: nigelwright7557
author_rank: Frequent Contributor
timestamp: July 24, 2019, 08:53:35 pm
content: Bear in mind the digital pot requires ac signals inside its rails.If the digital pot power lines and zero and five volts then the ac needs to sit on 2.5 volts dc.
STMLink for STM32 - Page 1
Forum section: electronics / general

author: NivagSwerdna
author_rank: Super Contributor
timestamp: July 11, 2019, 03:33:42 pm
content: V2 or V3SET?It seems the V3SET is modular but the base-unit looks like it does everything a V2 does w.r.t. STM32?Thanks in advanceNivag

author: capt bullshot
author_rank: Super Contributor
timestamp: July 11, 2019, 03:48:37 pm
content: Depends on your target ...As far as I've seen, the V3 has a more powerful controller, so it could be able to run SWD / JTAG at higher frequencies, maybe useful for the more modern STM32 chips.Next, the V2 doesn't have the USB to serial onboard as V2.1 does. V2.1 is quite common on the nucleo and recent discovery boards, while V2 is on the older boards. The standalone is V2, never seen a standalone V2.1.So if you like the USB to serial onboard the ST-Link (as I do, very useful for debugging), either V3 (afair V3 supports this) or just cut off the V2.1 from a random nucleo 64 board (cheaper than the standalone V2 anyway).