Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 00:18 22 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CSUB docs for CMM2

Author Message
William Leue
Guru

Joined: 03/07/2020
Location: United States
Posts: 405
Posted: 07:19pm 14 Feb 2023
Copy link to clipboard 
Print this post

I can't seem to find any details on how to make a CSUB for the CMM2. Unfortunately, the Search function on the forum only seems to run from the most recent posts and then backwards in time, and never gets to older posts.

I am hoping there is a doc or docs by Peter that give some details. My questions are:

1. What tools need to be used to compile (and link?) a C source file? I assume probably gcc, but certainly with some compilation options.

2. Can I pass a 2D array and work on it in the C function using **? I am guessing this might be hard.

Thanks!
-Bill
 
twofingers

Guru

Joined: 02/06/2014
Location: Germany
Posts: 1682
Posted: 07:23pm 14 Feb 2023
Copy link to clipboard 
Print this post

  William Leue said  I can't seem to find any details on how to make a CSUB for the CMM2. Unfortunately, the Search function on the forum only seems to run from the most recent posts and then backwards in time, and never gets to older posts.


https://www.thebackshed.com/forum/ViewTopic.php?TID=12289&P=1

Regards
Michael
causality ≠ correlation ≠ coincidence
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10632
Posted: 07:34pm 14 Feb 2023
Copy link to clipboard 
Print this post

  Quote  2. Can I pass a 2D array and work on it in the C function using **? I am guessing this might be hard.


No. Look at the source of some of the routines in MATHS.c for how to handle 2D arrays (They aren't really 2D). The PicoMite github code is identical to the CMM2 for this
 
William Leue
Guru

Joined: 03/07/2020
Location: United States
Posts: 405
Posted: 07:36pm 14 Feb 2023
Copy link to clipboard 
Print this post

Thanks, Michael and Peter!

-Bill
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025