hybridfree/eevblog-posts huggingface dataset:
Reading/Writing ADSP Blackfin flash problems - Page 1
Forum section: electronics / general

author: Fabian
author_rank: Contributor
timestamp: September 10, 2019, 04:38:54 pm
content: Hi everyone,maybe someone already read it:https://www.eevblog.com/forum/repair/rigol-dg4000-power-rails-failure-and-firmware-bricked/I am trying to repair my DG4162 function generator. One problem is the broken firmware of the Blackfin DSP. I was able to get an FT2232H together with the ADI linux toolchain to talk to the DSP. I also figured out how to read/write the flash using urjtag and did it like written in the thread. But writing failed with some verify error. Now out of the sudden I am not even able to read the flash information using detectflash in urjtag. It gives me this error message:Code:jtag> detectflash 0x20000000dev ID=ff96 man ID=0090urj_flash_amd_detect: mid 90, did ffbferror: flash: mid != 0x01Can someone tell me whats going on and how I properly read/write the flash?

author: Fabian
author_rank: Contributor
timestamp: September 10, 2019, 06:15:48 pm
content: OK, I managed to get rid of the error message. There seems to be an additional hardware fault, causing the reset line of the flash chip to be "not exactly high". Added an additional pull-up an now I can write the flash, verify is also ok.But I would still like to know what the correct procedure is to read/write the full flash? I had a deeper look into the 16M file I read from the device. It is actually 16 times the same data of 1M. So I am not reading the full flash. Is that not possible? Why is the flash file of the dg4000 than that big? What else is in there and where does it goes? Any insight in the data/instrument would help.

author: tv84
author_rank: Super Contributor
timestamp: December 04, 2019, 03:49:28 pm
content: Quote from: Fabian on September 10, 2019, 06:15:48 pmMaybe I can help. Can you send me your flash dump?Does the flash dump contain the bootloader at the beginning? If so, can you start up the unit?Edit:Is this your flash dump?https://www.eevblog.com/forum/repair/rigol-dg4000-power-rails-failure-and-firmware-bricked/msg2677233/#msg2677233

author: Fabian
author_rank: Contributor
timestamp: April 27, 2020, 11:08:10 am
content: Yes, thats mine. Sorry for the late reply. Have not played with that problem for a long time and did not turn on notification.

author: jackthomson43
author_rank: Contributor
timestamp: May 01, 2020, 12:48:40 pm
content: Btw there's no need to reply now .... after 4 months, he must have forgot that thread by now. seems like its aboutEmbedded Systems.
Package is not found X-CUBE-IPS02A1 - Page 1
Forum section: electronics / general

author: majdgh
author_rank: Contributor
timestamp: April 11, 2020, 07:58:27 am
content: Hello,i am developing some projects and i need Energy management chips.. i got the X-NUCLEO-IPS02A1 and the NUCLEO-F401RE so i could you use the examples in thepackage X-CUBE-IPS02A1.The Problem is i can't download the software package because no link is shown to download even is the product is active:https://www.st.com/content/st_com/en/products/embedded-software/evaluation-tool-software/x-cube-ips02a1.html#overviewI have tried since days to contact ST directly and also to ask in ST Community before writing here, but no answer, does anyone knows how to get it?Thanks for your help in Advance.

author: ivi_yak
author_rank: Regular Contributor
timestamp: April 30, 2020, 12:21:45 am
content: https://www.st.com/en/ecosystems/x-nucleo-ips02a1.html#tools-software

author: GromBeestje
author_rank: Frequent Contributor
timestamp: April 30, 2020, 06:44:24 am
content: Have you tried clicking that link?

author: jackthomson43
author_rank: Contributor
timestamp: May 01, 2020, 12:38:14 pm
content: He has already shared the link, why you go through all that trouble .... taking the image & then sharing it ?https://www.theengineeringprojects.com/2021/03/what-is-raspberry-pi-zero-pinout-specs-projects-datasheet.html
7 inch resistive touch calibration??? - Page 1
Forum section: electronics / general

author: seyedsaeed
author_rank: Regular Contributor
timestamp: May 05, 2020, 09:41:37 am
content: HiI calibrated the 3-point methodBut the result is not greatWhat do you think ?

author: profdc9
author_rank: Frequent Contributor
timestamp: May 05, 2020, 09:55:53 pm
content: I have used the 3-point technique with excellent results. My VNA project has touchscreen code in it:http://www.github.com/profdc9/VNAFrequently averaging of samples duriing a touch press is needed to produce decent results, and you should discard the samples from the first 50 ms of a touch or so, as the contact is still being made.

author: ajb
author_rank: Super Contributor
timestamp: May 05, 2020, 11:31:21 pm
content: Quote from: seyedsaeed on May 05, 2020, 09:41:37 amI think you need to tell us how you implemented the 3-point method and what you mean by "not great" before we can even begin to help you. Show your code, for preference. Wouldn't hurt to show your schematic as well.It could be anything from an improper algorithm to some nonlinearity in the screen/ADC to a problem with the circuitry. No way to tell without more information.

author: seyedsaeed
author_rank: Regular Contributor
timestamp: May 06, 2020, 04:29:55 am
content: Thanks friendsMy problem was solvedThe problem was the speed of the SPI, of course it was 1.3 MHz, which I changed to 650 kHz.
USBASP and ATMEGA64A - Page 1
Forum section: electronics / general

