Dear Chupo_cro,
compilation with code:blocks is a little bit tricky
Firstly you have to setup correctly the C:B project and compile in advance also vlib libraries (for simplification of this process I added already pre-compiled libraries). Below you can see my C:B settings for successful compilation.
I have win7 x64, CodeBlocks 20.03, GNU GCC compiler I have TDM-GCC-32 version 5.1.0 (I do not tested it with different compiler version, but in general it must be OK with newer version too)
So you can try to compile it by yourself. If you face any issues feel free to report it
Good luck.
Yours sincerely
sonix
My C:B project setup:
Copy vlib libraries v1.25 (attached) into v\lib\:
libVdbg.a
libVrel.a
Add source files into code:blocks project (if missing, there is compilation error):
linuxsysfsint.cpp
linuxsysfsint.h
********************************
[PonyProg2000 Compiler settings]
********************************
Other options:
-fpermissive -Wno-deprecated -Wno-write-strings
#Defines:
_WINDOWS
********************************
[Debug Compiler settings]
********************************
#Defines:
vDEBUG
********************************
[PonyProg2000 Linker settings]
********************************
-static-libgcc
-static-libstdc++
OR
********************************
[PonyProg2000 Compiler settings / Compiler flags]
********************************
Static libgcc
Static libstdc++
********************************
[Debug Linker settings]
********************************
Other linker options:
-lVdbg
-linpoutx64
-lmingw32
-lwinmm
-lcomctl32
********************************
[Release Linker settings]
********************************
Other linker options:
-lVrel
-linpoutx64
-lmingw32
-lwinmm
-lcomctl32
********************************
[PonyProg2000 Search directories]
********************************
Compiler:
v\includew
Linker:
.
v\lib
InpOutLib/x64
chupo_cro Wrote:
-------------------------------------------------------
> sonix Wrote:
> --------------------------------------------------
> -----
> > Dear Chupo_cro,
> >
> > I have recompiled new source files from
> github
> > with PonyProg 208e and added new signature
> bytes
> > for recognition of ATmega328PB processors too.
> So
> > if your atmega has signature bytes 0x1e, 0x95,
> > 0x16 (this bytes are shown by PonyProg if
> unknown
> > device is detected) it must be now functional
> > without any warning. I do not have this atmega
> > version available therefore I can not test it
> by
> > myself. Attached is new executable file for
> > windows.
> >
> > Yours sincerely
> > sonix
>
> Hi sonix,
>
> this was really a surprise because I didn't notice
> Claudio's reply up until the last night and today
> when I returned here to send him a reply I saw his
> post isn't the last one. In the first second I
> thought your old post from a few years ago somehow
> "jumped" to the bottom but then I realized you
> replied just in between my last night's visit and
> now :-))
>
> Thank you very much for enabling programming of
> ATmega328PB :-) If I understand correctly what you
> have done this time is - since you don't have the
> ATmega328PB to read its signature, you added to
> the list of known devices the signature which has
> the meaning "unknown device"? Does that mean it is
> now anymore not possible to get the "unknown
> device" error? For example, if in the future there
> will be ATmega328PC or some other ATmega328
> microcontroller - PonyProg RG101i will work
> without adding the new signature?
>
> I will notify you about the results as soon as I
> chech if it works.
>
> In the meantime, may I ask you for the help with
> compiling the PonyProg? As I said in my reply to
> Claudio, I for some reason couldn't find the
> PonyProg source code until Claudio repied with the
> link and now that I have it I tried to compile it
> using Code::Blocks on Windows 10. First I had to
> remove:
>
> -std=c++ox
>
> because of _stricmp error. Then I had to add path
> to inpout32.dll to the linker search path and now
> the last thing would be to compile the v but I got
> an error:
>
> mingw32-make.exe" -f Makefile.win
> 'uname' is not recognized as an internal or
> external command,
> operable program or batch file.
> The system cannot find the path specified.
> The system cannot find the path specified.
> i686-w64-mingw32-g++ -D_WINDOWS -O2 -fpermissive
> -Wno-write-strings -Iincludew -c -o objwin/vapp.o
> srcwin/vapp.cpp
> process_begin: CreateProcess(NULL,
> i686-w64-mingw32-g++ -D_WINDOWS -O2 -fpermissive
> -Wno-write-strings -Iincludew -c -o objwin/vapp.o
> srcwin/vapp.cpp, ...) failed.
> make (e=2): The system cannot find the file
> specified.
> Makefile.win:176: recipe for target
> 'objwin/vapp.o' failed
> mingw32-make: *** Error 2
>
> and how to compile it to get v.dll
>
> uname is Linux command but then Makefile.win is
> for Windows so I don't know where is the problem.
> I triend using nmake from Visual Studio but that
> didn't work either.
>
> BTW, these are ATmega328PB:
>
> https://www.aliexpress.com/item/32828478049.html
>
> You can see the labels when you zoom the pictures,
> the description is wrong. I ordered these from the
> same seller before and I got normal ATmega328s but
> now they changed it with ATmega328PB and I didn't
> notice it until I tried to program them with
> PonyProg.
>
> Thank you again
> Best regards