hybridfree/eevblog-posts huggingface dataset:
AVR lock bits programming error but lock works - Page 1
Forum section: electronics / general

author: Psi
author_rank: Super Contributor
timestamp: February 15, 2013, 04:10:13 am
content: Is it normal to get an error from AVRDUDE when setting fuse lock bits?I can program normal fuses bits without errors but the lock bits always give an error (however the lock does seems to work fine)I'm thinking maybe as soon as the lock byte is written the communication cannot continue due to the lock being in effect from that point on.Here's the message i getavrdude: AVR device initialized and ready to accept instructionsReading | ################################################## | 100% 0.01savrdude: Device signature = 0x1e9602avrdude: reading input file "0xFC"avrdude: writing lock (1 bytes):Writing | | 0% 0.00s ***failed;Writing | ################################################## | 100% 0.06savrdude: 1 bytes of lock writtenavrdude: verifying lock memory against 0xFC:avrdude: load data lock data from input file 0xFC:avrdude: input file 0xFC contains 1 bytesavrdude: reading on-chip lock data:Reading | ################################################## | 100% 0.00savrdude: verifying ...avrdude: verification error, first mismatch at byte 0x00000xfc != 0x3cavrdude: verification error; content mismatchavrdude: safemode: Fuses OKavrdude done. Thank you.