author: masterx81
author_rank: Frequent Contributor
timestamp: April 25, 2020, 08:45:07 pm
content: Hi!I'm trying to program a blank ATMEG64A with a cheap USBASP. The chip is on a board, with a crystal connected.I know that the USBASP is working as i have 2 of them, and i've used each other for update the firmware (using "usbasp.atmega8.2011-05-28.hex" file, that i think is the correct one to use)I'm using both AVRDUDESS 6.3 and ExtremeBurner.When i try to do a device read or simply a "DETECT" of the device, it always fail.I've attached the logic analyzer for try to understand what's going on.On VCC and AVCC i have 4.5v.The reset signal goes to 0 correctly.The programmer start the clock at 500hzThen the programmer send correctly via the MOSI pin to the pin 2/PE0 of the ATMEGA64A the AC 53 00 00 commandAfter this, i must read something on the MISO pin (pin 3 of the package), but the ATMEGA doesn't output nothing.Attached there is a screen of the LA.CH0 0 reset, CH1 CLK, CH2 MOSI, CH3 MISOWhat's going on??Thanks!

author: oPossum
author_rank: Super Contributor
timestamp: April 25, 2020, 09:04:11 pm
content: That clock doesn't look right. It should be much wider.

author: masterx81
author_rank: Frequent Contributor
timestamp: April 25, 2020, 10:28:00 pm
content: Uhm, need to check what cam cause this. The period is correct.

author: admiralk
author_rank: Regular Contributor
timestamp: April 25, 2020, 10:41:22 pm
content: Quote from: oPossum on April 25, 2020, 09:04:11 pmThat is my thought. Zoom out a bit and see if the changes are on the right edge; rising or falling.

author: masterx81
author_rank: Frequent Contributor
timestamp: April 26, 2020, 10:42:17 am
content: The clock was the right direction to follow. I've tested the clock without the board attached and had the correct shape. So i've isolated the clock pin of the mcu lifting it from the board and... tadan! Programmer is working. Maybe there is some load on the pin that do interference to the programmer. Thanks!

author: masterx81
author_rank: Frequent Contributor
timestamp: April 26, 2020, 11:17:01 am
content: Ehm... i've set the fuses to Low=0 High=0 Ext=0xFC and stopped responding... spi programming is enabled (SPIEN=0). Starting to hate this thingEditOk, got it, if the clock source is wrong the device not work also on spi programming. Sourced the right clock and started to answer. I'll add to my list of things to NOT DO "trust fuse settings found somwhere".It's the first time that i do AVR (always used pic) and i'm a bit confused
SAMD21 burning bootloader with gdb / black magic probe - Page 1
Forum section: electronics / general

author: stan001
author_rank: Contributor
timestamp: April 23, 2020, 12:26:32 pm
content: Hi all,I follow these steps to burn the bootloader to SAMD21 ... the process was successful but after I upload a sketch from Arduino IDE , sometimes the bootloader went away and I lost the serial port and have to re-burn the bootloader using the SWD pins again....I follow the steps below :-https://leoingenuity.wordpress.com/2019/03/28/flashing-custom-bootloader-to-sam-microcontroller-with-blackmagic-probe/On another site, I need to unlock the bootprot using the available commands in gdb for samd21https://electronics.stackexchange.com/questions/438386/samd21-how-do-i-write-to-nvm-fuses(gdb) monitor unlock_flash(gdb) monitor unlock_bootprot(gdb) monitor erase_massI read that I have to burn some fuses before I can write to the bootloader ..I'm now totally confused ...

author: ataradov
author_rank: Super Contributor
timestamp: April 24, 2020, 01:16:56 am
content: BOOTPROT is one of the fuses. I'm guessing unlock_bootprot sets the fuses so that bootloader area is not protected. This would let you program the bootloader. If your bootlaoders gets erased, I guess Arduino bootloader uses Chip Erase command. This command will erase entire device, even the bootloader if it is not protected.So you need to figure out how to set BOOTPROT fuse back after you program the firmware. I have no idea how to do that using GDB.
Arduino ProMini car project ws2812b - Page 1
Forum section: electronics / general

author: jipaionutcatalin
author_rank: Newbie
timestamp: April 24, 2020, 08:59:50 am
content: Hi allI have this project in mind, rear signal light and brake to a ws2812b 12 led strip, 6 for a left signal turn yellow, 6 for a right turn yellow and 12 red led when brake. Because it is at the rear I need to take the 'signal' for my mini pro Arduino i/o pins from the light itself which will be 12 v. What I need to use to convert the ground and positive 12 v to a signal input for the pro mini?. Thanks in advance.

author: tmadness
author_rank: Regular Contributor
timestamp: April 24, 2020, 07:28:35 pm
content: A simple voltage divider should be enough, but automotive 12 v tends to be dirty with spikes >> 12 V so you can feed the reduced voltage through a optocoupler. You could add a few clamping diodes to further mitigate those nasty spikes.something like this should work,https://www.vishay.com/docs/84433/voma617a.pdf. But there are probably dozens of alternatives.

author: jipaionutcatalin
author_rank: Newbie
timestamp: April 25, 2020, 09:58:50 am
content: Thx for that.

author: mikerj
author_rank: Super Contributor
timestamp: April 25, 2020, 05:04:58 pm
content: What are you going to do when braking and indicating? Turn signal spacing on a strip of 12 LEDs will not be legal in the UK.

author: jackthomson43
author_rank: Contributor
timestamp: May 01, 2020, 12:46:22 pm
content: You can use simple relay boards or FETs i.e. 75N75. It will be placed in between Arduino Pro Mini & ws2812b and using FET you can easily control 12V LEDs with 5V logic. Read it out. How to use FETs as a switch.Btw in your case simple NPN transistor i.e.BC547will also work as ws2812b doesn't need much amperes.
ePulse low power ESP32 devboard. - Page 1
Forum section: electronics / general

