hybridfree/eevblog-posts huggingface dataset:
STM32 : ADC with DMA and Timer - Page 1
Forum section: electronics / general

author: gab_22
author_rank: Contributor
timestamp: June 06, 2023, 08:09:05 pm
content: Hi!I'm trying to convert 4 ADC channels with interrupt and DMA on my STM32 dev board (nucleo F303RE) the goal is to start a conversion periodically and transfer the results through the DMA. But unfortunately, it doesn't workHere is the configuration, I use STM32CubeIDE.ADC ConfTIM4 ConfAnd here my codeCode:/* USER CODE BEGIN PV */uint16_t raw;uint8_t ADDCPLT = 0;/* USER CODE END PV */Code:/* USER CODE BEGIN 2 */HAL_ADC_Start_DMA(&hadc1, (uint16_t)*raw, 4);HAL_TIM_Base_Start_IT(&htim4);/* USER CODE END 2 */main loopCode:while (1){/* USER CODE END WHILE *//* USER CODE BEGIN 3 */if(ADDCPLT){HAL_GPIO_TogglePin(LD2_GPIO_Port, LD2_Pin);ADDCPLT = 0;}}/* USER CODE END 3 */Code:/* USER CODE BEGIN 4 */void HAL_ADC_ConvCpltCallback(ADC_HandleTypeDef* hadc){if(hadc->Instance == ADC1){ADDCPLT = 255;}}/* USER CODE END 4 */When I start the program on the target, I see LD2 blinking at ~10Hz as expected, but I don't see anything in raw variables. (checked with STM32CubeIDE integrated debugger) I think I forgot something somewhere... Do you have any ideas?Thanks

author: Georgy.Moshkin
author_rank: Frequent Contributor
timestamp: June 07, 2023, 02:07:51 am
content: I think it should beCode:HAL_ADC_Start_DMA(&hadc1, (uint16_t*)&raw, 4);And check this:Code:/* Initialize all configured peripherals */MX_GPIO_Init();MX_DMA_Init(); // <-- this should be placed before MX_ADC_Init()MX_ADC1_Init(); // <-- this should be placed after MX_DMA_Init()...

author: MasterT
author_rank: Frequent Contributor
timestamp: June 07, 2023, 04:18:40 am
content: Check it out:https://github.com/STMicroelectronics/STM32CubeF3/tree/master/Projects/STM32F303RE-Nucleo/Examples/ADC/ADC_SequencerCubeMX has an examples worth to study
P&E micro cpu16/32 BDM cable software - Page 1
Forum section: electronics / general

author: SMC_T
author_rank: Newbie
timestamp: May 27, 2023, 10:17:31 pm
content: Hello, Benst and I are attempting to build a one stop archive for M68k development resources, this will hopefully include a vast selection of software that was period correct, I have the older LPT cable, but cant find any software, anyone that wants to get involved feel free to PM or post what you have here.Current repo is herehttps://drive.google.com/drive/folders/1K9XVBgo8PCO9BMD6i5xyVaxvFxUdkqpG?usp=share_link
Read/Write EEPROM Fairchild NM93C46 with Buspirate - Page 1
Forum section: electronics / general

author: MartinMart
author_rank: Newbie
timestamp: May 28, 2023, 08:01:11 pm
content: I know the Buspirate is quite an old tool, but if someone still has experience with it, I would really appreciate your help.I try to read data from an EEPROM with it (Fairchild NM93C46) Datasheet:https://pdf1.alldatasheet.com/datasheet-pdf/view/54268/FAIRCHILD/NM93C46N.htmlI also found this tutorial end set everything up the same way:http://dangerousprototypes.com/forum/index.php?topic=7112.0VCC -> 5VGND->GNDCS->CSSK->CLKDo->MisoDi->Mosi3V -> Pullup-restistorsI then used the 3Wire mode set up as in the tutorial above.When i try the command [-^^_^ _^:7 r] or ]-^^_^ _^:6 r:1024[ or anything similar I always get 0xFF.Really appreciate any help and guidance.

author: mon2
author_rank: Frequent Contributor
timestamp: May 29, 2023, 11:23:50 pm
content: Swap the DO and DI connections and try again.

author: MartinMart
author_rank: Newbie
timestamp: May 30, 2023, 09:00:28 pm
content: Hi, thanks for your help, then the output switches to 0x00...Edit: I checked all connections again with a multimeter, and then I suddenly received an output of some HEX values and the rest 0xFF, but re-running the same command [-^^_^ _^:6 r:1024] gave me different values? Shouldn't the read output stay the same all the time?

author: mon2
author_rank: Frequent Contributor
timestamp: May 30, 2023, 11:12:46 pm
content: Yes, the results should be consistent.Go back to your original wiring but try with a slower clock value. The max clock is 400khz but suggest to try with 10khz, etc.

