Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

LIBRARIES ARDUINO in BASCOM AVR ???

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-ARDUINO
View previous topic :: View next topic  
Author Message
yantel37

Bascom Member



Joined: 24 May 2009
Posts: 5

spain.gif
PostPosted: Sun Aug 18, 2019 11:13 am    Post subject: LIBRARIES ARDUINO in BASCOM AVR ??? Reply with quote

Hello,
I am implementing some I2C sensors in BASCOM AVR. There are many libraries in Arduino for the new sensors (VEML6075, MLX90614, MAX44009, BMP280 ...). Anyone know if there is any way to use Arduino libraries in Bascom AVR ?. It would greatly increase the chances of implementing these devices in Bascom.
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 6198
Location: Holland

blank.gif
PostPosted: Sun Aug 18, 2019 12:33 pm    Post subject: Reply with quote

no. that is not possible. you should know that after 11 years Laughing
you can however look into the code to see if there is something specific. but in my experience, it is better to read the PDF and understand the nature of the device.

_________________
Mark
Back to top
View user's profile Visit poster's website
yantel37

Bascom Member



Joined: 24 May 2009
Posts: 5

spain.gif
PostPosted: Sun Aug 18, 2019 7:26 pm    Post subject: Reply with quote

Hi albertsm:
In my town (Málaga), they say: "In this life everything is fixed except death" Smile
My scarce knowledge is some electronics and nothing assembler. However, I know there are "disassembler" programs:
https://www.avrfreaks.net/forum/how-can-i-disassemble-hex-file?skey=reavr%20de%20johannes%20assenbaum.
I have done some test by putting the following instruction in Windows PowerShell: "E: \ 1>. \ Avr-objdump.exe -m avr -D test.hex"
where test.hex is an elementary program compiled with Arduino.
The result has been very summarized and shortened:
test.hex: file format ihex
Disassembly of section .sec1:
00000000 <.sec1>:
   0: 0c 94 5c 00 jmp 0xb8; 0xb8
   4: 0c 94 6e 00 jmp 0xdc; 0xdc
   8: 0c 94 6e 00 jmp 0xdc; 0xdc
........ etc etc....
In the same folder E: \ 1> I have placed the files "avr-objdump.exe" of Atmel Studio 7 and Test.hex ...
I think that using reverse engineering Arduino libraries could be obtained. But as I said earlier I don't know how to program assembler.
And this could open many new possibilities to Bascom AVR.
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-ARDUINO All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum