Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.arch.embedded > #29406

Re: Missing volatile qualifiers in MCU vendor header files?

From Tauno Voipio <tauno.voipio@notused.fi.invalid>
Newsgroups comp.arch.embedded
Subject Re: Missing volatile qualifiers in MCU vendor header files?
Date 2020-04-08 20:19 +0300
Organization A noiseless patient Spider
Message-ID <r6l12a$sin$1@dont-email.me> (permalink)
References <dd63bec2-08e0-4ff3-bc9a-ea94a7a53c01@googlegroups.com> <r6ekbu$rsr$1@dont-email.me> <c7dbbd9e-631d-4352-b2c7-470df2e2e9c2@googlegroups.com> <r6kl9f$n0t$1@gioia.aioe.org>

Show all headers | View raw


On 8.4.20 16:58, Chris wrote:
> On 04/06/20 15:14, Dave Nadler wrote:
>> On Monday, April 6, 2020 at 3:05:47 AM UTC-4, Tauno Voipio wrote:
>>> Just stay away from the hardware guys' software, write your own.
>>
>> Yup, I had to write my own drivers for ST DMA, timer, SPI.
>>
>> But it gets quite impractical to write one's own drivers for every
>> ethernet and USB peripheral set etc... And lots of the vendor
>> stuff absolutely does not work (ST for example).
>>
>> Now if I could only figure out why my release build works,
>> but not the debug build (reverse of the usual puzzle!)...
>> Off to check the timing on the scope!
> 
> Always write separate header files for the cpu and each of the on chip
> peripherals as a first task for every new processor. It's a good
> way to get a top level overview of the machine and capabilities.
> 
> Had a look at the ST code examples and their obscure header file
> mess for cortex years ago. Our way or the highway and unusable
> as presented. Code examples were rubbish as well. May be better
> now, but still useless if you have a house standard for form and 
> function...


At least Atmel and ST made the mistake by attempting to
cover all the processors types with one set of sources.

This led to a sorry mess of conditional code, which is
undecipherable even for a seasoned programmer. (me:
over 50 years of embedded code).

-- 

-TV

Back to comp.arch.embedded | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Missing volatile qualifiers in MCU vendor header files? Dave Nadler <drn@nadler.com> - 2020-04-05 15:00 -0700
  Re: Missing volatile qualifiers in MCU vendor header files? Tilmann Reh <usenet2007nospam@autometer.de> - 2020-04-06 08:29 +0200
    Re: Missing volatile qualifiers in MCU vendor header files? Dave Nadler <drn@nadler.com> - 2020-04-06 06:54 -0700
      Re: Missing volatile qualifiers in MCU vendor header files? Dave Nadler <drn@nadler.com> - 2020-04-06 14:36 -0700
        Re: Missing volatile qualifiers in MCU vendor header files? David Brown <david.brown@hesbynett.no> - 2020-04-07 00:09 +0200
          Re: Missing volatile qualifiers in MCU vendor header files? Dave Nadler <drn@nadler.com> - 2020-04-06 15:18 -0700
            Re: Missing volatile qualifiers in MCU vendor header files? David Brown <david.brown@hesbynett.no> - 2020-04-07 10:36 +0200
              Re: Missing volatile qualifiers in MCU vendor header files? Phil Martel <pomartel@comcast.net> - 2020-04-07 12:30 -0400
                Re: Missing volatile qualifiers in MCU vendor header files? Dave Nadler <drn@nadler.com> - 2020-04-07 09:36 -0700
              Re: Missing volatile qualifiers in MCU vendor header files? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2020-04-07 21:38 +0300
                Re: Missing volatile qualifiers in MCU vendor header files? Phil Martel <pomartel@comcast.net> - 2020-04-08 11:20 -0400
                Re: Missing volatile qualifiers in MCU vendor header files? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2020-04-08 20:15 +0300
  Re: Missing volatile qualifiers in MCU vendor header files? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2020-04-06 10:05 +0300
    Re: Missing volatile qualifiers in MCU vendor header files? Grant Edwards <invalid@invalid.invalid> - 2020-04-06 13:21 +0000
      Re: Missing volatile qualifiers in MCU vendor header files? upsidedown@downunder.com - 2020-04-06 16:31 +0300
    Re: Missing volatile qualifiers in MCU vendor header files? Dave Nadler <drn@nadler.com> - 2020-04-06 07:14 -0700
      Re: Missing volatile qualifiers in MCU vendor header files? Chris <xxx.syseng.yyy@gfsys.co.uk> - 2020-04-08 14:58 +0100
        Re: Missing volatile qualifiers in MCU vendor header files? Grant Edwards <invalid@invalid.invalid> - 2020-04-08 14:10 +0000
        Re: Missing volatile qualifiers in MCU vendor header files? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2020-04-08 20:19 +0300
          Re: Missing volatile qualifiers in MCU vendor header files? Stef <stef33d@yahooI-N-V-A-L-I-D.com.invalid> - 2020-04-10 16:27 +0200
        Re: Missing volatile qualifiers in MCU vendor header files? stephen@mpeforth.com (Stephen Pelc) - 2020-04-08 20:49 +0000
          Re: Missing volatile qualifiers in MCU vendor header files? Clifford Heath <no.spam@please.net> - 2020-04-09 09:39 +1000
            Re: Missing volatile qualifiers in MCU vendor header files? Dave Nadler <drn@nadler.com> - 2020-04-08 17:59 -0700
              Re: Missing volatile qualifiers in MCU vendor header files? Clifford Heath <no.spam@please.net> - 2020-04-09 11:40 +1000
            Re: Missing volatile qualifiers in MCU vendor header files? stephen@mpeforth.com (Stephen Pelc) - 2020-04-09 12:31 +0000
              Re: Missing volatile qualifiers in MCU vendor header files? Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2020-04-09 17:36 +0300
              Re: Missing volatile qualifiers in MCU vendor header files? Clifford Heath <no.spam@please.net> - 2020-04-10 10:23 +1000
              Re: Missing volatile qualifiers in MCU vendor header files? stephen@mpeforth.com (Stephen Pelc) - 2020-04-12 13:41 +0000

csiph-web