author: hamster_nz
author_rank: Super Contributor
timestamp: April 18, 2020, 03:09:24 am
content: I just received my epulse ESP32 board order. It was delayed due to COVID19, but made it to NZ quicker than expected.I quickly hooked up a PSU and a few meters to measure the power usage.* 27.4 mA with the CPU running (no Wifi running)* 23.5uA when the CPU is in deep sleep (with a timer running for wakeup).In the pictures the uA is on the meter in the center, the mA on the right.That is pretty good for a US$16.90 ESP32 board. The 3V3 LDO they are using is the TS9013SCW - might have to get some!https://thingpulse.com/product/epulse-low-power-esp32-development-board/PS. The uA meter has a piss-poor shunt over it until the board goes into deep sleep, hence the 300nA reading when measuring the mA.EDIT: Correct SI unit prefix error... Opps!

author: hamster_nz
author_rank: Super Contributor
timestamp: April 18, 2020, 03:44:49 am
content: Quote from: blueskull on April 18, 2020, 03:36:13 amOpps. Yes.... I've corrected the SI prefix error in the original post - isolation induced brain fade, I guess.I like the CH340 too, and will never buy any low-cost products with FTDI chips - it is just too risky.
Code::Blocks build etc. delayed - Page 1
Forum section: electronics / general

author: T3sl4co1l
author_rank: Super Contributor
timestamp: May 12, 2020, 11:44:50 pm
content: Recently developed problem: often when I go to build a project (and it seems, also when opening a new one), it hangs for about 4 seconds, then builds normally.I hooked up Process Monitor and it seems the critical operation is a faulty network access:Code:\\"E\Program Files\Atmel\Atmel Toolchain\AVR8 GCC\Native\8.1.0\bin"\This occurs after about 4.5 seconds, when the hangup releases and the build finishes. I do not, of course, have an "E" machine on my network, so the path fails. (Other than the leftmost part, the path is the correct location of my build tools.) Seemingly Windows times out after 4ish seconds, and caches the result so that repeated access (say if I hit Build every some seconds) goes through immediately.Before that, the usual flurry of access, mostly probing file paths it looks like. After that, more of the same, but also creating process avr-gcc.exe and such, i.e., actually starting the build process.During the wait, Code::Blocks completely hangs, no console output shown, does not respond to input.It's interesting that the very next operation is also badly formatted,Code:E:\Documents and Settings\Tim Williams\My Documents\AVRStudio 5.1\GPIB-Serial\"E:(this apparently being an erroneous project-relative access), almost like it tried to concatenate two paths but by a fluke of syntax, it broke into two separate checks, the one of which turned into a network path.It's repeatable across several projects, so I don't think it's in the projects themselves; or, if it is, it's immediately contagious.Any idea where I might've entered a bum path? I don't find the string anywhere in the config file...Tim

author: HwAoRrDk
author_rank: Super Contributor
timestamp: May 13, 2020, 09:53:13 am
content: Hmm, this might be related to the random 2-3 second hang I sometimes get before compilation finishes.The compiler has finished running, but it's like C::B is waiting on something before concluding. The weird thing is that it's not counting this time, as logged execution time would say e.g. "2 seconds", even though it didn't return for 5.What did you use to log file access? Procmon? I should try and see what it turns up.

author: HwAoRrDk
author_rank: Super Contributor
timestamp: May 13, 2020, 01:15:12 pm
content: I tried logging file and process activity, but couldn't actually get it to exhibit the problem behaviour, so I didn't see any invalid paths.One thing I noticed: all the paths it's probing are ones that are in thePATHenvironment variable. Have you checked yourPATHvalue to see whether it contains anything invalid? (Open a command prompt and typeset PATH.)

author: T3sl4co1l
author_rank: Super Contributor
timestamp: May 13, 2020, 03:20:36 pm
content: Hmm, the path in question had quotes around it. Looks like that breaks some things, interesting. Lesson: paths don't need to be quoted, indeed some APIs can't properly compose paths with quotes in the middle!Tim
Sigrok PulseView Questions/Comments/Discussion - Page 1
Forum section: electronics / general

author: Electro Fan
author_rank: Super Contributor
timestamp: April 15, 2020, 08:36:39 pm
content: Hi,I started this thread in the Beginners forum but after getting no replies over there I've moved it here. Hope that's ok.Preamble: PulseView is a very enjoyable and useful app. Thanks & Congrats! to everyone who helped develop it!Key question: is there a way within the UART decoder to search for ASCII characters or other values (binary, hex, etc)?I'm guessing it's in there and I just haven't found it.The only thing I've found so far are some ways to export info for search in other tools.Below are some other clarification questions or fine tune suggestions on the design.All of these other questions pertain to the UART decoder (they might or might not be applicable to other decoders).The stop bit slider seems to only allow choices of 0, 0.5, 1, and 1.5.... but not 2 stop bits?What is the meaning/purpose of the RX and TX packet delimiters and lengths, and especially, why do they default to -1?The pop-up box that lets you edit the UART settings doesn't seem to be movable (it seems to be "docked" by design). An alternative convention might be to have a title bar that can be clicked upon and then "grabbed"/moved; resizing would also be nice, but mostly the ability to move the box would be helpful.Given that the box doesn't seem to move or resize, the vertical scroll bar is pretty useful - but when scrolling over any of the drop down fields within the box it seems that the values that would normally be selected with the drop down arrow will scroll within the drop down field when just hovering over the non-expanded drop down field, making it pretty easy to unintentionally change values when navigating around within the overall UART edit pop-up box.Again, just some small possible fine tunes. Main question is about how to search and navigate - but any answers/questions/comments/discussion on PulseView in general are welcome. Thx
SAMD51 - Error Flow Status USB - Page 1
Forum section: electronics / general

