Search found 35 matches

by goran.mahovlic
Sun Jul 23, 2017 1:41 pm
Forum: Projects
Topic: Sword playing recorded sound when used
Replies: 0
Views: 117

Sword playing recorded sound when used

DSCF9858_640.JPG
DSCF9858_640.JPG (92.58 KiB) Viewed 117 times
DSCF9856_640.jpg
DSCF9856_640.jpg (119.4 KiB) Viewed 117 times
by goran.mahovlic
Sat Jul 22, 2017 8:51 am
Forum: Builds and Announcements
Topic: Combined bootloader and sketch
Replies: 7
Views: 423

Re: Combined bootloader and sketch

Great, I do now know on windows, but on linux we can use cat for combining two files. http://community.silabs.com/t5/Simplicity-Studio-and-Software/How-can-I-combine-two-elf-files/td-p/127640 objcopy foo.elf -O ihex foo.hex objcopy bar.elf -O ihex bar.hex cat foo.hex bar.hex >combined.hex objcopy -I...
by goran.mahovlic
Fri Jul 21, 2017 6:18 pm
Forum: General discussion
Topic: [SOLVED] Example for read/write 24AA02 eeprom
Replies: 9
Views: 409

Re: Example for read/write 24AA02 eeprom

Ok, remap was just enough ...
But I added some problems with raspberry serial while working on something else.
So now I have two serial port working ;)
working.png
working.png (149.83 KiB) Viewed 296 times
by goran.mahovlic
Thu Jul 20, 2017 4:42 pm
Forum: General discussion
Topic: [SOLVED] Example for read/write 24AA02 eeprom
Replies: 9
Views: 409

Re: Example for read/write 24AA02 eeprom

ok getting somewhere in board.cpp I have added void boardInit(void) { afio_remap(AFIO_REMAP_USART1); // remap Serial1(USART1)PB6/PB7 } and got something on serial - so I assume I need to setup some timer while printing on Serial I have large delay and broken data ... something.png on other serial I ...
by goran.mahovlic
Mon Jul 17, 2017 7:21 pm
Forum: New users MUST post here first, and let us know a bit about you and your projects
Topic: Hello from Croatia
Replies: 10
Views: 539

Re: Hello from Croatia

But I think he is using this code https://github.com/jcarvalhogo/grbl_usb_stm32F103c8t6 So it is already ported And probably need to fix just serial port (I see that USB serial is not on same pins) And at first look at code it seams they are using EEPROM emulation http://www.st.com/content/ccc/resou...
by goran.mahovlic
Mon Jul 17, 2017 7:08 pm
Forum: General discussion
Topic: [SOLVED] Example for read/write 24AA02 eeprom
Replies: 9
Views: 409

Re: Example for read/write 24AA02 eeprom

Got it working I connected usb-serial adapter to serial1, and got serial working. Tried HardWire but does not work (probably on bad pins) With Wire (changed pins in Wire.h) and got devices on bus Scanning... I2C device found at address 0x50 I2C device found at address 0x51 I2C device found at addres...
by goran.mahovlic
Sun Jul 16, 2017 8:57 pm
Forum: General discussion
Topic: [SOLVED] Example for read/write 24AA02 eeprom
Replies: 9
Views: 409

Re: Example for read/write 24AA02 eeprom

I did try exactly that I2C scanner and did not get any answer from eeprom just . .................................................................................................................. will try tomorrow with arduino and some other serial... I just tried to make std code for reading eeprom...
by goran.mahovlic
Sun Jul 16, 2017 4:23 pm
Forum: General discussion
Topic: [SOLVED] Example for read/write 24AA02 eeprom
Replies: 9
Views: 409

Re: Example for read/write 24AA02 eeprom

Ok I manage to get blink led from arduino working.
But I need to redefine serial to PB6 PB7 (I have those pins connected to rasp serial)
How can I do that in board.cpp I have this
{&gpiob, &timer4, NULL, 6, 1, ADCx}, /* PB6 */
{&gpiob, &timer4, NULL, 7, 2, ADCx}, /* PB7 */
by goran.mahovlic
Sun Jul 16, 2017 3:43 pm
Forum: General discussion
Topic: [SOLVED] Example for read/write 24AA02 eeprom
Replies: 9
Views: 409

Re: Example for read/write 24AA02 eeprom

I could try this sample in arduino, but I last time I had some problems with this chip and arduino support ... So now I am using cubeMX and for now all serial are working and interrupts, but did not manage to get I2C to work. It would be great if I manage to get arduino on this board cause then I al...
by goran.mahovlic
Sun Jul 16, 2017 11:50 am
Forum: General discussion
Topic: [SOLVED] Example for read/write 24AA02 eeprom
Replies: 9
Views: 409

Re: Example for read/write 24AA02 eeprom

It hangs here
EEPROM_ReadWriteFailed.png
EEPROM_ReadWriteFailed.png (110.64 KiB) Viewed 405 times
Sample for I2C scan would help if someone have it?