|
Yeah, just straight C. I didn't want to deal with getting NXP's toolchain to host C++ libs and stuff. I know it can, but LVGL is C anyway.
I'm under NDA so I can't really share much. This is all R&D for a work project, but the code flow is actually pretty simple. The workflow is basically using MCUxpresso IDE.
It's all cooperatively threaded, with the exception of the core to core interaction, which is handled by an ersatz mutex and a simple message passing scheme based on shared memory.
The M7 runs in a simple master loop, processing a bunch of visualization data and sending it out to the LCD panels.
The M4 handles core logic of the app, and communication with the outside world via USB HID.
The M7 basically is a visualization engine. The M4 tells it what to display and the M7 displays it.
Despite the M7 being logically slaved to the master in terms of flow, it's actually technically the master, in that it's the one that boots initially and kicks everything off. The reason is that its part of the whole mess requires the most memory and flash resources, so to me it made sense to package the smaller payload (the M4 code) and inject *that* into memory, if that makes sense.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
modified 12-Mar-24 5:45am.
|
|
|
|
|
Is it one of these ?
ARM Cortex-M7
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Yes, indeed
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
Quote: 128KB
*cracks knuckles*
That's twice what I had when learning to code.
That's 128 times the RAM in my first computer! (ZX81)
|
|
|
|
|
I'd hate to try to host a USB device endpoint in 1KB.
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
But think of the bragging rights if you succeed!
|
|
|
|
|
Na, this [^] can be done with only 64kb (... and a bit of hw acceleration ... ), so 128kB should be more than enough
|
|
|
|
|
Wordle 997 4/6
β¬π¨β¬β¬π©
π¨β¬β¬β¬π©
π¨π¨π©β¬π©
π©π©π©π©π©
|
|
|
|
|
Wordle 997 4/6
β¬β¬π©β¬π©
β¬β¬π©β¬π©
π¨π¨π©β¬π©
π©π©π©π©π©
Same second to last guess?
modified 12-Mar-24 2:18am.
|
|
|
|
|
Wordle 997 4/6
β¬β¬β¬β¬β¬
β¬β¬π©β¬π©
β¬β¬π©β¬π©
π©π©π©π©π©
|
|
|
|
|
Wordle 997 3/6*
π¨β¬β¬β¬π©
β¬β¬π©β¬π©
π©π©π©π©π©
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Wordle 997 6/6
π¨β¬β¬π¨β¬
β¬β¬π¨π¨β¬
π¨β¬π©β¬π©
β¬π©π©β¬π©
β¬π©π©π©π©
π©π©π©π©π©
Just managed.
|
|
|
|
|
Wordle 997 6/6*
π¨β¬π¨β¬β¬
β¬β¬π©β¬π©
β¬β¬π©β¬π©
β¬β¬π©β¬π©
β¬π¨π©β¬π©
π©π©π©π©π©
Phew! Too many words with those 2 letters!
Happiness will never come to those who fail to appreciate what they already have. -Anon
And those who were seen dancing were thought to be insane by those who could not hear the music. -Frederick Nietzsche
|
|
|
|
|
β¬β¬π©β¬π©
β¬β¬β¬β¬β¬
β¬β¬π©β¬π©
π¨π¨π©β¬π©
β¬π©π©π©π©
π©π©π©π©π©
I still had two possibilities
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Wordle 997 5/6
β¬β¬β¬π¨β¬
π¨β¬β¬π©β¬
β¬π¨β¬π©β¬
β¬β¬π©π©π©
π©π©π©π©π©
Rules for the FOSW ![ ^]
MessageBox.Show(!string.IsNullOrWhiteSpace(_signature)
? $"This is my signature:{Environment.NewLine}{_signature}": "404-Signature not found");
|
|
|
|
|
Wordle 997 5/6
β¬β¬β¬β¬β¬
β¬π¨π¨β¬β¬
β¬β¬π©β¬π©
π©π©π©π©β¬
π©π©π©π©π©
I guess that second last guess looks weird, but I just wanted to cross off some letters and their locations and hadn't considered the solution to be a word
|
|
|
|
|
Wordle 997 4/6
π¨β¬β¬β¬β¬
β¬β¬π©β¬β¬
β¬π¨π©β¬π©
π©π©π©π©π©
Ok, I have had my coffee, so you can all come out now!
|
|
|
|
|
Wordle 997 3/6*
π¨β¬β¬β¬π©
β¬π¨π©β¬π©
π©π©π©π©π©
|
|
|
|
|
A few days ago, Code Witch expressed a rather low opinion of the Eclipse IDE. And someone commented that they think Visual Studio is very good.
Well I can say that I'm liking Visual Studio because I just moved a file from one folder to another by dragging it, and upon dropping the file, it asked me if I wanted it to adjust the namespaces for the classes inside the file!
Nothing could have been more appropriate or helpful at the time.
Viva La Visual Studio!
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Visual Studio is one of the main reasons that Windows is my primary when it comes to development.
Between that and the unfortunately named VS Code, Microsoft has absolutely nailed it when it comes to big ticket developer tools - specifically IDEs and editors.
There's a lot to dislike about Microsoft, but their dev tools have always been better than the rest of the industry. Fite me. (Their C++ compiler, not so much, but that's a different ball of wax)
Check out my IoT graphics library here:
https://honeythecodewitch.com/gfx
And my IoT UI/User Experience library here:
https://honeythecodewitch.com/uix
|
|
|
|
|
honey the codewitch wrote: Their C++ compiler, not so much, but that's a different ball of wax I have PTSD from my MS-DOS days and the whimsical changes the Microsoft C 6.0 'Optimizing' compiler would make in handling values marked as volatile . The final solution was to turn optimization completely off, optimize by hand where able, re-code in assembly language where necessary, and benchmark the out of it during the process.
Software Zen: delete this;
|
|
|
|
|
And the optimizer wasn't very good, in the first place. The 80(2)86 instruction set had too many special cases for the MS compiler optimizer to handle properly. Only with the more orthogonal 80386 instruction set did MS's optimizer start doing a good job.
It was not unusual in those days to take C code, recode the same algorithm in x86 Assembly Language, and get 1-2 orders of magnitude better performance.
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Daniel Pfeffer wrote: The 80(2)86 instruction set had too many special cases for the MS compiler optimizer to handle properly. Only with the more orthogonal 80386 instruction set did MS's optimizer start doing a good job. I never knew that, 30 years ago working on this stuff .
Software Zen: delete this;
|
|
|
|
|
honey the codewitch wrote: Visual Studio is one of the main reasons that Windows is my primary when it comes to development. I'd go as far as to saying Visual Studio is one of the main reasons why Windows is still alive and kicking today.
What makes Windows survive is not the OS itself, but the gazillion of applications covering every imaginable field. MS makes only a tiny little fraction of this software. But they make Visual Studio, enabling millions of software developers to create programs. The essential aspect: With VS, you can develop software without being a full time geek, you can be a part time programmer and part time domain expert, in the application domain. So you know what the needs are, the problems, the work patterns, the terminology. Your coworkers feel at home in your solutions. And you eat your own dog food.
You see the same with other major operating system - in a single application domain: Software development. The geeks know the needs, problems, work patterns and terminology of software geeks. So they embrace the geeky development tools. Users in other domains do not.
We pay the price by having to accept that solutions are made with Visual Basic rather than as regex-es. That file names contain spaces and non-ascii characters, rather than teaching users six different ways to quote or escape non-ASCII characters.
We, the true software developers, have lost our hegemony to people who don't know what is meant by closure or lambda expressions, but who know the issues handled by the real end users of the software, programming their Visual Basic according to that. We may lament the deterioration of advanced programming techniques (and shift to a different OS and development environment), but if you want computers to save the world, you far more need people to understand the world than people who completely understands lambdas, closures, virtual functions and multiple inheritance.
Religious freedom is the freedom to say that two plus two make five.
|
|
|
|
|
trΓΈnderen wrote: I'd go as far as to saying Visual Studio is one of the main reasons why Windows is still alive and kicking today.
In the dev community yes, for the more general audience, I consider two major reasons for it's popularity.
1. PC gaming support.
2. It being hardware agnostic, allowing people to build relatively economical machines hence making it more accessible.
|
|
|
|