author: Bored@Work
author_rank: Super Contributor
timestamp: February 15, 2013, 04:50:02 am
content: IIRC not all bits in that byte are used, and thus not all can be programmed. You could try to set those to 0 instead of 1 (or 1 instead of 0) in your input to see if the write and verification errors go away.Check the datasheet for the unused bits. Also check the avrdude config file, the section for your particular MCU. It might contain a mask (but I am not sure if there is one. I haven't used avrdude in ages. We dropped AVRs when Atmel came up with Studio 5, making it absolutely clear they have no intention to support development on anything but Windows).

author: Psi
author_rank: Super Contributor
timestamp: February 15, 2013, 06:26:19 am
content: Ah, yes, you're right.That fixed the error.Thanks.

author: thebadtall
author_rank: Newbie
timestamp: July 02, 2016, 09:31:34 pm
content: Hello , sorry for posting here, but i wanted to ask , how is it possible to set lock bit using avrdude ?Can you share the appropriate command for uploading a hex to an atmega328?Thank you

author: moreab
author_rank: Newbie
timestamp: July 07, 2016, 07:27:17 am
content: If you are using avrdude then set Bit clock(-B) to 4 or even 10.first detect the controller then upload bootloader and set low, high and extended fuse bits then seting lock bit is optional. then upload .hex file
RX240160A-GHW Display LCD graphical COG STN Positive 240x160 gray LED - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: July 05, 2016, 03:26:19 pm
content: even if it's on ebay and amazon, I have difficulties in finding the datasheet with commands and/or a decent C driveranyone happens to have documentation on hand ?

author: legacy
author_rank: Super Contributor
timestamp: July 05, 2016, 03:29:39 pm
content: also I have difficulties accessingthispage ( Raystar Optronics )

author: ebclr
author_rank: Super Contributor
timestamp: July 05, 2016, 05:32:36 pm
content: http://yunpan.cn/cu3JsXhVyf2Qk(Access code e30a)

author: legacy
author_rank: Super Contributor
timestamp: July 05, 2016, 07:54:09 pm
content: that link works, thanks, but it's written in Japanese, isn't there a full document in English ?

author: legacy
author_rank: Super Contributor
timestamp: July 05, 2016, 07:56:17 pm
content: anyway, I can understand the C language

author: ebclr
author_rank: Super Contributor
timestamp: July 06, 2016, 07:55:07 pm
content: Is Chinese use google translator, Chinese speak chinese not english

author: legacy
author_rank: Super Contributor
timestamp: July 06, 2016, 08:09:10 pm
content: Quote from: ebclr on July 06, 2016, 07:55:07 pmEnglish is the language that should be used for technical documentationGoogle is not good to translate Chinese to Englishanyway, the C language is an universal language(I just miss comments, notes, etc)

author: ebclr
author_rank: Super Contributor
timestamp: July 06, 2016, 08:23:32 pm
content: "English is the language that should be used for technical documentation"This is totally untrueIn Russia all Docs are in RussianIn german are in germanIn japan are in JapaneseIn china are in ChineseIn France are in frenchOnly native English countries you "must" write in English, Don't believe that you are the center off the world you are not

author: Buriedcode
author_rank: Super Contributor
timestamp: July 06, 2016, 09:07:02 pm
content: The displays datasheet only needs to provide the physical spec - connector, dimensions, pinout, voltages. It says it uses a ST7529 for which there is plenty of source code around
ATSAM3x8e and storing variables in program space equivalent - Page 1
Forum section: electronics / general

author: MyElectronsFellOut
author_rank: Regular Contributor
timestamp: July 06, 2016, 09:45:32 am
content: I have use AVR atmels in the past and have utilized the ability to store large arrays in program space using the PROGMEM keyword (learned through arduino).What I want to know, is what is the equivalent in the ATSAM3x8e?I have read that simply declaring something as const puts the variable in program space rather than RAM?

author: andersm
author_rank: Super Contributor
timestamp: July 06, 2016, 10:01:15 am
content: Quote from: MyElectronsFellOut on July 06, 2016, 09:45:32 amDepends on the toolchain, but generally that's how it works. You can always check your map file to verify.

author: MyElectronsFellOut
author_rank: Regular Contributor
timestamp: July 06, 2016, 10:11:55 am
content: Im using atmel studio, how do I access the map file?

author: Jeroen3
author_rank: Super Contributor
timestamp: July 06, 2016, 12:30:49 pm
content: The map file is in the output directory of the linker. You may need an additional flag/tickbox to have a map file created.Another method would be to start the debugger and lookup the value of&array.Which toolchain are you using?

author: MyElectronsFellOut
author_rank: Regular Contributor
timestamp: July 06, 2016, 02:30:04 pm
content: Im using SAMBA to upload via USB. Don't have a debugger for ARM chips yet.

author: ataradov
author_rank: Super Contributor
timestamp: July 06, 2016, 05:18:05 pm
content: Quote from: MyElectronsFellOut on July 06, 2016, 09:45:32 amUse "static const" and only local access. Otherwise compiler will enforce "const" part for a specific compilation unit, but may not be able to actually put it into read-only section for the whole program.

author: Jeroen3
author_rank: Super Contributor
timestamp: July 06, 2016, 05:57:43 pm
content: In no scope doesstaticmean data is read only.Constis made for that.When you tell the ARM compiler data isconst, it won't be put in ram by _main*.On an AVR (arduino), withharvard architecture, there are two distinct memory spaces: instruction and data.By default, any object will be made and initialized in data. Which is sram. You have to explicetely tell the compiler to put an object in the instruction memory by usingprogmem.The compiler needs to know this since other instructions are needed to access instruction memory, compared to normal data memory.With ARM, and it's single 32 bit byte addressable address space, this is no longer needed.*the function called prior to main().In C:Static in global scope limits the scope of the variable to only the C file.Static in local scope (code block) makes the variable "global", yet keeping the identifier local.Quote from: ISO/IEC 9899 6.2.2eg: toss an error on extern.Quote from: ISO/IEC 9899 6.2.4eg: only one instance of the variable exists. No matter how many times the function is being recursed/threaded.You've still not mentioned the toolchain. uVision? Atmel Studio? Bare GNU?
Motorized SMT Solder Paste Dispenser - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: July 02, 2016, 04:10:43 pm
content: so, gooling I have foundthisprojectthought useful

author: helius
author_rank: Super Contributor
timestamp: July 02, 2016, 04:44:16 pm
content: See also:https://www.tindie.com/products/DanM/dm-dispenser-for-solder-pastes-and-adhesives/https://www.kickstarter.com/projects/2129383335/i-extruder-smart-air-free-solder-paste-and-fluids

author: janoc
author_rank: Super Contributor
timestamp: July 02, 2016, 06:22:57 pm
content: The author of the I-Extruder reads this forum, I had a discussions with him about some of the merits (or lack thereof) in another thread.

author: helius
author_rank: Super Contributor
timestamp: July 02, 2016, 07:45:26 pm
content: The aforesaid thread:https://www.eevblog.com/forum/reviews/usb-solder-paste-and-fluids-dispenser-for-smt-pcb-prototyping-and-diy-boards/

author: legacy
author_rank: Super Contributor
timestamp: July 03, 2016, 12:51:30 am
content: Quote from: helius on July 02, 2016, 07:45:26 pmthanks for that link

author: gussabina
author_rank: Newbie
timestamp: July 06, 2016, 04:03:45 pm
content: Here is another one....https://www.tindie.com/products/marjan_mike/electronic-solder-paste-dispenser-v5-air-freeair-/?pt=full_prod_search(I'm not related to this product owner)
Atmel SAM7 low-power timer PWM in wait mode - Page 1
Forum section: electronics / general

author: Koen
author_rank: Frequent Contributor
timestamp: July 06, 2016, 05:10:49 am
content: Hello,ST's STM32 allow some chips including a "low power timer" LPTIM to output PWM even in µA STOP mode.Is this possible with Atmel SAM Cortex-M7 chips ? I found references to "32-bit low-power Real-time Timer (RTT)" but nothing about it being able to drive a PWM pin during µA "wait mode".Thank you,Koen

author: ataradov
author_rank: Super Contributor
timestamp: July 06, 2016, 05:42:07 am
content: I don't think SAMx7 can do that. Its clock tree is pretty simple and when peripheral clock is disabled, it is disabled for good.

author: ataradov
author_rank: Super Contributor
timestamp: July 06, 2016, 05:55:48 am
content: It looks like LPTIM in low power mode can only run from internal 32 kHz RC oscillator.You can look at RTC and its RTCOUT0 and RTCOUT1 outputs. It is not exactly PWM, but may work in your application.Although "PROG_PULSE - Duty cycle programmable pulse" may be what you are looking for.

author: Koen
author_rank: Frequent Contributor
timestamp: July 06, 2016, 06:27:20 am
content: Thank you. It's not critical, it's to continue controlling a backlight driver while the MCU is stopped. I'm looking at MCUs with embedded HS-USB to replace the STM32F7.
keyboard, Apple PowerBook G4, M5884, which connector does it use? - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: July 03, 2016, 11:30:40 am
content: Apple PowerBook G4 A1001 A1025 M5884 M8407 Keyboard 48.N3201.001hi guys, I am looking for a complete QWERTY keyboard matrix, found interesting the above keyboard, I just wonder which connector does it use, and if I can reuse it for an hobby projectApple PowerBook G3LombardandPismohave a very bad connector on the keyboard side, too high density, it's impossible to reuse it for hobby purposes

author: kripton2035
author_rank: Super Contributor
timestamp: July 03, 2016, 11:44:55 am
content: why don't you use an old ps/2 pc keyboard, you will find plenty of them for less than $10 (and free may be)if it fails, you have plenty of others to useif this powerbook keyboard fails on your project, you may have difficulties to get another oneand you need time to discover the pinouts. ps/2 keyboard are discovered for a long time !

author: legacy
author_rank: Super Contributor
timestamp: July 03, 2016, 11:46:40 am
content: Quote from: kripton2035 on July 03, 2016, 11:44:55 amreasons to avoid that

author: Kilrah
author_rank: Unknown
timestamp: July 03, 2016, 01:19:04 pm
content: I more and more feel like I'm reading the output of a robot... when did we reach singularity again?

author: helius
author_rank: Super Contributor
timestamp: July 03, 2016, 03:13:15 pm
content: The connector is either Hirose or JAE mezzanine SMD type. Check the pitch. Be aware, there were several models of those keyboards for different Apple laptops (iBook, "titanium" G4, aluminum G4) that all had different connectors.

author: legacy
author_rank: Super Contributor
timestamp: July 03, 2016, 03:39:04 pm
content: Quote from: helius on July 03, 2016, 03:13:15 pmyeap, too confusing, I have asked the seller (on ebay) to send me a photo of the back of the keyboard in order to be sure it has connector of my wishcrazy dudes in Apple, keyboards in laptops by IBM I don't see connector changed so frequently (and I don't see any valid reason to do so, crazy Apple guys)

