Search found 335 matches

by Vassilis
Mon Feb 19, 2018 9:32 am
Forum: Libraries & Hardware
Topic: ENC28J60 +php crash on stm32f103ve
Replies: 10
Views: 184

Re: ENC28J60 +php crash on stm32f103ve

I will try to give you another one basic code example. The new example uses a new buffer (buf) with 2048 bytes length. The received bytes are copied to the new buffer. If the <tail> variable is bigger that 0, you can read the received bytes. As I said before, this is a very basic code example and ca...
by Vassilis
Wed Feb 14, 2018 5:52 pm
Forum: Libraries & Hardware
Topic: ENC28J60 +php crash on stm32f103ve
Replies: 10
Views: 184

Re: ENC28J60 +php crash on stm32f103ve

#include <SPI.h> #include <EtherCard_STM.h> // ethernet interface mac address, must be unique on the LAN static byte mymac[] = { 0x74,0x69,0x69,0x2D,0x30,0x31 }; byte Ethernet::buffer[700]; static uint32_t timer; const char website[] PROGMEM = "82.223.11.159"; static byte server_ip[] = { 82,223,11,...
by Vassilis
Wed Feb 14, 2018 4:04 pm
Forum: Libraries & Hardware
Topic: ENC28J60 +php crash on stm32f103ve
Replies: 10
Views: 184

Re: ENC28J60 +php crash on stm32f103ve

Code: Select all

Pinging 82.223.11.159 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 82.223.11.159:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
by Vassilis
Wed Feb 14, 2018 3:16 pm
Forum: Libraries & Hardware
Topic: ENC28J60 +php crash on stm32f103ve
Replies: 10
Views: 184

Re: ENC28J60 +php crash on stm32f103ve

@ramgc The IP in your sketch (82.221.41.158) is not functional (at least to me). Please provide us with a sketch that uses a valid public IP or public domain name.
by Vassilis
Tue Feb 13, 2018 2:59 pm
Forum: General discussion
Topic: Access the PC register through ST-Link V2?
Replies: 11
Views: 194

Re: Access the PC register through ST-Link V2?

- Which operating system do you use ?
- Do you produce the .ELF file in Arduino IDE ?

Maybe the Ultra Simple STM32 Debugger can help you
by Vassilis
Mon Feb 12, 2018 9:42 am
Forum: USB to Serial adaptors
Topic: FT232H - setting DTR high or to input
Replies: 5
Views: 119

Re: FT232H - setting DTR high or to input

Under windows, you can use the termite software to set/clear the DTR output.
Click on DTR icon as it is seen on the picture.
termite.jpg
termite.jpg (84.34 KiB) Viewed 96 times
by Vassilis
Sun Feb 11, 2018 2:10 am
Forum: Code snipplets
Topic: Example for MCP4921 (or MCP4922) 12-bit DAC chips
Replies: 2
Views: 143

Re: Example for MCP4921 (or MCP4922) 12-bit DAC chips

Thanks dannyf for your suggestions. Personally, I am not really interested in DDS. I wrote that sample code because @stm32user asked me how to use the MCP4921 with STM32F103 MCU.
by Vassilis
Sat Feb 10, 2018 11:35 am
Forum: Custom design boards
Topic: STM32-UNO(ARMDuino)
Replies: 9
Views: 197

Re: STM32-UNO(ARMDuino)

Very nice, well done ! One small thing to notice: If you want to use any analog pin (A0-A5) as digital output, the maximum current you can get is 3.3v / 12000 ohm = 0.000275 Amp that is not enough to light an LED. Moreover, the Amp loss through the R11, R13,..,R21 to the GND is 3.3V / 18000 = 0.18 m...
by Vassilis
Sun Feb 04, 2018 8:08 pm
Forum: General discussion
Topic: [Solved] Compile Bin and HEX
Replies: 2
Views: 94

Re: Compile Bin and HEX

Nice but there is no need to add too many lines in platform.txt file just add these too lines at the # compiler variables compiler.elf2hex.bin.flags=-O binary compiler.elf2hex.hex.flags=-O ihex Replace the lines: ## Create hex recipe.objcopy.hex.pattern="{compiler.path}{compiler.elf2hex.cmd}" {compi...
by Vassilis
Sat Feb 03, 2018 3:39 pm
Forum: Libraries & Hardware
Topic: Stm32f103C8 External Dac
Replies: 22
Views: 601

Re: Stm32f103C8 External Dac

Example sketch for using the 12-bit MCP4921 DAC
viewtopic.php?f=18&t=3187&p=40871#p40871