Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 17:17 19 Jun 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 : AI research project for this month

     Page 4 of 4    
Author Message
stef123
Regular Member

Joined: 25/09/2024
Location: United Kingdom
Posts: 89
Posted: 09:57am 27 May 2025
Copy link to clipboard 
Print this post

Thats another and huge Problem with LLMs. If there isn't a large code base with which to train an LLM, it can't respond to that code.

The best thing to do, in principle, would be to invent a specific LLM code, which would then be run locally through an interpreter or cross-compiler - instead of putting the cart before the horse.

Recently i also ran into a problem which my LLMs couldn´t solve. I understand C++ and so by that Arduino Code - up to a certain point, but i don't like to write it because of the finicky upper/lowercase Syntax and other weird constructions. Props to the People who write it with joy, i would go crazy. So i am somehow a noob in this field -  no problem for me , on the other hand i can write for example ARM-Assembly which in turn some others can't.


So in Arduino i was trying to put together a string including decimals and floats from uint8_t and float variables, by using snprintf , which eventually exits an STM32 on one of its serial ports. It sucessfully printed out the chars and also decimals, but no floats, LLMs were thinking here and there, coming up with crazy solutions, but nothing usable. I was already at the point where i was about to give up, because it didn't make any sense anymore.

The final Solution was simple: The Problem was the Library i've used, newlib-nano, which doesn't fully include handling of floats in order to keep the code small (if 4K counts on a 128K Micro).

So the LLMs - which i previously told on which Micro i am and which Platform i was using - could -in theory- easily figure out that this could be related to a wrong library. but didn´t get it. If i could ask an LLM -directly- if a wrong library could be the issue, then they would deliver the correct answer: Float is disabled by default - or use dtostrf.

Thats a key problem: In theory they "know" the answer, but don´t get the link, because nobody told them to create a Link between A and B, neither by hand, or by training data.
Edited 2025-05-30 14:47 by stef123
 
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3339
Posted: 10:57pm 04 Jun 2025
Copy link to clipboard 
Print this post

"AI-generated code could expand the pool from 30 million to a billion developers, unlocking personalised software everywhere."

Exponential View
PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed
 
     Page 4 of 4    
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