author: legacy
author_rank: Super Contributor
timestamp: July 03, 2016, 08:40:30 pm
content: Apple PowerBook G4 Keyboard Titanium A1025 A1001 1GHz 867MHz 800Mhz 667Mhzit seems confirmed, the above keyboard was used in Titanium PowerBook

author: helius
author_rank: Super Contributor
timestamp: July 03, 2016, 09:47:41 pm
content: Every model has a different connector to discourage mix-n-match. The number of pins varies, as well.I was looking for the mating receptacle some time ago, and never found it.You need to search for "staggered 1mm rectangular"
How to Port This VHDL to Verilog? - Page 1
Forum section: electronics / general

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: July 11, 2016, 03:17:11 am
content: Verilog gurus: I'm just learning Verilog (Systemverilog actually) and don't know how to map the following VHDL to Systemverilog:Code:process(CLK, Next_State, RESET)beginif (RESET = '1') then Present_State <= ST0;elsif (rising_edge(CLK)) then Present_State <= Next_State;end if;end process;If I use the following always construct, I don't know how to mix posedge and non-posedge in the sensitivity list-- the synthesizer flags it as an error:Code:always_ff @(posedge CLK, posedge RESET, Next_State)I want the always block to run whenever Next_State changes, but I also want it to be synchronous with the positive edge of CLK.

author: ataradov
author_rank: Super Contributor
timestamp: July 11, 2016, 04:01:05 am
content: Just remove Next_State and RESET from the sensitivity list.

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: July 11, 2016, 04:06:26 am
content: Quote from: ataradov on July 11, 2016, 04:01:05 amI need to handle asynchronous resets too, so I need that in the list. If I remove Next_State from the sensitivity list and just assign it to Present_State on every rising clock edge that would work, even if Next_State hasn't changed.Thanks.

author: ataradov
author_rank: Super Contributor
timestamp: July 11, 2016, 04:10:34 am
content: Quote from: Sal Ammoniac on July 11, 2016, 04:06:26 amWell, yes, but it is the same thing. If Next_State has not changed from a previous assignment, then reassigning it to Present_State again will have no visible effects.I'm pretty sure that's what original VHDL is doing.

author: kfnight
author_rank: Regular Contributor
timestamp: July 11, 2016, 03:14:20 pm
content: You want something like this.Code:// Active-high asynchronous reset.always_ff @(posedge CLK, posedge RESET)beginif (reset == 1'b1)beginPresent_State <= ST0;endelsebeginPresent_State <= Next_State;endend
mplab xc8 xlcd.h missing? - Page 1
Forum section: electronics / general

author: Spiritus
author_rank: Newbie
timestamp: June 28, 2016, 06:43:00 pm
content: Last month reinstalled my operating system, then the latest mplab+xc8 and today I found my old lcd hitachi hd44780. But I have a problem, the XC8 v1.37 dont include xlcd.h, actually is missing alot of libraries that I rememberThey remove support for LCDs?

author: andersm
author_rank: Super Contributor
timestamp: June 28, 2016, 06:45:30 pm
content: Did you read the compiler release notes (see the "Migration Issues" section)?

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: June 28, 2016, 07:35:15 pm
content: Microchip has dropped plib in favor of Harmony, but you can still get it from xc8 V1.33. Download it fromherewhile it's till available!
Need some (export) advice, a Simple LIN Master? - Page 1
Forum section: electronics / general

author: onesixright
author_rank: Frequent Contributor
timestamp: June 29, 2016, 07:20:17 pm
content: Hi,I have a LIN Master remote, i decoded the signals, now i want to recreate this my with own MCU and these signals (in essence replicating the remote).My question is what would be the simplest way to create a LIN master? I have a Arduino, RPI, and some Microchips laying around. Obviously the smaller the better (RPI is pretty much overkill).Thanks.

author: rstofer
author_rank: Super Contributor
timestamp: June 29, 2016, 08:21:59 pm
content: It appears you can use any uC that has a UART and even that isn't cast in stone. So it gets down to how many messages you need to send/store/create. Does the uC have enough memory to hold them. 19.2 kbps isn't going to challenge any modern uC.The easiest platform to start with is the Arduino. I would probably start with that device even if I planned to move down to a PIC sometime in the future. Once the software was well understood, it's easy enough to port it to a different device.Still, it might come down to pins. Does the Arduino have enough pins for the human interface. If not, you will need to choose something that does.Write down all the requirements as column headers in a spreadsheet and then enter uC capabilities on the rows. Something will make the cut!
is my pocket AVR (usbTiny) fried? - Page 1
Forum section: electronics / general

author: Dan Moos
author_rank: Frequent Contributor
timestamp: June 25, 2016, 07:57:17 pm
content: My pocket AVR programmer (its a usbTiny clone from Spark Fun) will not let the reset pin on the target go high when its not programing. It was fine before. Removing the wire from the programmer to the target's reset pin allows it to go high.I get half a volt on pin 16 of the prgrammer's MCU (the pin that feeds the target reset).I get half a volt on the corresponding output from the buffer between the MCU and the wire heading to the target reset pin. To me that sounds like the buffer is doing its job.I get 5 volts from pin 8 on the programmer's MCU, which is labled CTL on the schem, and heads to the same buffer's inverting(?) input. Not sure how this buffer works, so sorry if I'm being confusing.I get proper voltages on power pins of MCU and buffer chipsMCU crystal pins have a 1vPP 12mhz pulse on them, as I believe they should.There are LEDs corresponding to the D+ and D- lines from the USB jack. D- is constantly lit, D+ flickers when I attempt to use the programmer. D- being lit constantly seems strange to me. It doesn't flicker when I try to program.There are two status lights, stat1 and stat2. Stat1 is always lit, stat2 flickers when I attempt to program. My belief is that this is normal.I get an RC=1 error from avrdude when I try to program. I've tried a couple different projects that before programmed fine with the same programmer, and they now cause the RC=1 error. I'm pretty sure that my hookups are good.Again, the only obvious problem is that the target's reset pin is held low, even when not programming. I think that alone would be enough to cause the avrdude error.So, what else can I check? Is mt programmer fried?
Baud Rate Generator - Page 1
Forum section: electronics / general

