Click here to Skip to main content
15,887,585 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: WSO CCC OTD 2023-07-19 Pin
pkfox18-Jul-23 22:03
professionalpkfox18-Jul-23 22:03 
GeneralRe: WSO CCC OTD 2023-07-19 - we have a winner! Pin
OriginalGriff18-Jul-23 22:29
mveOriginalGriff18-Jul-23 22:29 
GeneralRe: WSO CCC OTD 2023-07-19 - we have a winner! Pin
pkfox18-Jul-23 22:31
professionalpkfox18-Jul-23 22:31 
GeneralRe: WSO CCC OTD 2023-07-19 - we have a winner! Pin
OriginalGriff18-Jul-23 22:56
mveOriginalGriff18-Jul-23 22:56 
GeneralRe: WSO CCC OTD 2023-07-19 - we have a winner! Pin
pkfox18-Jul-23 22:59
professionalpkfox18-Jul-23 22:59 
GeneralRe: WSO CCC OTD 2023-07-19 Pin
Peter_in_278018-Jul-23 22:14
professionalPeter_in_278018-Jul-23 22:14 
GeneralRe: WSO CCC OTD 2023-07-19 Pin
OriginalGriff18-Jul-23 22:30
mveOriginalGriff18-Jul-23 22:30 
GeneralNow I know what my work days are going to look like Pin
honey the codewitch18-Jul-23 18:29
mvahoney the codewitch18-Jul-23 18:29 
Unsure | :~
I spent a day working on a library to manipulate GPIOs on a STM32, using nothing but CMSIS. It was difficult because I'm not used to bare metal, but it works.

Then I spent a day working on a library to bit bang an i8080 bus because MCUFriend i8080 based LCDs on arduino shields use pins that the nucleo boards do not have attached to the FMC controller.

I failed miserably at that. Bodmer did too, so I don't feel as bad. It's a timing issue. the i8080 doesn't include a clock line, and the write strobes have to be timed in a particular fashion. His works hardcoded for my board specifically but it ONLY works when you hard code all the pins, and then batch the writes such that pins on the same port get written all at once. For me to be able to do that without hardcoding the pins would require some C++ metaprogramming magic that I don't know if I'm up for, if it's even possible.

I tried using Bodmer's library to do SPI to a similar display with the STM32 and it doesn't appear to work.

Maybe my wiring is wrong but I seriously doubt it at this point, especially given his general purpose i8080 STM32 code doesn't work either (at least on my board/for me)

I don't know if I'm up for trying to code an SPI driver for this until I can verify the wiring with some known good code. I have a path for that, but it involves using Arduino with the stupid thing to get a proof of life.

My life is now datasheets, old forum posts, and every flippin thing like this I can bookmark: STM32 GPIO registers cheatsheet · GitHub[^]

My life is register manipulation and bit twiddling.

My life is frustration, as it takes a significant amount of effort to do the smallest thing.

And all because all their frameworks are basically not up to my standards.

My standards are simple: I gave up VisualBASIC a long time ago, and bit part of the reason is I DON'T LIKE 'VISUAL' if it means I *must* work with it. To use Cube, you have to use their atrocious GUI editor to prepare a project, and configure your clocks and peripherals and such.

How about no. When I work, that kind of thing belongs in config.h as a bunch of #defines and things of that nature.

And if I can't work with it that way, that's a deal breaker.

STM32 was designed by engineers for engineers. I'm sure my hardware guys will love these things.

But holy hell. At least with the ESP32 I had the option to target one of two frameworks, and I could write code that targeted either/or pretty readily.

With STM32 you have a choice - framework agnostic or hardware agnostic, otherwise you are forking like 4 times to support every framework.

I refuse to set these boards up using a GUI. I refuse. That's what template parameters are for. Roll eyes | :rolleyes:

I told my little cohort that things are about 5x as difficult to do most anything hardware related now, and that this is our new reality.

Or really, my new reality, since I'm the one who codes the firmware.

The worst part is, I'm the one that was pushing us to move away from ESP32s.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx

GeneralRe: Now I know what my work days are going to look like Pin
BillWoodruff18-Jul-23 18:37
professionalBillWoodruff18-Jul-23 18:37 
GeneralRe: Now I know what my work days are going to look like Pin
honey the codewitch18-Jul-23 18:38
mvahoney the codewitch18-Jul-23 18:38 
GeneralRe: Now I know what my work days are going to look like Pin
Gerry Schmitz19-Jul-23 6:47
mveGerry Schmitz19-Jul-23 6:47 
GeneralRe: Now I know what my work days are going to look like Pin
Nelek19-Jul-23 11:17
protectorNelek19-Jul-23 11:17 
GeneralCTTOMRE (close to tomorrow's reality) Pin
BillWoodruff18-Jul-23 17:26
professionalBillWoodruff18-Jul-23 17:26 
GeneralRe: CTTOMRE (close to tomorrow's reality) Pin
Slacker00719-Jul-23 7:43
professionalSlacker00719-Jul-23 7:43 
GeneralRe: CTTOMRE (close to tomorrow's reality) Pin
BillWoodruff19-Jul-23 10:39
professionalBillWoodruff19-Jul-23 10:39 
JokeRe: CTTOMRE (close to tomorrow's reality) Pin
Jeremy Falcon19-Jul-23 11:24
professionalJeremy Falcon19-Jul-23 11:24 
GeneralRe: CTTOMRE (close to tomorrow's reality) Pin
BillWoodruff19-Jul-23 11:42
professionalBillWoodruff19-Jul-23 11:42 
GeneralRe: CTTOMRE (close to tomorrow's reality) Pin
Jeremy Falcon19-Jul-23 11:44
professionalJeremy Falcon19-Jul-23 11:44 
GeneralRe: CTTOMRE (close to tomorrow's reality) Pin
BillWoodruff19-Jul-23 13:28
professionalBillWoodruff19-Jul-23 13:28 
GeneralRe: CTTOMRE (close to tomorrow's reality) Pin
Jeremy Falcon19-Jul-23 15:00
professionalJeremy Falcon19-Jul-23 15:00 
GeneralRe: CTTOMRE (close to tomorrow's reality) Pin
BillWoodruff19-Jul-23 15:32
professionalBillWoodruff19-Jul-23 15:32 
GeneralRe: CTTOMRE (close to tomorrow's reality) Pin
Jeremy Falcon20-Jul-23 1:59
professionalJeremy Falcon20-Jul-23 1:59 
JokeRe: CTTOMRE (close to tomorrow's reality) Pin
Daniel Pfeffer19-Jul-23 21:05
professionalDaniel Pfeffer19-Jul-23 21:05 
GeneralWordle 760 Pin
StarNamer@work18-Jul-23 13:11
professionalStarNamer@work18-Jul-23 13:11 
GeneralRe: Wordle 760 Pin
Amarnath S18-Jul-23 14:12
professionalAmarnath S18-Jul-23 14:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.