author: kamtar
author_rank: Regular Contributor
timestamp: April 11, 2020, 10:59:43 pm
content: Hello, if there is somebody who has worked with ASF 4 and can help me to get unstuck I would be grateful.I have ATSAMD51J20 board and I'm using on it ASF4 USB libraries generated by Atmel start.I have managed to get USB device enumerated successfully (audio device) communication on endpoint0 is working fine but I can't receive anything on any other endpoints.I'm getting Error Flow Status in a Bank status on every packet I receive on any other endpoint then 0.One thing I noticed is that they don't have assigned cache addresses in an ADDR of bank descriptor. Which is assigned only through functions_usb_d_dev_in_nextand_usb_d_dev_out_nextwhich are called when handling transfers from that specific endpoint.So how is that driver (hpl_usb.c) supposed to initialize USB endpoints? In_usb_d_dev_ep_enablethere is an assignment of cache for endpoint0 but for other endpoints, it's just cleaning bank status and assigning size but not touching ADDR register.Here is the main piece of code where I'm doing most of the USB stuff, descriptors are fine and as I said setup is successful:https://pastebin.com/wdsGvVbGAlso I attached printscreen from wireshark: PC is sending data on endpoint 1 and 2 and getting some form of ACK even that they should be disabled?
software ACCOUSTIC ECHO CANCELLATION: whodunnit ??? - Page 1
Forum section: electronics / general

author: frogblender
author_rank: Regular Contributor
timestamp: April 10, 2020, 04:01:09 pm
content: I have a speakerphone-ish application using STM32F405. Accoustic echo is a problem (mic picks up what the speaker barfs out). Prelim googling shows:1. "Speex" has AEC. But xiph (the guys who made the now-obsolete speex) themselves say google webRTC AEC is better.2. google has AEC in webRTC.So... anyone done AEC in firmware? What'd you use? Any help is appreciated.

author: coppice
author_rank: Super Contributor
timestamp: April 10, 2020, 04:56:58 pm
content: If you want open source acoustic echo cancellation, the stuff in webRTC is about the only polished choice. It has some complexity to deal with mismatched sample rates, which not everyone needs. I don't know how hard it is to strip that out. It takes significant compute power to do echo cancellation, so watch out for that on an MCU.

author: Scrts
author_rank: Frequent Contributor
timestamp: April 10, 2020, 06:35:55 pm
content: I've recently asked one DSP guy what resources of Cortex-A type of micro I'd need to do echo cancellation and he mentioned Cortex-A53 and 6000 DMIPS... I am not sure if STM32 will cut it for you.

author: nctnico
author_rank: Super Contributor
timestamp: April 10, 2020, 08:52:08 pm
content: You can do this on an ARM microcontroller. I've implemented this on an ARM7TDMI running at 72MHz over a decade ago (LPC2106 IIRC). One of the things to be aware of is that you'll need to low-pass filter the signals before feeding them into the AEC. The filter of an AEC has a limited length and the longest wavelength has to fit inside the filter.I've used the code from this page and converted most of it to use fixed point math until it was fast enough.http://www.andreadrian.de/echo_cancel/draft-aec-03.txtOther enhancements to increase the feedback threshold are to use a audio level detector which drops the microphone input level at side which listens a few dB.

author: coppice
author_rank: Super Contributor
timestamp: April 10, 2020, 09:12:05 pm
content: Quote from: nctnico on April 10, 2020, 08:52:08 pmThat code is a line echo canceller, rather than an acoustic one. There are key differences, such as the types of non-linearity the canceller must cope with. Its easy to get that code to diverge and blow up on you, mostly because its double talk detection has its limitations. You need a few extra steps to make a robust line echo canceller out of it. There is a much more robust open source line echo canceller by David Rowe, called OSLEC, which is easy to Google for.

author: nctnico
author_rank: Super Contributor
timestamp: April 10, 2020, 09:30:05 pm
content: Interesting but it seems OSLEC is a line echo canceller as well. It still could be a good start. BTW I have tried the algorithm I used with a speaker phone system as well.

author: coppice
author_rank: Super Contributor
timestamp: April 10, 2020, 09:34:32 pm
content: Quote from: nctnico on April 10, 2020, 09:30:05 pmYes, OSLEC is a line echo canceller.
Has anybody designed V2V and V2X communication system before - Page 1
Forum section: electronics / general

author: radhika
author_rank: Regular Contributor
timestamp: April 18, 2020, 01:45:42 pm
content: Hi,I want to design V2V and V2X communication system using raspberry pi, Zigbee. I have researched much and make documents that how I should proceed. I'm looking for someone who made this before.Please provide any refrence of algorithum using python or people who want to be a part of this project.Thanks
float in UART baud rate calc - Page 1
Forum section: electronics / general

author: kamtar
author_rank: Regular Contributor
timestamp: April 08, 2020, 04:34:12 pm
content: Going through ATMSAMD51 ASF libraries I found this:Code:#define CONF_SERCOM_1_USART_BAUD_RATE \65536 - ((65536 * 16.0f * CONF_SERCOM_1_USART_BAUD) / CONF_GCLK_SERCOM1_CORE_FREQUENCY)#endifAnd I have one simple question: why is there a float?

author: mikerj
author_rank: Super Contributor
timestamp: April 08, 2020, 04:50:53 pm
content: Probably to avoid an overflow during the multiplication if it was a 32 bit integer operation e.g. the result of (65536*16*115200 ) requires almost 38 bits.Rearranging the equation could probably avoid this e.g. get rid of the 16 in the numerator and divide the denominator by 16, but you'd need to ensure it didn't introduce rounding errors.

author: ataradov
author_rank: Super Contributor
timestamp: April 08, 2020, 05:04:58 pm
content: This is indeed to avoid overflow issues and this is optimized anyway, since baudrate is constant, and the whole thing is evaluated by the compiler.Also, calculations get much easier if you use fractional baudrate mode.
STM32 SDADC not calibrating or converting - Page 1
Forum section: electronics / general

