Page 30 of 30 FirstFirst ... 2021222324252627282930
Results 291 to 297 of 297

Thread: Everything You need to know about your M4 ATX

  1. #291
    Newbie
    Join Date
    Jan 2013
    Posts
    15
    I'm sure: connected it to usb and ran the mini-box software, it stated 2.1 while I tried to program firmware 2.4

    Can someone post a picture of their ICSP so I can compare mine?

    Here's a picture of mine, don't mind the missing insulation, I soldered it to test so I havn't insulated anything yet. It's smaller then the original, but I ran out of pcb connections are solid and I've made some other schematics latetly, they've all been working..

    Ohh and brown / earth is connected to the DB9-F casing for ground, also tried it with all grounds connected to pin 2 of the icsp side of the board, but I guess that wil give me a floating ground rather then a closed loop, right?

    All components checked out with my multimeter, the capacitor that needs to be between 22-100pF are both 66pF.



    Last edited by sanscorp; 09-01-2014 at 12:56 AM.

  2. #292
    Maximum Bitrate Mickz's Avatar
    Join Date
    Sep 2009
    Location
    Australia
    Posts
    835
    Unless Minibox software shows you a full HEX dump from the PIC (which it won't over USB) - not the SW revision or other data - as certain locations can be read protected you may still be trying to read a code (READ) protected device. I designed an advanced programmer 10 years ago that I used until recently when the PIC3 programmer from Microchip came out at a very low cost so I can't help with the layout at this stage.

    If I misunderstood you then please ignore this post.
    GA-Z77N-WIFI, i5-2400S, 8GB, Intel 520 128GB SSD, M4-ATX Modified, 2 Rev Cams, 2 Web Cams
    8" 16:9 TRANSFLECTIVE, Win8-64, Dual GPS RX and Garmin PC + Odyssey Nav, FM-DAB+, BB-Rec
    T-Screen HVAC control, custom microcontrollers, code and FE. CarPC Project

  3. #293
    Newbie
    Join Date
    Jan 2013
    Posts
    15
    Well, I've read that the minibox SW shows the firmware version, but I (they) can be mistaken.

    How do I bypass/overrule the protection with Winpic?
    Supposedly you can return the unit to minibox to have the firmware updated, that's fine when you live in the USA, I live in the Netherlands and shipping back and forth will cost me about as much as a new unit.

    I tried to read only, I got back only 0FFF (which also shows when the M4-ATX is not connected and thus, in my eyes, represent blank / no data.
    I also tried to write the new firmware, it "hangs" after a few seconds, let it run for about half an hour and then aborted (forced winpic to close via taskmgr)

    If I can believe winpic, the device is recognized.

    Will this do me any good?
    http://www.ebay.nl/itm/New-USB-PIC-K...9656a94&_uhb=1
    Last edited by sanscorp; 09-01-2014 at 04:14 AM.

  4. #294
    Maximum Bitrate Mickz's Avatar
    Join Date
    Sep 2009
    Location
    Australia
    Posts
    835
    This is hard to diagnose over a forum. I don't know how much knowledge you have of Micro Processor programming.

    The timing of the Programming lines, the voltage on the programming control pin and timing of that are just a number of thing that can cause you read back junk, all 0 or other values. Even the length of wires (capacitance between wires) between the PIC programming port and programmer can make the process fail.

    A code protected PIC only means you can't read the HEX data back to reverse engineer the code, it can still be programmed, however if it's programmed with the configuration bits set to code protect you can't verify the programming - there are ways around this and they are programmer and control SW dependant.

    The hex file on a small PIC with a relatively short hex file should only take a few seconds to program - once again programming algorithm / programmer dependant. If you tried to program it and it still works then the programmer is not putting the PIC into programming mode and not erasing it. Assuming you have the data control lines (TR/TX) pins on the PIC the correct way around and MCLR is available on the Header then check the voltage on this pin as you try to read/program it (should be around 13v for some PIC's) and the PIC will not go into programming mode if this is incorrect or timing is wrong.

    That link you posted did not work for me.
    GA-Z77N-WIFI, i5-2400S, 8GB, Intel 520 128GB SSD, M4-ATX Modified, 2 Rev Cams, 2 Web Cams
    8" 16:9 TRANSFLECTIVE, Win8-64, Dual GPS RX and Garmin PC + Odyssey Nav, FM-DAB+, BB-Rec
    T-Screen HVAC control, custom microcontrollers, code and FE. CarPC Project

  5. #295
    Newbie
    Join Date
    Jan 2013
    Posts
    15
    This is my first attempt ever Just finished the ICSP on the first post.
    I have no need to reverse engineer the code just yet, but it's something I'd like to do sometime with my speedo on my bike.
    Also don't know much about circuits or components, I'm just starting to explore and I do like it (tinkering, soldering, trying etc.)

    I used a Cat5e cable for wiring the DB9-F to the board and allready cut the wire in half from where I started, it's now approx. 20cm long.
    The other end is less then 3cm long. I just now also tried an USB to serial converter, that didn't work either

    The link I posted is to an K150 programmer on ebay, for about 9 dollars, the description says it can program the 2450 (M4-ATX) and other PIC I would like to program shortly for a speedohealer.
    "USB PIC K150 Automatic Develop Microcontroller Programmer ICSP + Cable" $ 9,11 incl. free shipping.

    Will try to find out which pin is what and look at the specs of the PIC18F2450 to confirm the pinout stated in the first post.
    It would be nice to get it working as I can't really troubleshoot with my lack of knowledge.
    Last edited by sanscorp; 09-01-2014 at 05:33 AM.

  6. #296
    Maximum Bitrate Mickz's Avatar
    Join Date
    Sep 2009
    Location
    Australia
    Posts
    835
    Looking at the description of the K150 it should do the job.

    The ICSP header interface is not a serial protocol so a USB to serial convertors can not be connected to it. Simply put, a code protected PIC normally has to be erased before it can be reprogramed or read. A Cat5 cable has twisted pairs, make sure none of the wires are twisted. This is mainly applicable between the ICSP header and the programmer - RS232 to USB interface is normally not a problem.

    Best of luck with the project.
    GA-Z77N-WIFI, i5-2400S, 8GB, Intel 520 128GB SSD, M4-ATX Modified, 2 Rev Cams, 2 Web Cams
    8" 16:9 TRANSFLECTIVE, Win8-64, Dual GPS RX and Garmin PC + Odyssey Nav, FM-DAB+, BB-Rec
    T-Screen HVAC control, custom microcontrollers, code and FE. CarPC Project

  7. #297
    Newbie
    Join Date
    Jan 2013
    Posts
    15
    I finally succeeded to update the firmware.
    The error you get back is from the config that didn't write, possibly write protect on.

    otherwise, I can still access the M4-ATX via the USB port so I think all is fine.
    I'm now running firmware 2.4 according to the HEX I have.

    I got my programmer working according to this schematic (NOTE that PGM is not needed for the PIC chip!)


    and used all 100uF capacitors.
    I could read the PIC18F2450, saved the original firmware first just in case.

    I also succesfully wrote a PIC16F88 for another project and that board is running just fine.
    So I can rule out hardware as far as the error goes.

    The correct pinout for the M4-ATX is:

    Pin 1 being the pin closest to the J5 mark on the PCB (nearest to the dipswitch).
    M4-ATX - PIC18F2450
    1 - pin 1 / VPP
    2 - pin 19 / VSS
    3 - pin 20 / VDD
    4 - pin 28 / PGD
    5 - pin 27 / PGC



    Attached if the 2.4 HEX, unzip with winrar of winzip.M4ATX_2 ver 2.4 2010_oct_29.zip
    Good luck!

Similar Threads

  1. M4 ATX USB connection
    By Arby in forum M4-ATX
    Replies: 24
    Last Post: 08-10-2009, 09:24 PM
  2. M4 ATX Turn On Problem
    By Fox_Mulder in forum Power Supplies
    Replies: 26
    Last Post: 12-31-2008, 07:43 AM
  3. miniITX power supply for ATX motherboard?
    By uldics in forum Power Supplies
    Replies: 4
    Last Post: 09-26-2007, 12:17 PM
  4. Replies: 13
    Last Post: 07-19-2007, 01:57 PM
  5. morex 80wpsu and reg ATX cable dilema!!
    By surfy in forum Power Supplies
    Replies: 1
    Last Post: 08-16-2005, 08:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •