EmbeddedRelated.com

vadim barshaw (@VadimB)


Re: how to start work on bldc motor control

Reply posted 9 months ago (07/24/2023)
Click here

Re: USB communication

Reply posted 10 months ago (06/06/2023)
If you insist on using a separate USB-CAN adapter (rather then on-chip CAN controller) I would recommend https://esd.eu/produkte/can-usb-2 or https://www.peak-system.com/PCAN-USB.199.0.htmlThey...

Re: Peripherals use (QSPI, Ethernet, SPI)

Reply posted 11 months ago (05/30/2023)
The first hit of google search points straight to the corresponding page of Renesas web site. This page says: "There is also a 440-pin expansion port that enables...

Re: MPS430 F_CPU undefined error on compilation

Reply posted 1 year ago (03/02/2023)
You can generate preprocessor output to check what source the compiler tries to compile and where the problem is. I never used msp430 tools, only Sitara MCUs with...

Re: MPS430 F_CPU undefined error on compilation

Reply posted 1 year ago (03/02/2023)
It's MSP430, not MPS430.1. Where and how is the symbol F_CPU defined?2. Where and how is the symbol DC0CTL defined? There are two symbols, DC0CTL and DCOCTL.3. Are...

Re: FAT32 SD card support in Embedded Systems

Reply posted 1 year ago (02/21/2023)
> It's not a Windows limitation.It is essentially Windows limitation that it can not format 64GB card to 8GB FAT32 card.

Re: FAT32 SD card support in Embedded Systems

Reply posted 1 year ago (02/21/2023)
I wouldn't rely on MS as your trusted long-term partner in the world of embedded development. Nothing can stop them from dropping support of any FAT altogether in...

Re: FAT32 SD card support in Embedded Systems

Reply posted 1 year ago (02/21/2023)
Can your customer with 64GB card (or 512GB in two years time) format it to 2GB (or less) with FAT32?
In the current state, I don't see how you program can even be built. You declare static functions but don't define them. The linker should scream.
You don't even need memcpy and sizeof. The following will do it for you:#include ...void main (void){    WrkSettings = DefSettings;}Advantage: just one line of...
Can you try it this way:Settings DefSettings = {    .vds = {        .vdMagicNum    = 0x42,        .vdVersionNum  = 0x11,        .vdTime       ...
The first error (well, the second) I get with arm-none-eabi-gcc is: init.c:24:1: error: unknown type name 'Settings'; use 'union' keyword to refer to the type  ...
Have a look at gcc-arm-none-eabi. I've got the following V5TE-related files:~/bin/gcc-arm-none-eabi-9-2020-q2-update/lib/gcc/arm-none-eabi/9.3.1/arm/v5te/hard/crtn.o~/bin/gcc-arm-none-eabi-9-2020-q2-update/lib/gcc/arm-none-eabi/9.3.1/arm/v5te/hard/crtfastmath.o~/bin/gcc-arm-none-eabi-9-2020-q2-update/lib/gcc/arm-none-eabi/9.3.1/arm/v5te/hard/crtend.o~/bin/gcc-arm-none-eabi-9-2020-q2-update/lib/gcc/arm-none-eabi/9.3.1/arm/v5te/hard/crti.o~/bin/gcc-arm-none-eabi-9-2020-q2-update/lib/gcc/arm-none-eabi/9.3.1/arm/v5te/hard/crtbegin.o~/bin/gcc-arm-none-eabi-9-2020-q2-update/lib/gcc/arm-none-eabi/9.3.1/arm/v5te/softfp/crtn.o~/bin/gcc-arm-none-eabi-9-2020-q2-update/lib/gcc/arm-none-eabi/9.3.1/arm/v5te/softfp/crtfastmath.o~/bin/gcc-arm-none-eabi-9-2020-q2-update/lib/gcc/arm-none-eabi/9.3.1/arm/v5te/softfp/crtend.o~/bin/gcc-arm-none-eabi-9-2020-q2-update/lib/gcc/arm-none-eabi/9.3.1/arm/v5te/softfp/crti.o~/bin/gcc-arm-none-eabi-9-2020-q2-update/lib/gcc/arm-none-eabi/9.3.1/arm/v5te/softfp/crtbegin.o~/bin/gcc-arm-none-eabi-9-2020-q2-update/arm-none-eabi/lib/arm/v5te/hard/crt0.o~/bin/gcc-arm-none-eabi-9-2020-q2-update/arm-none-eabi/lib/arm/v5te/softfp/crt0.oEDIT:...
There is no need to reinvent the wheel (device drivers) time after time. You would be more interested in the bio-logic of your device, rather then in fiddling with...

Re: Improvement in Software design

Reply posted 4 years ago (05/05/2020)
Ask your team a few questions:struct2 is declared global, while struct1 is accessed via the pointer. Why this way and not vice versa?Imagine, you've got 17 data...

Re: Improvement in Software design

Reply posted 4 years ago (05/05/2020)
1. Your code example will not compile.2. You are passing an address of a global structure. Ok, modify whatever you need via the pointer, and return nothing from...
> This is a 3-core processor and an array is set up in a shared memory.Then, there should be a mailbox structure of some sort for inter-core communication, and...

Use this form to contact VadimB

Before you can contact a member of the *Related Sites:

  • You must be logged in (register here)
  • You must confirm you email address