author: TheHolyHorse
author_rank: Regular Contributor
timestamp: April 02, 2020, 03:47:53 pm
content: Hi, so I'm working on a project which involves a STM32F373. Everything works (so far) except the SDADC and I can't find anything anywhere why it wouldn't work. Seems like I'm the only one with this problem as usualOn to the issue....Everything initializes as it's supposed to and reading back the value of the registers shows the correct values.If I start calibration it sets the CALIBIP bit in SDADC_ISR but it never clears it and never sets EOCALF so it's just stuck calibrating forever. Same thing happens if I start a conversion, it sets RCIP but never finishes.Code:RCC_APB2ENR |= SDADC1EN | SDADC2EN; // Enable SDADC1 and SDADC2 clockPWR_CR = 0x600; // Enable SDADC1 and 2 power stuffSDADC1_CR1 = 0;DelayMillis(5);SDADC1_CR2 = 1; //ADONwhile (SDADC1_ISR & 0x8000); // Wait for stabilizationSDADC1_CR1 |= 0x80000000; //Enter init modewhile ((SDADC1_ISR & 0x80000000) == 0); //WaitSDADC1_CR2 |= 0x480000;SDADC1_CONF0R = 0x4C000000;SDADC1_CONFCHR2 = 0;SDADC1_CR1 ^= 0x80000000; // Leave init modewhile (SDADC1_ISR & 0x80000000); //WaitSDADC1_CR2 |= 0x10; //Start calibrationwhile (SDADC1_ISR & 0x1000); //Wait for calibration to finish

author: AlexD
author_rank: Newbie
timestamp: April 02, 2020, 03:59:09 pm
content: Hi, what frequency is your SystemClock running at? The SDADC requires a clock between 500kHz and 6MHz, and it gets its clock from the SystemClock divided by SDPRE in the RCC_CFGR. Maybe the clock of the SDADC is too fast and thats why it doesn't work.

author: TheHolyHorse
author_rank: Regular Contributor
timestamp: April 02, 2020, 04:00:46 pm
content: Opps forgot to mention that, system clock is 48MHz and I'm using a division factor of 8 so that should equal to 6MHz.

author: TheHolyHorse
author_rank: Regular Contributor
timestamp: April 03, 2020, 04:56:33 pm
content: Looks like I'm just gonna have to ditch the SDADC.
STM32G4: BOOT0 pin as I2C clock - Page 1
Forum section: electronics / general

author: bn
author_rank: Newbie
timestamp: April 02, 2020, 07:26:18 pm
content: Hi, recently I've been testing a board with STM32G474. I carelessly used BOOT0 pin as a I2C clock line and hoped that after booting from flash I will change function of BOOT0 pin and use internal pull-up resistor and "overwrite" external weak pull-down provided on BOOT0 pin. As it turns out doing this way does not pull I2C_SCK high. To sum up, I'd like to ask what would be the best way to use boot0 pin as I2C line?According to the reference manual, it is possible to force nBOOT0 state through FLASH option bytes. If so, could I externally pull up BOOT0 pin and always boot from flash memory? I don't really need a bootloader option available in final design.Thanks in advance

author: thm_w
author_rank: Super Contributor
timestamp: April 02, 2020, 08:26:34 pm
content: Try programming nBOOT_SEL with the stm32cube programmerhttps://community.st.com/s/question/0D50X0000B7aziS/can-not-set-nbootsel-bit-in-stm32l011f4-mcu

author: bn
author_rank: Newbie
timestamp: April 03, 2020, 11:15:10 am
content: Thanks, indeed it seems to work just fine. To be precise I programmed nBOOT0 and nSWBOOT0 bits.
esp32 programming software - Page 1
Forum section: electronics / general

author: Riccardo_Tommasin
author_rank: Contributor
timestamp: March 08, 2020, 06:28:33 pm
content: Hi, i was wondering if there are some programming software for the esp32... i was searching for something like atmel studio for avr..thanks.

author: aldi
author_rank: Contributor
timestamp: March 08, 2020, 08:42:21 pm
content: Eclipse or visual studio code with esp-idf, see:https://docs.espressif.com/projects/esp-idf/en/latest/get-started/index.html

author: Lindley
author_rank: Regular Contributor
timestamp: March 09, 2020, 09:52:13 am
content: The Arduino IDE now has ESP32 support and works ok.https://randomnerdtutorials.com/installing-the-esp32-board-in-arduino-ide-windows-instructions/If you want a more comprehensive IDE then the free Atmel Studio with Visual Micro plug in allows you to run Arduino and ESP32 projects.

author: Doctorandus_P
author_rank: Super Contributor
timestamp: April 02, 2020, 02:58:05 am
content: Look around a bit for: "Wemos D1 Mini" and for "Platformio"Some time ago I bought a bunch of ESP8266 boards and got them to work by just plugging in an USB cable.Can't recall any trouble with them either, they just worked.Then I discovered I liked playing with hardware such as dedicated motor timers and such more and attention wavered to other projects.What I liked of the Wemos boards is their ease of use (Just plug in USB), addon boards for sensors and stuff, their small size and breadboard compatibility and their low price. If you damage a few of these boards (for example over voltage), well, each mistake will cost you EUR3. They are a bit more expensive then the bare ESP12 modules but a lot easier to work with. Get some ESP12 modules too, for if you want to build small projects, or put them on another PCB.
mcu - I2c EEPROM  corruption - have you had experince - Page 1
Forum section: electronics / general

author: JoeyG
author_rank: Regular Contributor
timestamp: April 14, 2020, 04:32:20 am
content: Have you experienced i2c EEPROM corruption? Can you share your experiencea) Do you think it was the "logic chatter" on the I2C lines at power up/down/brownout etc?ORb) The mcu random PC (program counter) randomly calling write functions on power up/down or brownout etc?What did you do to mitigate the corruption.