author: gauravmp
author_rank: Regular Contributor
timestamp: June 23, 2016, 04:35:31 pm
content: Hi,Could someone share a link to a document or maybe a name of a book that might talk about how a baud rate generator works. I'm writing code on an FPGA to implement a baud rate generator and hence need it.Thanks

author: ebclr
author_rank: Super Contributor
timestamp: June 23, 2016, 04:39:29 pm
content: http://www.fpga4fun.com/SerialInterface2.html
Intel 8279 -looking for code example - Page 1
Forum section: electronics / general

author: ChristofferB
author_rank: Frequent Contributor
timestamp: June 27, 2016, 01:33:55 am
content: Hey! I'm in the midst of trying to interface an 8279 with a display and some keys. It sits in an existing system.Issue is, it has so many modes and commands, and I don't feel comfortable with it from what I can read in datasheets, appnotes etc.There wouldn't happen to be somebody out there having a code snippet of setting it up, would there?Thanks in advance!

author: gslick
author_rank: Frequent Contributor
timestamp: June 27, 2016, 02:07:24 am
content: What kind of CPU / micro are you using to interface to the 8279, and what language are you using?The Intel SDK-85 uses an 8279 keyboard / display controller and the SDK-85 System Design Kit User's Manual contains the monitor listing:http://www.bitsavers.org/pdf/intel/8085/9800451B_SDK-85_Users_Man_Feb80.pdfIt's in 8085 assembly language so depending on what you're using it might be helpful to look at, or it might be so far different from your system that it's more confusing than helpful.

author: ChristofferB
author_rank: Frequent Contributor
timestamp: June 27, 2016, 01:47:07 pm
content: Well I may have forgotten to specify language - the ones you'd use to program hardware with, that is.But you were right on the money, it is indeed an 8085 I'm using. Thanks for the link!
Oracle Sun Ray2 - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: June 23, 2016, 04:10:57 pm
content: hi thereanyone has played with it?getting mad with J-OpenRay (written in Java)also, I can't find a practical way to download the firmwarewhich is requested in order to enable the GUI-firmware(because, by default, SunRay2 looks at a customized server to be configuredand obviously it sucks on linux)let me know, if you have experience
cant download STM32CubeMX - Page 1
Forum section: electronics / general

author: gorge
author_rank: Newbie
timestamp: June 20, 2016, 01:54:42 am
content: For some reason there's no actual download link to the software. Maybe their website is broken.Does anyone have the program that they could upload to a filehosting website?Thankshttp://www.st.com/content/st_com/en/products/development-tools/software-development-tools/stm32-software-development-tools/stm32-configurators-and-code-generators/stm32cubemx.html?sc=stm32cubemx

author: dannyf
author_rank: Super Contributor
timestamp: June 20, 2016, 02:04:51 am
content: It has been known for a while - at least a couple weeks.typical of any ST software,

author: gorge
author_rank: Newbie
timestamp: June 20, 2016, 07:51:19 am
content: well I sent the website a complaint earlier today and it seems they've fixed the problem. You guys let it drag on for too long.

author: dannyf
author_rank: Super Contributor
timestamp: June 20, 2016, 06:19:09 pm
content: I think you are the only one in the whole world who cares about cubemx,.

author: Xenoamor
author_rank: Regular Contributor
timestamp: June 21, 2016, 12:27:24 pm
content: You have to click "Get Software" at the bottom of the page and register an accountLike everyone else is saying though. CubeMX is not a pretty beast

author: gorge
author_rank: Newbie
timestamp: June 23, 2016, 11:36:36 am
content: yeah that button wasn't there prior to me lodging a complaint.
Atmel AT AVRISP mkII - Page 1
Forum section: electronics / general

author: ebclr
author_rank: Super Contributor
timestamp: June 20, 2016, 11:56:22 am
content: I'm interested in buy a programmer capable to write atmegaX cpus using PDII chose 2 optionshttp://pt.aliexpress.com/item/Atmel-AT-AVRISP-mkII-AVR-ISP-mk2-USB-AVRISP-XPII-In-System-Programmer-Supports-AVR-Studio/2034861580.html?spm=2114.16010208.99999999.262.5y3fdRorhttp://pt.aliexpress.com/item/AVR-ISP-Programmer-MKII-Clone-Supports-Atmega-256/32481780011.html?spm=2114.16010208.99999999.268.5y3fdRAny tips or sugestions , with one will be easier to use on atmel studio 7 ?

author: sporadic
author_rank: Regular Contributor
timestamp: June 20, 2016, 12:06:35 pm
content: If you can stretch your budget to ~$55, the Atmel ICE is well worth it. Will give you debugging capability for your Xmega and allow you to program / debug Atmel's SAM ARM chips as well. Being able to debug really helped as I was cutting my teeth with Xmega and learning how to use the XCL stuff.

author: ebclr
author_rank: Super Contributor
timestamp: June 20, 2016, 12:09:52 pm
content: Do you have a place where this is sold ( preferentially in China ) ?

author: ebclr
author_rank: Super Contributor
timestamp: June 20, 2016, 12:15:24 pm
content: Is this the thing we are talking about ?https://world.taobao.com/item/523953245425.htm?spm=a312a.7700714.0.0.7DbVbM#detail
STM32 Not Responding to J-Link - Page 1
Forum section: electronics / general

