Post Reply 
(50G) [HPGCC3] DRAW3DMATRIX replacement with grayscale surfaces, proof of concept
12-27-2017, 11:42 PM
Post: #12
RE: (50G) [HPGCC3] DRAW3DMATRIX replacement with grayscale surfaces, proof of concept
Thanks very much for you time and detailed explanation. I had to add the --binary switch to the patch command as in
patch -p1 -i tools_patch.txt --binary.
I altered the helloworld example to read
/*
* hellofix.c
*
* Created on: Dec 27, 2017
* Author: murray
*/
#include <hpgcc3.h>
/* workaround for ROM globals placed at the start of the .data / .bss area; we need to shift out own variables past them */
__attribute__((section(".romglobals"))) int __ROMglobals__[20]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};

int main()
{

printf("Hello world!\n");
getchar();
return 0;
}
Unfortunately my setup is still showing the same behaviour - that is something almost recognizable as Hello World! on the screen followed by a hang. Graph3D still works though...
I don't know if it makes any difference but I've tried the build on Ubuntu 12.04, 14.04 and 16.04 (where the arm-none-eabi-gcc version is arm-none-eabi-gcc (15:4.9.3+svn231177-1) 4.9.3 20150529 (prerelease), with various other versions on the other two systems.
I don't want to be a pest, but if you can think of anything else to try, I'd be keen to hear. I've spent a few late nights on this so far - I started down this track because HPGCC SP2 has a problem with sscanf and I want to read flat files...
Best Regards and thanks again
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: (50G) [HPGCC3] DRAW3DMATRIX replacement with grayscale surfaces, proof of concept - Murray - 12-27-2017 11:42 PM



User(s) browsing this thread: 1 Guest(s)