author: MartinMart
author_rank: Newbie
timestamp: May 31, 2023, 05:26:23 pm
content: Also did not change anything, tried all available khz (5, 50, 100), same result only 0xFF (which I also get if I have nothing connected to the buspirate at all)I redid one solder and then checked all connections again with the multimeter, all looks fine. (used 200 Ohm)When I swap DI/DO I get random values, so I am pretty sure my standard connections is right.Already tried to initiate/close the command with ]/[ instead of [/] as well, didn't change anything either.I also checked if the EEPROM still works in its original use and it does, so I did not kill it yetAny further things I could try? I am slowly running out of ideas...

author: mon2
author_rank: Frequent Contributor
timestamp: May 31, 2023, 05:54:26 pm
content: I would suggest that you power the EEprom @ 3v3.Then follow this article and update this thread for future readers:https://medium.com/@rxseger/spi-interfacing-experiments-eeproms-bus-pirate-adc-opt101-with-raspberry-pi-9c819511efeaPS: Personally do not own this buspirate tool but have written lots of bit-bang code from scratch to R/W/E microwire and SPI / QSPI devices.

author: MartinMart
author_rank: Newbie
timestamp: June 05, 2023, 07:13:41 pm
content: Thanks for your help, in the end I just had to update the buspirate firmware...
Has anybody got Ingenic USB Prog Tools? - Page 1
Forum section: electronics / general

author: ssashton
author_rank: Frequent Contributor
timestamp: January 04, 2023, 11:59:10 pm
content: Hi,I have a system using an Ingenic X2000 processor that seems to be stuck in some kind of boot mode and can not get out of it.Ingenic have a link for the 'USB Burn Tool' but the FTP server seems to be dead.Can anybody help with a driver and or system tools?http://www.ingenic.com.cn/en/?newsshow/tp/228/id/70.html

author: ssashton
author_rank: Frequent Contributor
timestamp: January 05, 2023, 12:11:32 am
content: Oh well, their FTP link just needs a '.com' added to it.I guess they changed the domain from.cnto.com.cnand never updated the link.

author: ssashton
author_rank: Frequent Contributor
timestamp: January 05, 2023, 04:11:46 pm
content: Anybody worked with Ingenic X1000 / X2000 Burst SOC before?It seems to be stuck in bootloader mode and showing up as an Ingenic USB Device over USB, even though the hardware boot pins are correct for booting the internal storage.

author: SeanMollet
author_rank: Newbie
timestamp: May 24, 2023, 07:43:29 pm
content: Do you have a correct uboot with the first stage on the flash? What kind of memory are you booting from and how do you have the pins set? The default is SPI flash.
Trying to identify this Chinese microcontroller - Page 1
Forum section: electronics / general

author: velmurugan7kmvs
author_rank: Newbie
timestamp: May 24, 2023, 05:45:38 pm
content: I am trying to find this microcontroller vendor but don't find any details.The IC has a marking "DJ5128". Attached the MCU top image.If you know about this MCU part, please help..Thanks,Vel
Nothing before the comma??? - Page 1
Forum section: electronics / general

author: Circlotron
author_rank: Super Contributor
timestamp: May 25, 2023, 05:26:05 am
content: If we haveCode:COM LOCATION,Xthen that's easy. It complements a memory location that is offset by the amount contained in XBut what if we haveCode:COM ,XSeeing there is nothing before the comma, what memory location is it offset from?I've seen other instructions that have a blank before the comma. What does this mean?

author: brucehoult
author_rank: Super Contributor
timestamp: May 25, 2023, 07:58:26 am
content: You need to specify what CPU you are talking about.The M6809 uses such syntax to indicate register indirect or indexed addressing with no offset. It is the same as0,Rwhere R is any of X, Y, U, S. There is also,R+,R++,-Rand,--RIf the assembler is smart it should generate,Rif you write0,R. They both use the same amount of code, but no offset at all takes 1 cycle less than a 5 bit offset.

author: Circlotron
author_rank: Super Contributor
timestamp: May 25, 2023, 11:55:07 am
content: Quote from: brucehoult on May 25, 2023, 07:58:26 amNXP S08 family.I'll study your explanation more closely when I'm not so tired.

author: brucehoult
author_rank: Super Contributor
timestamp: May 25, 2023, 01:01:40 pm
content: Quote from: Circlotron on May 25, 2023, 11:55:07 amOh gosh, another wacky variation on the 6800!Dropped the B register, but the lower half of the index register (now called H:X instead of X for arithmetic, but just X for all 16 bits in addressing modes) can do most of the things the B register can do in 6800. And of course where the 6800 has only 8 bit offset from X (and you have to put 0 whether you need it or not), the 6808 (like the 6809 and other later members) allows no offset (1 byte instruction), 8 bit offset (2 byte instruction) or 16 bit offset (3 byte instruction).That must have saved ... fractions of a cent.And made code porting a nightmare.
Chinese J-Link VTref/3.3V weirdness - Page 1
Forum section: electronics / general

author: mondalaci
author_rank: Contributor
timestamp: May 18, 2023, 08:06:44 pm
content: Hi guys,I purchased aJ-Link V9 clone, and to my surprise, I measure 3.3V between GND and VTref (pin 1) regardless of whether I run the `power on` vs `power off` command in J-Link Commander. With an original Segger J-Link, I always measure zero volts between VTref and GND, as should be the case.I found a jumper on the PCB of the clone, but it doesn't affect this behavior. I'm wondering what its purpose is.Do any of you know what's going on with the VTref of the clone?

author: abyrvalg
author_rank: Frequent Contributor
timestamp: May 18, 2023, 09:10:08 pm
content: VTref shouldn’t be affected by power on/off cmd at all, it’s an input supplying those two LVC buffers. Perhaps the 3v3 you are observing is just some weak leakage from MCU’s outputs connected to the other side of LVCs. And the power out is pin 2.Edit: the sw-controlled power output is pin 19 indeed (and that can be seen clearly on the photo - a thick track connects it to a transistor), while pin 2 is a fixed output selectable by jumper.

author: GromBeestje
author_rank: Frequent Contributor
timestamp: May 19, 2023, 08:06:46 am
content: There are various chinese clones out there. They usually output 3.3 volts on the VTref as a "feature" to power the circuit from the programmer.Usually they come with a jumper places, and removing the jumper should disable this. However, I have seen some versions with a leakage voltage on the VTref pin when the jumper was removed. With the jumper removed, try putting some pull down resistor at VTref and see if the voltage goes away.

author: barshatriplee
author_rank: Regular Contributor
timestamp: May 19, 2023, 03:11:34 pm
content: Have you got any schematic? I think it will help more if you share that (in case you got it from the seller).

author: mondalaci
author_rank: Contributor
timestamp: May 23, 2023, 08:33:06 pm
content: I don't have a schematic to share, but I've pulled down VTref (pin 1) by connecting it to GND (pin 4) via a 5.1K resistor. The jumper was in the right position, according to the photo I attached previously. J-Link Commander still measured 3.3V.When the jumper is in the left position or removed, and the pull-down resistor is connected, J-Link Commander measures 1.12V, and the status LED switches to red instead of its usual green color.
Did cli() just destroyed everything? - Page 1
Forum section: electronics / general

author: ppTRN
author_rank: Regular Contributor
timestamp: May 21, 2023, 07:06:25 pm
content: Hi, I uploaded a very stupid program into my arduino yun (Atmega16U4)Code:void loop(){cli();}As soon as i uploaded it windows notified me that "usb device not responding" and told me that it might not be funcional. Tried to upload blink(), reset and immediatly try to upload, tried to reupload bootloader, nothing. Did I screw up?

author: Ian.M
author_rank: Super Contributor
timestamp: May 21, 2023, 08:41:53 pm
content: cli() disables interrupts. Disabling interrupts crashes the USB link to the host after approximately 1ms when the Arduino fails to respond to USB link activity, resulting in a 'dirty' disconnect.Try pressing the Arduino reset button twice in quick succession. It should then enter USB bootloader mode, and you then have about eight seconds to select the correct COM port and upload a good sketch (e.g. 'Blink') before it drops out of bootloader mode and starts your FUBARed code.

author: barshatriplee
author_rank: Regular Contributor
timestamp: May 22, 2023, 01:35:27 am
content: Uploading a program that disables interrupts (cli()) in the loop() function of your Arduino Yun sketch can indeed cause issues with the board's functionality. Disabling interrupts can lead to a situation where the board becomes unresponsive or behaves unexpectedly.

author: brucehoult
author_rank: Super Contributor
timestamp: May 22, 2023, 04:24:51 am
content: It's not even that it's in the loop()function. Even if it was insetup(), disabling interrupts and not re-enabling them will prevent responding to external interrupt-driven communication -- or even timers.You should always endeavour to put as few instructions as possible between cli() and sei().

author: ppTRN
author_rank: Regular Contributor
timestamp: May 22, 2023, 11:15:26 am
content: Quote from: Ian.M on May 21, 2023, 08:41:53 pmThanks, I did not know this boot mode. I will try it as soon as possible.

author: ppTRN
author_rank: Regular Contributor
timestamp: May 22, 2023, 01:55:18 pm
content: It worked! Thank you very much
RP2040 DNL errata - Page 1
Forum section: electronics / general

author: profdc9
author_rank: Frequent Contributor
timestamp: May 22, 2023, 03:29:36 am
content: The RP2040 has a very high DNL (errata RP2040-E11) due to some error in the fabrication of the successive approximation capacitors. Does anyone know if this has been fixed or will be fixed in a future version?You can read about it here:https://www.hackster.io/news/raspberry-pi-confirms-it-is-investigating-a-flaw-in-the-raspberry-pi-pico-rp2040-adc-95c393b55dfbhttps://electronics.stackexchange.com/questions/613537/how-is-this-peak-dnl-error-in-rp2040-adc-realised-in-actual-use

author: hubi
author_rank: Regular Contributor
timestamp: May 22, 2023, 06:15:00 am
content: AFAIK, it has not been fixed. See this post on the pico forum from late 2021:https://forums.raspberrypi.com/viewtopic.php?t=323704. I have not seen anything since then about a fix, but maybe I missed it.

author: SiliconWizard
author_rank: Super Contributor
timestamp: May 22, 2023, 06:42:41 am
content: Chances are, at this point, people already using the RP2040 have found a workaround. I'm betting the RPi didn't expect this chip to become so "popular".It may be better for them to release a new, improved variant rather than fix this one, in terms of cost and overall relevance. With the experience they gathered with this first MCU, I'm sure they can come up with something pretty interesting.

author: rteodor
author_rank: Frequent Contributor
timestamp: May 22, 2023, 07:18:07 am
content: Quote from: SiliconWizard on May 22, 2023, 06:42:41 amA look-up table maybe ?

author: Kleinstein
author_rank: Super Contributor
timestamp: May 22, 2023, 08:28:30 am
content: No need for a lookup table. The "correction" is relatively simple. So this can be done with relatively simple direct math. If the result is 512, 1536, 2560 or 3584 add 4. Otherwise if the 1024 valued bit is set for the ADC result + 512 add some 7 or 8 (8 is the easier case). With enough free memory the lookup table would still be viable.However the problem with too large bins stays and can not really be solved. With a result of 512 , 1536, .... you are just in the bad spots of the ADC and digitally nothing can be done to correct te local error. One would need more like an analog solution of shifting the input signal instead. To some degree and with enough noise oversampling (ideally including the correction above) could also help. So for slow sensors would could work around.With the described HW problem the ADC is just more of a 9 bit ADC than a 12 bit ADC. For quite some used this is still good enough and quite some application of the RP2040 don't even used the ADC at all. In the current state the RP2040 is not a good solution if you need a good ADC.
Any Info on Mullard/Philips MAB8400 series microcontrollers? - Page 1
Forum section: electronics / general

author: djsb
author_rank: Super Contributor
timestamp: May 21, 2023, 10:41:04 am
content: Does anyone have any information on an MAB8440P microcontroller? It is a member of the Mullard/Philips MAB8400 series, which is a modified version of the intel 8048 series. According to the attached article, there was a "bond out" chip available that could have an EPROM attached for software development. Does anyone know anything about this bond out chip. Are there any disassemblers (for a logic analyser) or emulators (MCS-48 based) out there? The MAB8440P supposedly supports I2C, although I have yet to test this with my Logic16. Article and target device application attached. Thanks.

author: barshatriplee
author_rank: Regular Contributor
timestamp: May 22, 2023, 01:46:03 am
content: These MCUs are sold at ebay. But I could not find any datasheet. Only this 'technical handbook' showed up in google search:https://manuals.plus/m/a761b7596e00eb5d608045a55d57f5ee2592f7d55a9a61032b27030f27fa107a

author: PCB.Wiz
author_rank: Super Contributor
timestamp: May 22, 2023, 07:00:15 am
content: Quote from: djsb on May 21, 2023, 10:41:04 amGoogle finds this MAB8401B piggyback parthttps://www.ebay.com/itm/185644867950tho there are also quasi-footprint partshttps://www.ebay.com/itm/294024134898Where someone has created a board with a AVR mounted and pin mapped to replace a mask version. (D011?)
MACHXL 2.1 Software for DOS - Page 1
Forum section: electronics / general

author: Nebula
author_rank: Newbie
timestamp: May 17, 2023, 10:59:59 am
content: Hi forum!Does anybody have the disk files for DOS Software: MACHXL 2.1 from AMD?They were available to free download under this page until 2022:https://web.archive.org/web/20220425113542/http://noel.feld.cvut.cz/hw/amd/mxl21sw_.htmlBut now the website is no longer available. I can browse the website using archive.org but files were not archived.I found the latest version of PALASM DOS Software (predecessor of MACHXL) and I successfully installed and used it under DOSBox emulator, but MACH211 devices and others are not supported. They were added later to MACHXL 2 version.Thanks in advance.

author: barshatriplee
author_rank: Regular Contributor
timestamp: May 22, 2023, 01:32:27 am
content: You can contact AMD directly through their official website or customer support channels. They may have archived versions of their older software or be able to provide you with more information on where to find the files you need.
Dumping Rom on i8502? - Page 1
Forum section: electronics / general

author: jpyeron
author_rank: Regular Contributor
timestamp: May 20, 2023, 08:25:48 pm
content: If I am reading the 1988 data sheet correctly, the reading protection is only on the eprom variants. Anyone else have experience before I solder the only working chip I have?Goal: patch firmware (new chip) and replace.

author: PCB.Wiz
author_rank: Super Contributor
timestamp: May 21, 2023, 04:25:55 am
content: If you meant i8052, google finds thishttps://phk.freebsd.dk/hacks/reading_i8052/

author: jpyeron
author_rank: Regular Contributor
timestamp: May 21, 2023, 04:24:52 pm
content: yes, I read that too, the data sheet was ordered and worded in a way to introduce doubt.Quote from: PCB.Wiz on May 21, 2023, 04:25:55 amThere are other sites that indicate later versions "added protections" and "may not follow the datasheet".I thought it was worth a second opinion.
CH32V003 to PCF8574 Help needed - Page 1
Forum section: electronics / general

author: OZ1LQB
author_rank: Regular Contributor
timestamp: May 20, 2023, 01:00:07 pm
content: I'm trying to get the CH32V003 to talk to a PCF8574 but I'm completely stuck.I don't know if it's just me being old and stupid.Does anyone have a bit of code that can help me get started?Claus

author: DavidAlfa
author_rank: Super Contributor
timestamp: May 21, 2023, 12:17:27 am
content: The best source is github. Search PCF8574 there, you'll find plenty of code!https://github.com/siorpaes/stm32-boilerplate/blob/master/stm32F4Discovery/Drivers/pcf8574.c

author: OZ1LQB
author_rank: Regular Contributor
timestamp: May 21, 2023, 10:39:48 am
content: Thank you very much for your kind help.now it works after several days of struggle
Flashing PIC uC without MPLAB (I have a PICKit) - Page 1
Forum section: electronics / general

author: kelvne
author_rank: Newbie
timestamp: May 24, 2023, 02:39:45 pm
content: trying To delete my account

author: woofy
author_rank: Frequent Contributor
timestamp: May 24, 2023, 03:13:23 pm
content: One option is to use Microchip IPE. Its a stand alone programming software that supports the PICKIT3.It comes with MPLABX which you can ignore if you don't like it.

author: JPortici
author_rank: Super Contributor
timestamp: May 24, 2023, 03:58:55 pm
content: These guys provide an update standalone programmerhttps://pickitplus.co.uk/Typesetter/index.php/PICKitPlus-Basic-Suitenote that PK3 is obsolete (has been for years now), it's unmantained by microchip and it was actually removed from the supported programmers

author: coromonadalix
author_rank: Super Contributor
timestamp: May 24, 2023, 04:25:02 pm
content: Quote from: JPortici on May 24, 2023, 03:58:55 pmI've bought from them, well done simpleand way better thant the full crap suite ..... worked fine with pic kit2 and pic kit3not sure if they will evolve to the pic kit 5

author: JPortici
author_rank: Super Contributor
timestamp: May 24, 2023, 05:23:08 pm
content: Quote from: kelvne on May 24, 2023, 04:20:15 pmI know how things are in brazilQuote from: coromonadalix on May 24, 2023, 04:25:02 pmi don't think so. The way i understand it works is by putting the PK3 in "MPLAB Mode" which is a -very- legacy firmware that was reverse engineered, basically the same as the PK2.PK4 and PK5 work in a substantially different way. It is 100% possible to bypass microchip's tools and upload the programming script directly to the device, and program parts in mere seconds, but you still require the scripts etc that have to be provided by microchip, so possible licensing issues...

author: westfw
author_rank: Super Contributor
timestamp: May 25, 2023, 02:11:41 am
content: QuoteThere is even a CLI version:https://microchip.my.site.com/s/article/Automate-MPLAB-programming-process-using-command-lineIPECMD
NXP Kinetis MCU availability - Page 1
Forum section: electronics / general

author: gaminn
author_rank: Frequent Contributor
timestamp: May 18, 2023, 12:29:19 pm
content: Hi, anyone with good connections who knows whether NXP Kinetis MCU family will be available for retail customers? It hasn't been available for years and still it has up to 150 weeks factory lead time. Should I redesign or is there a chance?

author: barshatriplee
author_rank: Regular Contributor
timestamp: May 20, 2023, 04:49:42 am
content: I think after such a long time, it's better to consider an alternative. You can also post this question to the NXP community.

author: luiHS
author_rank: Frequent Contributor
timestamp: May 20, 2023, 01:22:38 pm
content: I am in the same situation, and there will be no Kinetis chips until 2024, there is no alternative. If you search for the Asian market you only get offers at exorbitant prices and also they are probably fake chip scams.The only option is to replace the microcontroller, I have been redesigning my boards for a long time to use NXP RT1064 microcontrollers as a replacement for the Kinetis MK66. Of the RT series there is stock in the main suppliers.It doesn't seem complicated to replace a kinetis MK66 with an RT1064, the only new thing for me is the RT series firmware encryption system, I haven't tried it yet. For the rest, both are ARM, same MCUXpresso development environment, practically the same name for the functions in the MCUXPresso sample programs, there are few changes to make in the source code.In my case, it is also going from using chips with LQFP encapsulation to using them in BGA, this has been easy for me to do, although now the boards have components on both sides, the assembly process takes a little longer, but for On the other hand, the BGA is more reliable, the welds always come out well, when with the LQFP I often got pins that did not weld or shorts between pins occurred.
Micro marked M10V5VLF is it from Freescale or clone? - Page 1
Forum section: electronics / general

author: ace1903
author_rank: Regular Contributor
timestamp: May 17, 2023, 08:49:43 am
content: I bought Chinese hybrid stepper motor driver and as I am curious I opened it and took a look at PCB.Seems that I can use this driver board to drive my second DC brushed motor at 48V and up to 5A if I manage to reprogram the micro to generate PWM signal.Micro is marked with M10V5 and according google it is from Freescale based on shady Chinese component broker webpage.Freescale had MK10 series that is powerful and I can program it, but this micro is marked with M only.Is there anyone that uses Freescale micros that can confirm that logo is from Freescale and can decode markings?Or if someone knows Chinese factory that produces this micro?

author: Christe4nM
author_rank: Unknown
timestamp: May 17, 2023, 11:50:27 am
content: Definitely looks like the old Freescale logo (now part of NXP).First search result for "Freescale M10V*" gave me this:https://community.nxp.com/t5/Kinetis-Microcontrollers/Marking-Code-need-to-be-explained-M10V/m-p/807458. The device markings posted there are the sameon the first 3 linesfor the first and 3rd line, so I assume the last line is a production date/batch code. IIRC "VLC" or "VLF" relate to which IC package it is.According to the link it may be part no. MKV10Z32VLC7.Yours may be a MKV10Z32VLFx (seehttps://www.nxp.com/part/MKV10Z32VLF7#/)

author: ace1903
author_rank: Regular Contributor
timestamp: May 17, 2023, 12:55:54 pm
content: Pinout matches datasheet provided by Christe4nM.J7 is SWD debug connector. 2014-2015 I worked with Freescale processor on motor control projects.They had Processor Expert code generator that was useful to make simple projects and proof of concept code.Programmer was integrated in their tower system to which I lost access(I had it at previous employer).Need to find other debugger/programmer (maybe something based on OpenOCD)I have old NC milling machine that I teared down old electronics and replaced with newer stepper and servo drives.But still I have one brushed drive that I need to put into servo loop.Thanks to all of you that spent time to look at this and especially thanks to Christe4nM.
Unknown Chip - Page 1
Forum section: electronics / general

author: junkelec
author_rank: Newbie
timestamp: May 16, 2023, 10:34:58 pm
content: Hello,Do you have any idea what this chip might be ? You can find a picture with the two sides of it attached.Thanks !

author: ataradov
author_rank: Super Contributor
timestamp: May 16, 2023, 11:00:13 pm
content: IDT7209L - 12 x 12 Parallel CMOS Multiplier AccumulatorThe datasheet is easy to find. 45C is a 45 ns MAC time, commercial temperature grade.

author: junkelec
author_rank: Newbie
timestamp: May 16, 2023, 11:13:52 pm
content: Oh so this was and "I" ! Thank you very much, will look into it !

author: SiliconWizard
author_rank: Super Contributor
timestamp: May 16, 2023, 11:16:04 pm
content: Nice. 30ns wasn't bad at the time for a 12x12 MAC. 40mA @5V.Realize how spoiled we are these days.
Didistump clone drivers - Page 1
Forum section: electronics / general

author: Tangent_Tracker
author_rank: Regular Contributor
timestamp: May 15, 2023, 11:59:40 am
content: Hi folks so I have a standard digistump, added to the board manager in Arduino but I am struggling to install the acompanying files viahttps://github.com/digistump/DigistumpArduinoI have succesfully done this at home, and despite being administrator I get the error message due to unsigned drivers :-( Tech support here is hopeless and they often make things worse!Any way round this issue?

author: RoGeorge
author_rank: Super Contributor
timestamp: May 15, 2023, 12:28:22 pm
content: You'll need to find asigned driver(the one you are trying to install was refused by Windows for not being an "approved by Windows", AKAsigned driver).Alternatively, change the Windows policy, so to allow unsigned driver to be installed. It's been years since I didn't use Windows, not sure if allowing unsigned driver is still possible, during WinXP/Win7, it was.
Help Identity IC - Page 1
Forum section: electronics / general

author: funky2x
author_rank: Contributor
timestamp: May 13, 2023, 06:52:47 pm
content: Help Identity IC in the photo attached,Have looked all over, but cant find any info.

author: Benta
author_rank: Super Contributor
timestamp: May 13, 2023, 07:47:11 pm
content: TI MSP430 variant of some sort.

author: SiliconWizard
author_rank: Super Contributor
timestamp: May 13, 2023, 10:10:19 pm
content: This would be the MSP430U229, can't find any info about the U series though. The currently listed series for the MSP430 are the F, FR, FG, G, BT and L. The U229 can be "found" at some brokers though.No idea what it is. Could be a variant of the MSP430F2xx with mask ROM instead of Flash, but if so selling it as is (as some brokers seem to) wouldn't make sense. Possibly an OTP variant.

author: funky2x
author_rank: Contributor
timestamp: May 13, 2023, 10:17:15 pm
content: I sent a case request to Texas instruments with the part number. see if i can get a response with datasheet or any technical inforamtion.Appreciate your feedbak.

author: eutectique
author_rank: Frequent Contributor
timestamp: May 14, 2023, 03:45:20 pm
content: Perhaps, a subset of 430G family.
GT911 Datasheet and driver for STM32 - Page 1
Forum section: electronics / general

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: May 14, 2023, 10:25:28 am
content: Hi,I have searched the web, and was not able to find a complete datasheet on GT911 touch controller, The datasheets on the web has incomplete data, there is no register info, so I can not implement the driver code for STM32, Am I missing something? does anyone has the complete datasheet with registers info?

author: langwadt
author_rank: Super Contributor
timestamp: May 14, 2023, 11:31:36 am
content: https://www.crystalfontz.com/controllers/GOODIX/GT911ProgrammingGuide/478/?or start with this:https://github.com/torvalds/linux/blob/master/drivers/input/touchscreen/goodix.c
quasi z source inverter svpwm method - Page 1
Forum section: electronics / general

author: cagdas501
author_rank: Newbie
timestamp: May 14, 2023, 07:00:13 am
content: Hello, I want to generate switching signals for a quasi z source inverter using the svpwm method. I can generate the traditional svpwm method, but I couldn't add shoot through time on it. I have researched on MathWorks and found that the code used in the image can be implemented, but I don't fully understand the code. Although I understand what it does in general, I can't adapt it to the format used in my switching time table. I would be very grateful if someone who has worked on this before or can help me on how to adapt this code to the format in my table. I have been trying to find a solution for 2 weeks.I apologize in advance if it is forbidden to share code, but I have no other choice.https://r.resimlink.com/RIMDcZb4.jpghttps://r.resimlink.com/ABTlt.jpg
Eclipse IDE shows (weird) code error on another identical (?) "install" - Page 1
Forum section: electronics / general

author: eTobey
author_rank: Super Contributor
timestamp: May 10, 2023, 07:32:08 am
content: This is a strange problem, as it works on another system. It works on an Installion where workspace and installationfiles are identical.These variables are declared (right after each other) as followed:public static boolean globalLogToFile;public static boolean useHttps;They should either both give an error or both give no error.When I set up a new system, I don't install eclipse, but run it from a folder. It never caused any trouble.I tried to use STM32 Cube IDE in the same way as Eclipse, but it had some differences on those two systems. The new installed Cube did work with creating new project or compiling, where the one used from the folder did not. The workspace and the programfiles in the folder are identical as those on the working system. They were compared byte by byte. Maybe something does interfere?Cheers, TobyPS. I usually dont post photos, but this other system is not set up completely.

author: GromBeestje
author_rank: Frequent Contributor
timestamp: May 10, 2023, 08:14:12 am
content: Does it only give the error in the editor or also when compiling?First try to right click the project and then refresh it, also rebuild the index. This will add all available sources so the code hinting and auto complete will work.If this does not resolve, then verify all the include paths are set as required. Please be aware it might be possible some includes may not be part of your project/workspace, which you may need to transfer to the other system separately, and configure the path appropriately.

author: eTobey
author_rank: Super Contributor
timestamp: May 10, 2023, 08:48:47 am
content: Thanks for your answer.Its Java, and it wont let me compile with this error.Include paths are not the problem, as the other variable above is the exact same type and declared at the same spot. Also this works on another computer.Interestingly it shows variable, that can be resolved in bold. If i change the name, so that the error would a actually an error, the text is then not bold.

author: eTobey
author_rank: Super Contributor
timestamp: May 10, 2023, 01:40:10 pm
content: I fixed the issue, buti dont know the cause or cant reproduce the error again. OmfgI put a comment over the declaration and compiled it. It now also works without that change (as it was before WITH the problem).Tried to reproduce the problem, to try to find the excact cause... no, it now works as there has never been a problem.I posted this also on stackoverflow but some idiots vote-closed my topic so i cant even post an answer how i fixed the issue there.I dont know whats worse, the false error, getting your topic closed as youre seeking for help, or having the error disappear as nothing ever happend. I need another hobby...
Strange unknown pinout on STM32F072CBU6 - Page 1
Forum section: electronics / general

author: eTobey
author_rank: Super Contributor
timestamp: May 11, 2023, 10:02:42 am
content: While reverseengineering a Display from an ebike, i found, that the pins are different from what i can find in the datasheet. The USB DM and DP go to CAN_R/TX and the CAN-IC is connected to VDDA. I gues this is a custom job STM chip?I thought awesome, i might be able to repogramm that chip trough USB. But with all those pins beeing different, it would be quite a task.I wonder how could i find out what the BOOT0 pin would be in the first place without shorting pins or something destructive...Are there chips from STM with different pins than standard which would not be a custom job?

author: gamalot
author_rank: Super Contributor
timestamp: May 11, 2023, 10:13:26 am
content: They are pin45/46 (PB8/9)

author: eTobey
author_rank: Super Contributor
timestamp: May 11, 2023, 10:52:17 am
content: Damn how could i be so blind?I hate the datasheets of STM!

author: hans
author_rank: Super Contributor
timestamp: May 11, 2023, 01:22:38 pm
content: A little solace, you're not the only one that is confused by the pin 1 indicator of STM32s..That pin 1 indicator means the left row is 1..16, and so the pins indicated are 45/46.

author: Psi
author_rank: Super Contributor
timestamp: May 11, 2023, 01:28:42 pm
content: Another trap you see occasionally, not for STM32 in particular but in general.is something hidden in the datasheet, usually in fuse bits section that will put a MCU into a special compatibility mode where it behaves like a different MCU variant that has a different datasheet. I've seen it on a few AVRs.It can be super confusing if you don't understand why things are on ports/pins that they shouldn't be on due to undocumented MUX modes that the compatibility mode uses to move peripheral's around.

author: newbrain
author_rank: Super Contributor
timestamp: May 11, 2023, 01:58:46 pm
content: Quote from: hans on May 11, 2023, 01:22:38 pmAnd all other chips in a pinned (and many unpinned) package?What's different from other square chips (and even DIPs) with pins on the perimeter, i.e., not BGA?While looking from the top, from the Pin 1 marker, start counting counterclockwise.I've never seen an exception.

author: langwadt
author_rank: Super Contributor
timestamp: May 11, 2023, 02:02:53 pm
content: Quote from: newbrain on May 11, 2023, 01:58:46 pmsure but then

author: eTobey
author_rank: Super Contributor
timestamp: May 11, 2023, 02:21:54 pm
content: I was looking at the datasheet, and the pin1 and how the text is rotated...

author: DavidAlfa
author_rank: Super Contributor
timestamp: May 11, 2023, 02:26:42 pm
content: Trust the hole over the text orientation, if any doubs remains then search the power pins, you'll quickly see the correct way.

author: wek
author_rank: Frequent Contributor
timestamp: May 11, 2023, 03:51:39 pm
content: Quote from: eTobey on May 11, 2023, 02:21:54 pmLook at the packages description at the end of DS.JW
Original Pi Camera with RPi3A+, not recognized - Page 1
Forum section: electronics / general

author: MikeK
author_rank: Super Contributor
timestamp: May 05, 2023, 08:39:20 pm
content: I'm trying to get an original Pi Camera (board Rev 1.3) working with my Raspberry Pi model 3A+.The camera is connected correctly and I have Legacy Camera and I2C enabled in raspi-config. But the camera still does not show in the Raspberry Pi Configuration.And executing "libcamera-hello" results in an error:QuoteThe result of "vcgencmd get_camera" is:QuoteI'm at a loss since I've never used RPi before and have limited Linux experience.EDIT: Changed thread title to be more appropriate.

author: MikeK
author_rank: Super Contributor
timestamp: May 05, 2023, 09:03:31 pm
content: Got it work, but not sure exactly what fixed it. I had made some changes and then disabled Legacy Camera and I2C in raspi-config and libcamera-hello works now with a brief window showing the camera view...even though vcgencmd get_camera now returns all zeros.

author: MikeK
author_rank: Super Contributor
timestamp: May 06, 2023, 12:42:19 pm
content: No, not a connection issue.I don't think it's been made clear how to do this, since RPi has officially deprecated the original camera. My understand, now, is that the latest RPi OS (which I am using) sort of already supports the original camera...but I had to add one line to the config file. This allowed use via the libcamera package. The older raspistill (?) package won't work. In order to get that older package to work I have to enable the camera via raspi-config. And that, of course, will make the libcamera package not work. It's frustrating. I'm thinking about downgrading to the Buster OS.

author: Dave T
author_rank: Newbie
timestamp: May 08, 2023, 02:14:53 am
content: Hi MikeK,I am currently having the same issue as you and tried to edit the config.txt but now I was getting supported=1 detected=1 libcamera interfaces=0, but now am getting supported=0 detected=0 libcamera interfaces=0.Could you advise me on what you changed in config.txt or could you send through your config.txt code.It would help me a lot... feeling the same frustration I assume you were.Thanks,Dave

author: MikeK
author_rank: Super Contributor
timestamp: May 08, 2023, 01:07:54 pm
content: Quote from: Dave T on May 08, 2023, 02:14:53 amI looked through it just now, and I think these are all of the changes I made:* In raspi-config, disable Legacy Camera in Interface Options* In raspi-config, enable Glamor in Advanced Options* In config.txt, I added "camera_auto_detect=1"* Reboot* Use libcamera only, raspistill won't workAs mentioned, the raspberry pi forums are probably a source of better help than here. I also don't recommend the raspberry pi Stack Exchange.Hope this helps,Mike
ATMEGA328(Arduino Nano) Reset and Clock Control Register(RCC) - Page 1
Forum section: electronics / general

author: elefurtronik
author_rank: Regular Contributor
timestamp: May 08, 2023, 10:35:24 am
content: Hello,Does anyone know STM32 RCC naming for ATMEGA328. Is there any table to compara STM32 register names with ATMEGA328 chip's registers?

author: Siwastaja
author_rank: Super Contributor
timestamp: May 08, 2023, 10:42:48 am
content: No, there is nothing in common and little similarity. In ATMEGA328, peripherals are enabled simply by their own enable bits, no extra layer of enable bits like in STM32's RCC. Refer to the ATMEGA328 datasheet, it isn't that long.

author: westfw
author_rank: Super Contributor
timestamp: May 10, 2023, 02:40:08 am
content: QuoteNot QUITE true. There's a power-control register (PRR - the Power Reduction Register - See Section 10 in the datasheet) that permits you to turn off clock/power to some of the peripherals. However, the default is that they are all turned on, and you only turn them off when you want your application to run at particularly low-power.
[Stm32 Cube IDE] Programming without debugging? - Page 1
Forum section: electronics / general

author: kgavionics
author_rank: Regular Contributor
timestamp: May 03, 2023, 07:38:50 pm
content: Hello guysI just switched from Keil uvision to STM32 CUBE IDE which has a simple option to program the MCU in very fast way , without debugging as opposed to Cube which launch a debugging session that takes about 1 min before it uploads the hex file to the MCU. .My question: Is there any option to for uploading the hex file without debugging in Stm32 Cube?TIA

author: langwadt
author_rank: Super Contributor
timestamp: May 03, 2023, 08:01:29 pm
content: 1 minute?

author: DavidAlfa
author_rank: Super Contributor
timestamp: May 03, 2023, 10:02:25 pm
content: Use "run" instead debug?

author: Siwastaja
author_rank: Super Contributor
timestamp: May 04, 2023, 05:09:18 am
content: Install openocd, run from command line, takes only seconds (although understanding how to use it would take a few hours first).

author: nctnico
author_rank: Super Contributor
timestamp: May 04, 2023, 11:29:36 am
content: Quote from: kgavionics on May 03, 2023, 07:38:50 pmDisable auto-build before starting a run / debugging session. You can find this in the run / debug configuration setting.
Looking for MACHXL 2.1 (free version) - Page 1
Forum section: electronics / general

author: swkim
author_rank: Newbie
timestamp: December 30, 2022, 02:51:29 am
content: Does anybody have this DOS software?I've searched Google, Bing, etc. only to find that this does not exist anymore on the Internet.MACHXL 2.1 is very similar to PALASM 1.5 (available on the Internet) but supported devices are slightly different.I've got several old MACH211 chips which are supported on MACHXL 2.1 but not on PALASM 1.5.Thanks in advance.

author: ale500
author_rank: Frequent Contributor
timestamp: December 30, 2022, 07:22:49 am
content: Did you try this already ?:https://archive.org/details/1998-minc-pldesigner-plsyn-unix-winthere is also a user guide there.

author: swkim
author_rank: Newbie
timestamp: December 30, 2022, 08:25:39 am
content: Thank you so much. It really solved my problem.The software in the included link actually works and exceeds my expectations.Be happy in 2023 too!

author: urbite
author_rank: Newbie
timestamp: May 17, 2023, 07:02:43 pm
content: How did you get past the licensing?When I tried to build I got the following license-related messages (see attached screen cap).
How to set up clock in STM32CUbe V6.8.1 to 480Mhz for STM32H750XBH6 - Page 1
Forum section: electronics / general

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: May 01, 2023, 01:11:55 pm
content: HiI have upgraded my STMCUBE to the latest version of 6.8.1 and am Using STM32H750XBH6 part, when I try to config the CPU clock to 480Mhz, it raises many error flags and would not allow it (also the Resolve clock Issues Button can not fix it), Note my Device is version Y and I could do it easily in 6.6.1 version.I want to use the stm32cube_fw_h7_v1110 package, so I need to upgrade the CUbe, is there any work around this?

author: mino-fm
author_rank: Regular Contributor
timestamp: May 02, 2023, 01:48:22 pm
content: Why don't you set up PLL manually?CubeMX generates "void SystemClock_Config(void)", where you can change "RCC_OscInitStruct.PLL.PLLN = 480;" as desired.For my applications I use my own setup where I can change HSE and other clocks anytime.

author: bugnate
author_rank: Regular Contributor
timestamp: May 02, 2023, 05:51:20 pm
content: I would not be tempted to ignore the error flags. No offense, but maybe it is right? Not that a bug would be a big surprise. Otherwise, best case, its complaining about a peripheral or something you aren't using and can simply turn it off, or you need to inform the tool of a few parameters.Actually I just loaded up a dummy project in a freshly updated CubeMX and took a look. I'm guessing your problem is that old rev. Y only supports going to 400 MHz and the tool is thus preventing you from overclocking. I guess there are still some Ys out there, it seemed to me they got out of the channel pretty quickly. I hope you didn't buy that new recently.But as the other poster said, if you want a workaround, find SystemClock_Config() and edit it directly. You will have to manually consider downstream effects on peripherals etc. No comment if its a good idea. Probably not, but I have modestly gone beyond clock spec in a pinch without issue (never in production) and I'm often surprised at how far they can go.EDIT: You can change to rev V in the RCC component and that will let you play around with the clocks at 480 MHz, but I would not generate any code with this setting unless you are being very careful of other side effects.

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: May 03, 2023, 07:43:40 am
content: Thank for the feedbacks.QuoteI have bought the chips 2 months a go! Stupid ST if they where not capable of 480Mhz, why in the older versions of the cube let it to that clock, and why now limiting it, I think for now I should do a manual override.