author: jmsigler
author_rank: Regular Contributor
timestamp: June 19, 2016, 11:06:07 pm
content: Hello,I've made my own board based on a stm32f446re and I am trying to connect to it using a J-Link edu, but it is failing. The j-link finds the target voltage and then tries to connect, but gives the error could not connect to device under reset. Here are the things I have tried already:Check continuity between each jlink pin pin and the corresponding pin on the microCheck that correct device was set in Eclipse debug configProbe jtag lines. CLK, Reset, and SWD are working fine (makes sense since they come from j-link), but SWO does nothing.Measured current into the board. I get 160mA, which seems high since the only thing I have mounted right now is the STM (with supporting passives) and a barometer. I also measured the current with reset pulled low, and it was the same, which is weird to me, as I would expect it to be much lowerProbed voltage on MCU's pins. The voltages all appear to be pretty stable.Right now I think the biggest clue is the larger than normal current into the board and current not changing with reset pulled low. Does anyone have any ideas on what could be causing this or suggestions of what to try? I've attached my mcu section of the circuit and my eclipse debug settings.

author: andersm
author_rank: Super Contributor
timestamp: June 20, 2016, 05:07:43 am
content: SWDIO and SWCLK are the debug pins. SWO is used for trace data output, and won't do anything until configured.

author: jmsigler
author_rank: Regular Contributor
timestamp: June 20, 2016, 05:34:48 am
content: Okay, that makes sense. So the stm32's response should also be on the swdio line?

author: Kjelt
author_rank: Super Contributor
timestamp: June 20, 2016, 08:44:18 am
content: Try jtag interface.Also when board uses to much power to be powered by debugger, the board should be powered on during debugging. Make sure the voltages match or better disconnect the voltage line from the debugger.

author: Heartbreaker
author_rank: Unknown
timestamp: June 20, 2016, 10:49:23 am
content: Quote from: Kjelt on June 20, 2016, 08:44:18 amSorry, JTAG interface will not work, due to TDI (pin 50) is unconnected. I've checked the other SWD pins and they corresponds to their respective naming. My best guess is that the STM32 is held in JTAG reset by whatever is connected to nTRST (pin 56) and driving that net (ARM) low./Sverre

author: AndyC_772
author_rank: Super Contributor
timestamp: June 20, 2016, 11:06:03 am
content: Before you do anything else, you need to find where all that current is going. Something must be getting hot.Is the CPU soldered the right way round?
STM32F7DISCOVERY pulse train through arduino headers and mbed - Page 1
Forum section: electronics / general

author: gorge
author_rank: Newbie
timestamp: June 19, 2016, 12:56:29 pm
content: I'm just prototyping my project on a discovery board for now. Eventually I intend to transfer it to an independent stm32f7 chip on its own custom PCB.What I'm wanting to know is whether its possible to drive a high speed display matrix at the maximum GPIO rate as described in the stm32f7 datasheet (100Mhz) using mbed. I would need to use the arduino headers of the discovery board for the time being.

author: dannyf
author_rank: Super Contributor
timestamp: June 19, 2016, 01:05:36 pm
content: Yes.

author: gorge
author_rank: Newbie
timestamp: June 19, 2016, 06:11:19 pm
content: Oh, okay. I thought that mbed might be a bit like arduino in that it adds an extra software layer that can slow things down to the output pins.Would this be the mbed function that I use to write to the GPIO pins?https://developer.mbed.org/handbook/BusInOut
Audio line output for SBC OLimex LIME2 - Page 1
Forum section: electronics / general

author: more2000
author_rank: Newbie
timestamp: June 19, 2016, 11:23:42 am
content: Hi guys,So I need to connect a speaker to a Olimex LIME2www.olimex.com/wiki/A20-OLinuXino-LIME2via the HPOUT/R/L/COM audio lines, I'm using just one speaker because it is for a hand held device and just one speaker does the job.This circuit is for a Olimex LIME2 (without this circuit)https://github.com/OLIMEX/OLINUXINO/blob/e1977354d5f500dfb903ca76b9d25543640f79c4/HARDWARE/A20-OLinuXino-LIME2/A20-OLinuXino-Lime2_Rev_C.pdfbased on the Olimex micro (https://github.com/OLIMEX/OLINUXINO/blob/master/HARDWARE/A20-OLinuXino-MICRO/A20-OLINUXINO-MICRO_4GB_Rev_G1.pdf) which is based on the official Allwinner A20 PAD (Page 19,https://github.com/OLIMEX/OLINUXINO/blob/master/HARDWARE/A20-PDFs/A20_PAD_STD_V1_1.rar).The problem is that I don't have theFerrite Beads.And I don't really understand the circuit so I don't feel like wiring it without the Ferrite Beads ...I understand that:Ferrite bead filter out the high frequencies that could came back for the amp when you connect the speaker for example, but not when they go out from the line outs?If I wire it without the ferrite bead does it make any sense?I'm testing the wiring without the ferrite bead with a cellphone but when I connect the circuit ground to the amp ground it doesn't make any sound. ¿?Will itbreak the SOCif a wire the pins to the amp directly without the RC/FB protection?A ton of doubts and a hell to break?.Thanks on advance and cheers.
Voltage Drop  - Page 1
Forum section: electronics / general

author: ribnark
author_rank: Newbie
timestamp: June 17, 2016, 01:11:33 pm
content: Hi,I am making a water level controller using ultrasonic sensor HC-SR04 and PIC16F877A. There is a 25 m long cable between sensor and uC. I am using 8 LEDs connected to PORTB through 320 ohm resistances to display water level. The problem is that I am getting a dip in voltage of about 2 volts in Power supply whenever the LEDs are ON. for power supply I am using 12v adapter regulated by LM7805. The voltage dip is on the 5V side of 7805 . and one more thing the same problem is not there if I don't use long cable i.e. when sensor is directly connected using short leads. Please help ....Regards