author: AloyseTech
author_rank: Regular Contributor
timestamp: April 15, 2020, 12:10:30 am
content: I think Adafruit recently had the same kind of issue on some of their CircuitPython boards. They use a serial flash which needs a supply voltage of at least 2.7V but the MCU is able to start before (~1.6V) and it happens that it start talking before the voltage is sufficient for the flash (when the rise time is "slow"). Their work around is to wait inside the bootloader for the voltage to reach the 2.7V threshold (they can't use the brown out detector for some reasons).For more details :https://github.com/adafruit/uf2-samdx1/issues/95
Another PIC24 Question - Page 1
Forum section: electronics / general

author: Ground_Loop
author_rank: Frequent Contributor
timestamp: March 23, 2020, 12:12:57 am
content: I notice in MPLAB X that several of the PIC24FJ device resources, such as GFX are not available for use in MCC. Is this because I'm using the free XC16 license?

author: uer166
author_rank: Super Contributor
timestamp: March 23, 2020, 09:04:11 am
content: No, that is because that chip doesn't support that system (say graphics library in this case). Free license only limits optimization options IIRC.

author: Ground_Loop
author_rank: Frequent Contributor
timestamp: March 23, 2020, 11:28:06 am
content: Quote from: uer166 on March 23, 2020, 09:04:11 amThe PIC24FJ256DA206 specifically has built-in graphics peripheral GFX, so I assume you mean that MCC does not support it.

author: uer166
author_rank: Super Contributor
timestamp: March 23, 2020, 09:09:57 pm
content: Ah, you're right! Didn't look it up too closely. In that case that probably means there is just no MCC support in general. I've hit this before as well, where the peripheral exists in the micro, but no MCC support for whatever reason, so you have to code it up yourself.

author: alj
author_rank: Contributor
timestamp: March 31, 2020, 08:18:25 pm
content: MCC does not support many chips (especially older ones), it is usual at this point. If you rely on MCC consider list of supported chips before selecting the chip. The list of supported chips can be found in release PDF in download section for specific MCC chip support library.https://www.microchip.com/mplab/mplab-code-configurator
Does ST MC Workbench allow room to improve motor control ? - Page 1
Forum section: electronics / general

author: cadena
author_rank: Contributor
timestamp: March 29, 2020, 09:51:21 pm
content: Hi everyone,I am interested in using an STM p-nucleo-ihm03 pack to try to improve the control of the motor included. The issue I am having is that if the software already performs FOC for you. Is there any room for the user to improve the control of the motor ? Please could you let me know the areas which could be improved by means of the Workbench or any other related tools you may know of ? Thanks in advanced.P.S. Also could someone let me know if the Gimbal motor in the p-nucleo-ihm03 is a PMSM or a BLDC motor ? I have looked everywhere online but I haven't found the answer.
Thermostat logic - Page 1
Forum section: electronics / general

author: cncjerry
author_rank: Unknown
timestamp: March 29, 2020, 08:30:22 am
content: Silly me, I want to build my own thermostat. I have the code working with an Arduino Nano 33 IOT and amazon Alexa. Question is the control logic.I have some ideas but was wondering if there is a best practice for furnace control. We dont have/need A/C here jn San Francisco.1) I have temp sensors throughout the house including outdoor temp and humidity2) only have a single heating zone but priority will go to the bedrooms at night and living during the day.3) greater the outside temp / inside delta, the higher the run past the setpoint I would think.4) I'm basically trying to figure out how tight a loop I should use around the setpoint. At night I want the loop really loose, for instance.5) i guess time should also be a factor meaning even if the temperature steps outside the loop, I shouldn't kick it on for a while, but once this happens, the run-over should be greater.I don't now the correct terms, maybe reading a process control book or two would help. But for an investment of about $40 plus a couple of remote sensors, I figure I can have something functional. I'm using DHT22 based sensors and they seem to work well.Anyway, that's the basics of this project. I also have a garage door opener roughed out that with a relay block can control the low voltage lights and fountains. The garage door is closed loop as I am using the limit switches and optical interrupters.By the way, I'm not trying to save money, just playing around and thought k can add a lot of function cheaply. But I started thinking about the furnace and thought it takes more code than just: less than setpoint, turn it on; greater than setpoint turn it off.Thanks.Jerry
Debugging an Atmel ATmega microcontroller under Linux, what are my options? - Page 1
Forum section: electronics / general

author: cedric!
author_rank: Contributor
timestamp: March 27, 2020, 09:04:15 am
content: Hi All,I'm using Atmel studio under windows 10 in combination with an JTAGICE3 to debug and Atmega. This works fine, I can use breakpoints, step though the program in the microcontroller, and I can see the values in the RAM. Crusially, the debugger shows me the meaning of all the special function registers, see also the screenshot.Now I would like to migrate to Linux. There's no Linux version of Atmel studio, and I was unable to run Atmel studio in Wine on Arch linux, I need another program.Next I have tried MPLABX. This looks good. The windows version does everything I need, breakpoints, looking in the ram, disassembly and interpretation of the Special function registers work fine. The Linux version however refuses to talk to the microcontroller though my JTAGICE3, even after a chmod 777 on the USB port of the JTAGICE3. MPLABX does not detect the ATMEGA chip. This is not due to connection issues between the JTAGICE3 and the microcontroller, as I can just plug the USB cable of the JTAGICE3 to a windows machine, and it works fine.So here's my question: What open source program, or herd of programs offer the above mentioned functionality under Linux?Kind regards,Cedric

author: cedric!
author_rank: Contributor
timestamp: March 27, 2020, 10:56:27 am
content: Hi All,I found this project. It looks good, but I'm not sure if it can do the interpretation of the Special function registers.http://avr-eclipse.sourceforge.net/wiki/index.php/DebuggingHas anybody used this?Kind regards,Cedric

author: fchk
author_rank: Frequent Contributor
timestamp: March 27, 2020, 06:06:39 pm
content: Atmel Studio is basically dead in my opinion. Microchip puts all effort into MPLAB X.You should try a PICKIT4 programmer. This comes from the PIC world, but the new version does not only PIC ICSP but has two additional pins and can also do AVR ISP, PDI, TPI and UPDI as well as ARM SWD.fchk
Exception(al) Failure - Breaking the STM32F1 Read-Out Protection - Page 1
Forum section: electronics / general