author: StillTrying
author_rank: Super Contributor
timestamp: June 17, 2016, 01:28:10 pm
content: LM7805 might be oscillating - when the long wire is connected, does it get too warm, proper/more decoupling?

author: uncle_bob
author_rank: Unknown
timestamp: June 17, 2016, 04:54:36 pm
content: Quote from: ribnark on June 17, 2016, 01:11:33 pmHiWith a 12V input, a 7805 is generating more heat than you are using in your circuit. Try at least going over to a 9V adapter. I would bet your 7805 is overheating.Bob

author: KL27x
author_rank: Super Contributor
timestamp: June 17, 2016, 06:26:58 pm
content: +1 oscillating. Add some more caps to the 7805, input side, particularly.

author: ribnark
author_rank: Newbie
timestamp: June 18, 2016, 01:16:05 pm
content: Thanks for the solution it worked
Segger studio - Page 1
Forum section: electronics / general

author: dannyf
author_rank: Super Contributor
timestamp: June 15, 2016, 10:24:12 pm
content: Has anyone tried it yet?Pay attention to the compiler.

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: June 15, 2016, 10:44:28 pm
content: It's a rebranded version of Rowley Crossworks with support for debuggers other than the Segger J-Link removed.

author: jnz
author_rank: Frequent Contributor
timestamp: June 16, 2016, 03:58:06 pm
content: Quote from: Sal Ammoniac on June 15, 2016, 10:44:28 pmWhen I used Rowley I did like it quite a bit.

author: Kjelt
author_rank: Super Contributor
timestamp: June 16, 2016, 09:06:43 pm
content: Looks very interesting, free unlimited for my non commercial hobby projects

author: jnz
author_rank: Frequent Contributor
timestamp: June 16, 2016, 09:28:41 pm
content: Quote from: Kjelt on June 16, 2016, 09:06:43 pmLink for those interestedhttps://www.segger.com/embedded-studio.htmlFor 99% of people I'd highly recommend this over Eclipse.

author: westfw
author_rank: Super Contributor
timestamp: June 17, 2016, 05:11:59 am
content: Quote~$1000 for the cheapest commercially-usable version, and ~$10000 for the complete (OS, filesystem, TCP/IP, USB support + compiler/IDE)(all single-user, of course.)

author: dannyf
author_rank: Super Contributor
timestamp: June 17, 2016, 03:33:53 pm
content: Coide was really a good choice. Unfortunately it was shuttered.Segger studio seems to be taking thee rte approach pioneered by coide and expanded by keil.
Full SHARC product line released today ADSP-SC57x/ADSP-2157x Product Family - Page 1
Forum section: electronics / general

author: diyaudio
author_rank: Frequent Contributor
timestamp: June 17, 2016, 08:10:30 am
content: Full SHARC product line was released today, I'm super excited they managed to offer a LQFP version as wellhttp://www.analog.com/en/products/landing-pages/001/adsp-sc57x-2157x-family.html?adicid=PRLS_NA_P991

author: Kalvin
author_rank: Super Contributor
timestamp: June 17, 2016, 08:36:01 am
content: Looks good. The price is nice, too. Thanks for the link!
Failed to verify the ID - Page 1
Forum section: electronics / general

author: thejas92
author_rank: Newbie
timestamp: June 16, 2016, 06:06:37 am
content: Hi All,I have used LCMXO640C lattice CPLD in my board. By mistake I have driven GSRN pin to low in my code and unknowingly I have programmed that code to CPLD using Diamond programmer. Now, I tried to program back with new code, where GSRN pin is corrected and when I try to program, I am receiving some error messages as below:Device#1 LCMXO640C: Failed to verify the ID(Expected: 0x01281043 Read: 0x00000000).Check configuration setup: Unsuccessful.Error: Programming failed.I tried to erase existing CPLD and When I try to scan CPLD device, following is the error and so not able to erase also:Scanning USB Port EzUSB-0...Error: Scan Failed - Creating Blank Programmer Project.I have no idea how to recover my CPLD back. Erasing current program will help me a lot. How to erase CPLD without a programmer?If not, please give me some solution. I am very much in need. Please help me.Thanks in advance.

author: Buriedcode
author_rank: Super Contributor
timestamp: June 16, 2016, 06:24:37 pm
content: I haven't used that device (yet) but from the datasheet, it states that if it isn't used by the configuration as an IO pin, it can be a global 'memory reset', active low. So I suggest you add a pull-up and try to configure again.

author: uncle_bob
author_rank: Unknown
timestamp: June 16, 2016, 06:46:48 pm
content: Hi*Most* devices have a finite delay between the "config" and "user" sections of operation. The normal solution is to get on the programing pins immediately on power up. I have no experience with your chip, so it may not apply to your situation.Bob
How to detect unsuccessful transmissions in lwmesh - Page 1
Forum section: electronics / general

author: gussabina
author_rank: Newbie
timestamp: June 16, 2016, 04:54:33 pm
content: Hello:I'm trying to add re-sending feature in lwMesh, once a transmission failure is detected. So I focused on Data Conf routine which should be informed by the stack if last transmission was successful or not.However, I'm seeing the stack doesn't not return an error until the third time a transmission fails; apparently when the stack delete the coordinator entry in the routing table.I'm not sure if I'm missing something, but if this is the case, it's not useful in my case. Is there other way to immediately detect an unsuccessful transmission?ThanksGus

author: ataradov
author_rank: Super Contributor
timestamp: June 16, 2016, 05:44:21 pm
content: Quote from: gussabina on June 16, 2016, 04:54:33 pmStack reports all detectable failures. There are 3 retries on the PHY layer. This is done by the radio itself, and from a stack point of view that's one request. You can tune this in the radio initialization routine.Quote from: gussabina on June 16, 2016, 04:54:33 pmThis is completely independent from PHY retries.Quote from: gussabina on June 16, 2016, 04:54:33 pmThere are many ways to define "unsuccessful" you need to be more specific.

author: uncle_bob
author_rank: Unknown
timestamp: June 16, 2016, 06:29:45 pm
content: HiAny mesh setup is going to only have a "chance" of success on each transmission. It's not like a fiber cable where a failure is highly unlikely. Any proper approach will allow for re-transmits. Even TCP-IP does this, and it runs on a physical transmission system that is much more reliable than your typical mesh setup.To echo the question above:In the context of "it often fails", what *is* success?Bob
Scratch for Arduino - Page 1
Forum section: electronics / general

author: hamster_nz
author_rank: Super Contributor
timestamp: June 14, 2016, 10:07:52 pm
content: After somebody suggesting that Arduino need BASIC, I discovered this:http://s4a.cat/- Scratch for ArduinoIt pushes 'firmware' to the Arduino, allowing you to build Scratch designs that will sense and control the pins on an Arduino - the scratch scripts actually run on the PC.Sure, it doesn't let you develop a standalone board, but it looks to be a pretty slick way for beginners to interact with the physical world (e.g. LEDs, wires, switches) without learning C.I might build an proximity alarm to demo at Codeclub next week (ultrasonic sensor, servos waving signs , "Danger Will Robinson" audio from the PC.... ).

author: obiwanjacobi
author_rank: Super Contributor
timestamp: June 15, 2016, 08:14:10 am
content: And this:http://blog.ardublock.com/
Beginner arm programming with Keil uvision - Page 1
Forum section: electronics / general

author: Ravenghost
author_rank: Contributor
timestamp: June 13, 2016, 08:31:21 am
content: Hello,I want to learn programming arm MCU's. As i'm waiting for my ST-LINK V2 to arrive i began to experiment with keil uvision IDE.So far my progress is a new project that compiles with added CMSIS CORE; Device GPIO, Startup, StdPeriph drivers Framework and RCC components and main.c bare bones.From my understanding those components are standard libraries like AVR's <avr/io.h> but i have a hard time finding good documentation of those libraries and how to use all the functions to do basic tasks like setting MCU system clock. I've read]http://www2.keil.com/docs/default-source/default-document-library/mdk5-getting-started.pdf?sfvrsn=2[NC,L]but that didn't give clear explanation how main.c should look like.I'd really appreciate any information where to find documentation about those components and guides for starting programming arm MCU's with keil uvision.MCU: stm32F103C8T6

author: dannyf
author_rank: Super Contributor
timestamp: June 13, 2016, 09:58:50 am
content: You are using RTE so you should go to Keil for documentation on that, and compare it to the datasheet.If you are a beginner, it is a tall order.

author: jnz
author_rank: Frequent Contributor
timestamp: June 13, 2016, 10:00:21 pm
content: Quote from: dannyf on June 13, 2016, 09:58:50 amYea, but I've been on Keil for over a year and have HAD to do that about zero times. The only issues with the Keil built-in stuff have been things like the Segger init.ini file to get printf over the debug console, and some ST stuff with their middleware.The RTE system is a little complex at first, esp when trying to figure out potential incompatibility with what Keil releases and what the mfg will put up.

author: jnz
author_rank: Frequent Contributor
timestamp: June 13, 2016, 10:04:27 pm
content: Quote from: Ravenghost on June 13, 2016, 08:31:21 amThere is no standard. Do whatever you like.Go into the pack installer inside of Keil, click BOARDS, and copy one of the blinky examples. Try starting with that. Esp with RTX, it's nice to get a main.c from the example so you can see how to start the OS and initialize the first threads. It's all very easy.Now... If you want to move from the Std Peripheral Driver to HAL, there are a couple wierd things with Keil right now. Trying to combine Cube and RTE. It's definitely possible, but there are just a few gotchas with the order and whatever. Basically Keil and Cube are both trying to control things, and you need to chose one or the other. But if you aren't interested in the HAL, don't worry about that.

author: ebclr
author_rank: Super Contributor
timestamp: June 14, 2016, 12:06:11 am
content: Go to the main supplyerhttp://www.arm.com/products/processors/cortex-m/cortex-microcontroller-software-interface-standard.php
Atmel SAMD pin status report - Page 1
Forum section: electronics / general

author: westfw
author_rank: Super Contributor
timestamp: June 11, 2016, 08:21:32 am
content: I'm rather pleased with the way this came out. This is currently an Arduino sketch for the Arduino Zero and related boards, but it should be trivially adaptable to other SAMD21J-based systems, and not to hard to port to other SAMD chips.What it does is print out the pin configuration for the board, by decoding the PMUX_ENA bit and PMUX values. This is particularly useful on systems like Arduino where you're using some library and aren't quite sure what resources are being used, or how, but it's probably good for general purpose debugging as well.https://github.com/WestfW/ArduinoZero-PMUX-reportOutput looks like:SAMD Pin State Report0 PA11 PMUX(2) SERCOM0 P3(UART)1 PA10 PMUX(2) SERCOM0 P2(UART)2 PA14 GPIO I3 PA09 GPIO I4 PA08 GPIO I5 PA15 GPIO I6 PA20 GPIO I7 PA21 GPIO I8 PA06 GPIO I9 PA07 GPIO I10 PA18 PMUX(4) TC3/WO011 PA16 GPIO I12 PA19 PMUX(5) TCC0/WO313 PA17 GPIO O14 (A0) PA02 PMUX(1) ADC15 (A1) PB08 PMUX(1) ADC16 (A2) PB09 PMUX(1) ADC17 (A3) PA04 PMUX(1) ADC18 (A4) PA05 PMUX(1) ADC19 (A5) PB02 PMUX(1) ADC20 PA22 PMUX(2) SERCOM3 P0(I2C Master)21 PA23 PMUX(2) SERCOM3 P1(I2C Master)22 PA12 PMUX(3) SERCOM4 P0(SPI Master)23 PB10 PMUX(3) SERCOM4 P2(SPI Master)24 PB11 PMUX(3) SERCOM4 P3(SPI Master)25 PB03 GPIO I26 PA27 GPIO I27 PA28 GPIO I28 PA24 PMUX(6) COM(USB)29 PA25 PMUX(6) COM(USB)30 PB22 PMUX(3) SERCOM5 P2(UART)31 PB23 PMUX(3) SERCOM5 P3(UART)