author: thmjpr
author_rank: Regular Contributor
timestamp: March 25, 2020, 05:46:24 am
content: https://blog.zapb.de/stm32f1-exceptional-failure/This has been reportedly available online for years, presumably via microscopy, but this is another level of ease and cost.QuoteSpoiler:Quote

author: abyrvalg
author_rank: Frequent Contributor
timestamp: March 25, 2020, 04:57:45 pm
content: In ARM7TDMI times a "copy protection" meant "disable debug port completely" (i.e. AT91SAM7Sxx). Seeing modern Cortex-M "protection" schemes officially allowing dumping RAM or halting the core is, hmm, surprisingFirst Nordics (allowing to single step protected code), now STs.

author: techman-001
author_rank: Frequent Contributor
timestamp: March 25, 2020, 11:13:35 pm
content: Quote from: abyrvalg on March 25, 2020, 04:57:45 pmBut the STM32F1xx processor in question isn't 'modern' it's 16 year old.
Is xc16 for Windows now Win64 bit only? - Page 1
Forum section: electronics / general

author: 741
author_rank: Frequent Contributor
timestamp: March 24, 2020, 02:21:41 pm
content: I am aware that Microchip suggest I upgrade to 64 bit.. :Leaving that aside for now though, is XC16 now only available for 64-bit Windows? (If so: Which is the most recent XC16 for 32-bit Windows?)

author: andersm
author_rank: Super Contributor
timestamp: March 24, 2020, 03:13:23 pm
content: XC16 v1.50 was the first 64-bit release, soo... the previous version was the last 32-bit.

author: SiliconWizard
author_rank: Super Contributor
timestamp: March 24, 2020, 03:43:51 pm
content: Just had a look. Although the page still mentions Windows x86/x64, the XC16 installer for 1.50 only installs 64-bit executables for XC16.Good job Microchip! Can you at least please update the download page?

author: 741
author_rank: Frequent Contributor
timestamp: March 25, 2020, 09:57:20 am
content: There is a "source archive" for 1.49 which gives an error (not sure how useful source is anyway).The latest binary seems to be 1.41.The somewhat elusive archive page is here for referencehttps://www.microchip.com/development-tools/pic-and-dspic-downloads-archive