author: ataradov
author_rank: Super Contributor
timestamp: June 11, 2016, 05:21:30 pm
content: I'm not sure what the equivalent of a library is called for Arduino, but would not it make more sense to make it a library?Otherwise it will only show settings for the project showing settings itself.

author: westfw
author_rank: Super Contributor
timestamp: June 13, 2016, 02:15:30 am
content: QuoteYes, but I'm struggling a bit with what I want the API to look like. It's not good for a library to print a bunch of stuff, nor to tie up or require a large buffer memory. I'll probably do something that does one pin at a time to a caller-allocated one-line buffer.
STM32 Eclipse Etc  - Windows 10 compatible ? - Page 1
Forum section: electronics / general

author: picandmix
author_rank: Frequent Contributor
timestamp: June 09, 2016, 08:44:12 pm
content: Hi,Just been looking at the recent threadhttps://www.eevblog.com/forum/microcontrollers/alternative-to-coocox-for-stm32-development/msg943412/#msg943412and the comments from Sal Ammoniac and Quarlo Klobrigney about installing Eclipse and its tools etc.Wanted to know if they all work ok on both my current Windows 8.1 or perhaps the soon to be Windows 10 upgrade?thanks

author: uncle_bob
author_rank: Unknown
timestamp: June 09, 2016, 08:59:03 pm
content: HiDon't know about the specifics of the STM32 toolchain. All of the other Eclipse based tool chains I have tried work fine on Windows 10 in the 64 bit flavor. I would be amazed if the same did not apply to the ST stuff. The only exception might be some chunk of proprietary this or that they dragged in to make it all work. Normally you don't have to do that with most of the ARM stuff.What you do still run into on any version of OS are programming gizmos that go out of sync with the latest drivers. It's pervasive enough that you simply accept that any dongle can go out of date at any time. When they do, you either freeze things on the old drivers (and likely accept other problems) or you shell out for the new dongle. Whenever this sort of thing happens, there is always a lot of finger pointing. It's more common in the FPGA world than in MCU's.Bob

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: June 09, 2016, 11:37:46 pm
content: I use Eclipse (Mars) on Windows 8.0, 8.1, and 10 and it works fine on all. Both 32-bit and 64-bit flavors.Edit: Works fine on Windows 7 too.

author: Sal Ammoniac
author_rank: Super Contributor
timestamp: June 09, 2016, 11:39:55 pm
content: Quote from: uncle_bob on June 09, 2016, 08:59:03 pmI use a Segger J-Link and Segger is very good about updating drivers to track the OS versions.

author: uncle_bob
author_rank: Unknown
timestamp: June 09, 2016, 11:47:48 pm
content: Quote from: Sal Ammoniac on June 09, 2016, 11:39:55 pmHiThe J-Link works fine on Windows 10.Bob
Can avr-objdump show arch-specific registry names instead of generic rXXX ? - Page 1
Forum section: electronics / general

author: VinzC
author_rank: Frequent Contributor
timestamp: May 31, 2016, 03:39:38 pm
content: Hi all.I'm coding for the ATmega54M1 and I haven't been able to figure out how to get registry names for that MCU from avr-objdump. Does anyone know if that's possible at all? If yes, what option should I pass?Thanks in advance for any hint or suggestion.

author: westfw
author_rank: Super Contributor
timestamp: June 01, 2016, 01:29:47 am
content: I don't think it's possible.Most of the register names accessible to C are #defines rather than actual symbols. Which typically allows better compile-time optimization.Hold on; I think Clawson on avrfreaks might have done something recently... Hah!http://www.avrfreaks.net/forum/bit-fun-new-way-program-avrs-beta-testers-invited?skey=symbols

author: VinzC
author_rank: Frequent Contributor
timestamp: June 10, 2016, 02:01:28 pm
content: Quote from: westfw on June 01, 2016, 01:29:47 amThanks a lot, westfw. It's not as straightforward as I'd have hoped but, well, there's at least an existing solution. I'll read that carefully.
How to add time delay in verilog code - Page 1
Forum section: electronics / general

author: gauravmp
author_rank: Regular Contributor
timestamp: June 06, 2016, 09:57:59 pm
content: Hi,I'm wondering how you could add delay in verilog code for an FPGA. I understand, I can add a for loop and have it go for a number of cycles, but is there a better way. I'm more so looking for delays to a few seconds.Can I have another clock go at a frequency very slow so that I could do this. If so, how could I implement it?I'm using Altera MAX 10 FPGA and Quartus II 15.0Thanks

author: John_ITIC
author_rank: Frequent Contributor
timestamp: June 06, 2016, 10:31:30 pm
content: No, there's no better way. A digital, synchronous design uses counters to create delay. You can simply count up an integer or reg and act when reached whatever delay you need.

author: mikeselectricstuff
author_rank: Super Contributor
timestamp: June 06, 2016, 11:07:00 pm
content: You must always keep in mind that you're describing hardware, not writing a program.So you need to think how you would implement a delay in hardware - make a counter (or maybe a shift-register - that can sometimes be more efficient for small counts), decide how many bits it needs, how to clock it, reset it and detect when it gets to the value you want.

author: helius
author_rank: Super Contributor
timestamp: June 06, 2016, 11:40:41 pm
content: Of course, there's nothing preventing you from using a software approach in a FPGA. You simply need to build a machine in HDL that interprets the code you want to write. Or select an existing soft core that matches the needed capabilities.

author: obiwanjacobi
author_rank: Super Contributor
timestamp: June 07, 2016, 05:39:07 am
content: Output it to external pins and use external hardware to delay the signal?This might be feasible if the time is long and you want to save FPGA resources...?

author: gauravmp
author_rank: Regular Contributor
timestamp: June 07, 2016, 02:53:25 pm
content: Thanks guys! was able to do it!