author: SiliconWizard
author_rank: Super Contributor
timestamp: March 25, 2020, 02:57:09 pm
content: Quote from: 741 on March 25, 2020, 09:57:20 amIn the "Source Archives" section there is the source archive for v.1.50. I could download it. Look again. You need to be a registered user (myMicrochip) though to be able to download that (but I think it's the same for all downloads now except documents?)Whereas it's useful? We have discussed here in the past how building XC16 from source was. Good luck.If your goal is just to build a 32-bit version, I think you'll be better off just upgrading to a Win64 OS.Alternatively, you may just try and ask in the support forums. They may have a link for a 32-bit version somewhere.

author: JPortici
author_rank: Super Contributor
timestamp: March 25, 2020, 06:03:26 pm
content: Quote from: 741 on March 25, 2020, 09:57:20 am1.49 is 1.41, but certified for functional safety. It requires a separate license to operate even in free mode.So, 1.41Quotefrom time to time they try to put documents behind logins and javascriptsbut i'm sure they get swamped with angry emails for that
Looking for Level translator for 1.8V to 1.8V/3.3V - Page 1
Forum section: electronics / general

author: muthukural001
author_rank: Regular Contributor
timestamp: March 20, 2020, 01:52:14 pm
content: Hello All,I am looking for a bidirectional level translator that converts 1.8V to 3.3V. Also it should support 1.8V to 1.8V in the case of 3.3V is not required. I mean, one end is always connected to 1.8V supply and other end supply will have 3.3V and 1.8V option...When both side the level translator supply connected to 1.8V, it should work.Can anyone suggest a part for this?Thanks,Muthu

author: Scrts
author_rank: Frequent Contributor
timestamp: March 20, 2020, 01:57:01 pm
content: http://www.ti.com/logic-circuit/voltage-level-translation/auto-bidirectional-voltage-translation/products.html

author: kripton2035
author_rank: Super Contributor
timestamp: March 20, 2020, 03:45:57 pm
content: a simple 2n7000 ?http://fr.hobbytronics.co.uk/mosfet-voltage-level-converter

author: Scrts
author_rank: Frequent Contributor
timestamp: March 20, 2020, 04:51:09 pm
content: Quote from: kripton2035 on March 20, 2020, 03:45:57 pmPossible solution, but probably not with 2N7000 for 1.8V levels.

author: fchk
author_rank: Frequent Contributor
timestamp: March 20, 2020, 05:55:31 pm
content: Do you REALLY need a level translator with AUTOMATIC direction control?They exist, but they have issues. The automatic direction control is quite sensitive to things like pullups, output loads etc. Only use them after you've made sure that you really need automatic direction control.Manual direction control via DIR input signal is much more reliable. 74LVC1T45/2T45/8T245 and 74AVC1T45/2T45/2T245/4T245/8T245 are proven solutions for this.I2C and other open-drain signals habe their own dedicated solutions. TCA9406 or FXMA2102UMX are possible choices.-> how many signals to be translated?-> push-pull, 3state, or open-drain?-> current requirements?-> fixed direction, switchable direction with direction signal or true bidirectional signal?fchk

author: muthukural001
author_rank: Regular Contributor
timestamp: March 22, 2020, 06:08:26 pm
content: Hello All,I should have been very clear...I am looking for a voltage translator which should support switching feature.By "switching", I mean 1.8V <----> 1.8V . In addition to this, 1.8V <----> 3.3V...Thanks,Muthu

author: mark03
author_rank: Frequent Contributor
timestamp: March 23, 2020, 03:24:18 am
content: This sounds like an SD card application. Is it? If it is, you should say so. (Seehttp://xyproblem.info/)

author: fchk
author_rank: Frequent Contributor
timestamp: March 24, 2020, 05:21:42 am
content: Quote from: muthukural001 on March 22, 2020, 06:08:26 pmYou said that. But this alone is not enough for selection.Please answer:- Output Type: Push-Pull, Open Drain, 3State?- Output current to ground and to VCC (sink, source)?- how many parallel channels?- fixed direction, switchable direction with direction signal or true bidirectional signal?You really are supposed to give answers in order to get help.fchk

author: Harjit
author_rank: Regular Contributor
timestamp: March 24, 2020, 05:23:19 pm
content: NXP: NTB0104TI: LSF0204x
SSP frame delay LPC4078 vs LPC1788 - Page 1
Forum section: electronics / general

author: kamtar
author_rank: Regular Contributor
timestamp: March 23, 2020, 01:33:50 pm
content: Hello,I have a problem with delays between SPI frames (bytes) being totally different in a "CPHA0 CPOL0" mode.When using LPC1788 delay between each byte is around 0.5uS while in LPC4078 its 2uS. Both have the same clocks and SPI settings. I'm testing it in a blocking mode, lpcopen drivers don't seem to be the issue it's just waiting for SPI register flags.Could someone confirm or deny if this difference is inherent in HW or if it should work and there is something still wrong in mine FW?
Multiple ST-Link in IDE - Page 1
Forum section: electronics / general

author: lawrence11
author_rank: Frequent Contributor
timestamp: March 22, 2020, 02:16:44 am
content: How do I set myself up correctly?I recently bought a second ST-Link V3 (YEAH, the mini V3 is out of stock everywhere, so another 50$)Cube programmer seems to be able to see the serial number, but what about Cube IDE?

author: hansd
author_rank: Contributor
timestamp: March 22, 2020, 02:51:53 pm
content: Hi, There is the option ST Link S/N.

author: lawrence11
author_rank: Frequent Contributor
timestamp: March 22, 2020, 03:18:55 pm
content: Awesome, thanks, just saw.It was late I guess.
Can I use Sparkfun PGM-11801 with avrdude? - Page 1
Forum section: electronics / general

author: jmelson
author_rank: Super Contributor
timestamp: March 19, 2020, 01:23:16 am
content: The avrdude docs are not clear. Will the PGM-11801 work with the "usbtiny" programming device selection of avrdude? (Or, other -c option?)If not, is there another program that can use the Sparkfun PGM-11801?Thanks, I am just getting started with the ATTINY.Jon

author: beenosam
author_rank: Regular Contributor
timestamp: March 19, 2020, 04:05:49 am
content: The sparkfun website says it needs the USBTinyISP driver to work and AVRDdude has support for USBTinyISP, so I don't see why it wouldn't work.

author: oPossum
author_rank: Super Contributor
timestamp: March 19, 2020, 11:07:08 am
content: It will work with the tiny chips that use ICSP (SPI), it will not work with the tiny chips that use TPI (tiny programming interface). Check the spec sheet to see what the chip you are using has.

author: jmelson
author_rank: Super Contributor
timestamp: March 19, 2020, 04:06:13 pm
content: Quote from: beenosam on March 19, 2020, 04:05:49 amThe USBTinyISP driver appears to be Windows only, but I'm using Linux.Thanks,Jon

author: jmelson
author_rank: Super Contributor
timestamp: March 19, 2020, 04:11:58 pm
content: Quote from: oPossum on March 19, 2020, 11:07:08 amI'm starting out with the ATTINY13A, looks like that uses SPI, so looks like I'm good. (Took a while to find it in the docs.)Thanks,Jon

author: oPossum
author_rank: Super Contributor
timestamp: March 19, 2020, 04:15:41 pm
content: It uses libusb on both Linux and Windows. For Widows I just use Zadig to do the driver association.
STM32 OSC32_IN configured as OSC_IN - Page 1
Forum section: electronics / general

author: pawcuq
author_rank: Newbie
timestamp: March 29, 2020, 05:34:26 pm
content: Hi all.Does anyone know if I can connect external clock (8MHz) to PC14-OSC32_IN to STM32G031F8 (TSSOP20 package) using HSE bypass mode? Table 12 in datasheet says that PC14-OSC32_IN has additional function OSC_IN - so in theory it should work. However hadware development note says that:QuoteAnd I don't know whether that would work, STM32CubeMX allows to do that but maybe someone did such thing in actual project?
mplab x can't stimulate pin - Page 1
Forum section: electronics / general

author: jmelson
author_rank: Super Contributor
timestamp: March 18, 2020, 07:54:26 pm
content: Hello,I have installed the most recent version of mplab x IDE on an Ubuntu 18.04 system. I can compile programs, and run the debug function, but have not been able to make it stimulate an input pin.I have tried pulse high and low and set high and low, but nothing changes the pin state.Anybody know what I've missed? The design in question is for an ATTINY13A.Thanks,Jon
STM32F0 Discovery: Touch Sensor (TSC) peripheral demo binary for experimenters - Page 1
Forum section: electronics / general

author: techman-001
author_rank: Frequent Contributor
timestamp: March 11, 2020, 02:09:36 pm
content: Hi All,Just like my STM32F103 'diagnostics bootable binary' that you flash and then run from a menu, I've made one to play with the Touch Sensor on a STM32F0 Discovery Board.Flash the binary, connect a 47nF cap to the board, and play with some sensors, it seems a very reliable technology to me. You do need a usb-3.3v serial dongle as the F0 Disco has no USB.For more info please see:https://mecrisp-stellaris-folkdoc.sourceforge.io/touch-sensor.html