Particle P1 Manual de usuario

3
3
3
4
4
4
5
5
6
6
7
8
9
9
9
10
10
10
11
11
11
12
13
15
15
15
15
16
18
18
18
19
20
20
20
20
20
21
21
21
22
Functionaldescription
OVERVIEW
FEATURES
Interfaces
BLOCKDIAGRAM
POWER
RF
FCCAPPROVEDANTENNAS
PERIPHERALSANDGPIO
RGBLED,SETUPANDRESETBUTTON
JTAGANDSWD
EXTERNALCOEXISTENCEINTERFACE
MemoryMap
STM32F205RGY6FLASHLAYOUTOVERVIEW
DCTLAYOUT
MEMORYMAP(COMMON)
MEMORYMAP(MODULARFIRMWARE-DEFAULT)
MEMORYMAP(MONOLITHICFIRMWARE-OPTIONAL)
Pinandbuttondefinition
PINMARKINGS
PINDESCRIPTION
PINOUTDIAGRAM
COMPLETEP1MODULEPINLISTING
Technicalspecification
ABSOLUTEMAXIMUMRATINGS
RECOMMENDEDOPERATINGCONDITIONS
WI-FISPECIFICATIONS
I/OCHARACTERISTICS
Mechanicalspecifications
OVERALLDIMENSIONS
P1MODULEDIMENSIONS
P1MODULERECOMMENDEDPCBLANDPATTERN
P1ReferenceDesignSchematic
SCHEMATIC-USB
SCHEMATIC-POWER
SCHEMATIC-USERI/O
SCHEMATIC-P1WI-FIMODULE
P1ReferenceDesignLayout
P1REFERENCEDESIGNTOPLAYER(GTL)
P1REFERENCEDESIGNBOTTOMLAYER(GBL)
Recommendedsolderreflowprofile

23
24
25
25
25
25
26
27
28
30
31
32
Orderinginformation
Qualificationandapprovals
Producthandling
TAPEANDREELINFO
MOISTURESENSITIVITYLEVELS
ESDPRECAUTIONS
Defaultsettings
Glossary
FCCICCEWarningsandEndProductLabelingRequirements
Revisionhistory
KnownErrata
Contact

Functionaldescription
TheP1isParticle'stinyWi-FimodulethatcontainsboththeBroadcomWi-Fichipanda
reprogrammableSTM32F205RGY632-bitARMCortex-M3microcontroller.TheP1comespreloaded
withParticlefirmwarelibraries,justlikeourdevkits,andit'sdesignedtosimplifyyourtransitionfrom
prototypetoproduction.TheP1isthePØ'sbigbrother;it'sabitbiggerandatadmoreexpensive,but
itincludessomeextraflashandanantennaandu.FLconnectoronboard.Particleprovidesfree
accesstoParticleCloudforprototyping.PaidtiersofParticleCloudstartwhenyoucreateaproduct
withmorethan25devices.
ParticleP1Wi-Fimodule
BroadcomBCM43362Wi-Fichip
802.11b/g/nWi-Fi
STM32F205RGY6120MhzARMCortexM3
1MBflash,128KBRAM
1MBexternalSPIflash(MX25L8006E)
IntegratedPCBantenna
Integratedu.FLconnectorforexternalantenna
IntegratedRFswitch
25Mixed-signalGPIOandadvancedperipherals
Opensourcedesign
Real-timeoperatingsystem(FreeRTOS)
SoftAPsetup
FCC,CEandICcertified
OVERVIEW
FEATURES

Interfaces
PowertotheP1issuppliedvia3differentinputs:VBAT_WL(pin2&3),VDDIO_3V3_WL(pin5),
VDD_3V3(pin26&27).Optionally+3.3VmaybesuppliedtoVBAT_MICRO(pin38)fordataretention
inlowpowersleepmodes.Eachoftheseinputsalsorequiresa0.1uFand10uFceramicdecoupling
capacitor,locatedascloseaspossibletothepin(seeFig1).Thevoltageshouldberegulatedbetween
3.0VDCand3.6VDC.(PleaserefertoAbsoluteMaximumRatingsformoreinfo).
Typicalaveragecurrentconsumptionis80mAwith5V@inputoftherecommendedSMPSpower
supplywithWi-Fion.Deepsleepquiescentcurrentistypically80uA(PleaserefertoRecommended
OperatingConditionsformoreinfo).WhenpoweringtheP1makesurethepowersupplycanhandle
600mAcontinuous.Ifalesserpowersupplyisprovided,peakcurrentsdrawnfromtheP1when
transmittingandreceivingwillresultinvoltagesagattheinputwhichmaycauseasystembrown
outorintermittentoperation.
Warning:WhenpoweringtheP1fromlongwires,careshouldbetakentoprotectagainstdamaging
voltagetransientsifusingthesameregulatorasisusedonthePhoton.FromtheRichtekdatasheet:
Whenaceramiccapacitorisusedattheinputandthepowerissuppliedbyawalladapterthroughlong
wires,aloadstepattheoutputcaninduceringingattheinput,VIN.Atbest,thisringingcancoupletothe
outputandbemistakenasloopinstability.Atworst,asuddeninrushofcurrentthroughthelongwirescan
potentiallycauseavoltagespikeatVINlargeenoughtodamagethepart.
Toavoidthesevoltagespikes,keepinputwiringasshortaspossible.Iflongwiresareunavoidable,it
isadvisabletoadda5.1VzenerdiodeorsimilartransientsuppressiondevicefromVINtoGND.
Anothertechniqueisaddingmorecapacitancetotheinputusinganelectrolyticcapacitor.Please
refertoAN-88byLinearforagooddiscussiononthistopic.
BLOCKDIAGRAM
POWER

Fig.1Recommendedpowerconnectionswithdecouplingcapacitors.
TheRFsectionoftheP1includesanon-boardPCBtraceantennaandau.FLconnectorwhichallows
theusertoconnectanexternalantenna.ThesetwoantennaoutputsareselectableviaauserAPI,
madepossiblebyanintegratedRFswitch.
ThedefaultselectedantennawillbethePCBantenna.
TheareasurroundingthePCBantennaonthecarrierPCBshouldbefreeofgroundplanesandsignal
tracesformaximumWi-Fiperformance.
AntennaType Manufacturer MFG.Part# Gain
Dipoleantenna LumenRadio 104-1001 2.15dBi
PCBAntenna Included - -
RF
FCCAPPROVEDANTENNAS

TheP1modulehastonofcapabilityinasupersmallfootprint,withanalog,digitaland
communicationinterfaces.
Note:P1pinnameswillbepreservedastheyarenamedintheUSIdatasheet,howeverforthescope
ofthisdatasheetwewillalsorefertothemastheirPhotonandcodeequivalents,i.e.D7insteadof
MICRO_JTAG_TMSandA2insteadofMICRO_GPIO_13.Thiswillhelptosimplifydescriptions,while
providingaquickreferenceforcodethatcanbewrittenfortheP1suchas intvalue=
analogRead(A2);
Peripheral
Type Qty
Input(I)/
Output(O)
FT[1]/
3V3[2]
Digital 24 I/O FT/3V3
Analog(ADC) 13 I 3V3
Analog(DAC) 2 O 3V3
SPI 2 I/O 3V3
I2S 1 I/O 3V3
I2C 1 I/O FT
CAN 1 I/O 3V3[4]
USB 1 I/O 3V3
PWM 12[3] O 3V3
Notes:
[1]FT=5.0Vtolerantpins.AllpinsexceptA3andDACare5Vtolerant(whennotinanalogmode).If
usedasa5Vinputthepull-up/pull-downresistormustbedisabled.
[2]3V3=3.3Vmaxpins.
[3]PWMisavailableonD0,D1,D2,D3,A4,A5,WKP,RX,TX,P1S0,P1S1,P1S6withacaveat:PWMtimer
peripheralisduplicatedontwopins(A5/D2)and(A4/D3)for10totalindependentPWMoutputs.For
example:PWMmaybeusedonA5whileD2isusedasaGPIO,orD2asaPWMwhileA5isusedasan
analoginput.HoweverA5andD2cannotbeusedasindependentlycontrolledPWMoutputsatthe
sametime.P1S6requiresSystemFeatureWi-FiPowersaveClocktobedisabled.SeeSystemFeatures
inFirmwareReference.
[4]Technicallythesepinsare5.0Vtolerant,butsinceyouwouldn'toperatethemwitha5.0V
transceiverit'spropertoclassifythemas3.3V.
WhenusingtheP1module,itisveryimportanttorememberthatyourdevicemusthaveanRGBLED
toshowtheusertheconnectivitystatus.AlsorequiredisaSETUPandRESETbuttontoentervarious
DeviceModes.BydefaulttheRGBLEDoutputsareconfiguredforaCommonAnodetypeofLED.
ThesecomponentsshouldbewiredaccordingtotheP1ReferenceDesign-UserI/O.RGBpinsmay
beaccessedincodeas:RGBR,RGBGandRGBB.
PERIPHERALSANDGPIO
RGBLED,SETUPANDRESETBUTTON

PinD3throughD7areJTAGinterfacepins.ThesecanbeusedtoreprogramyourP1bootloaderor
userfirmwareimagewithstandardJTAGtoolssuchastheST-Linkv2,J-Link,R-Link,OLIMEXARM-
USB-TINI-H,andalsotheFTDI-basedParticleJTAGProgrammer.Ifyouareshortonavailablepins,
youmayalsouseSWDmodewhichrequireslessconnections.
Photon
Pin JTAG SWD
STM32F205RGY6
Pin
P1Pin
# P1PinName
Default
Internal[1]
D7 JTAG_TMS SWD/SWDIO PA13 54 MICRO_JTAG_TMS ~40kpull-up
D6 JTAG_TCK CLK/SWCLK PA14 55 MICRO_JTAG_TCK ~40kpull-down
D5 JTAG_TDI PA15 53 MICRO_JTAG_TDI ~40kpull-up
D4 JTAG_TDO PB3 52 MICRO_JTAG_TDO Floating
D3 JTAG_TRST PB4 51 MICRO_JTAG_TRSTN ~40kpull-up
3V3 Power Power
GND Ground Ground
RST Reset Reset
Notes:[1]DefaultstateafterresetforashortperiodoftimebeforethesepinsarerestoredtoGPIO(if
JTAGdebuggingisnotrequired,i.e. USE_SWD_JTAG=y isnotspecifiedonthecommandline.)
Astandard20-pin0.1"shroudedmaleJTAGinterfaceconnectorshouldbewiredasfollows:
(clickto
stopsquinting)
JTAGANDSWD

TheP1supportscoexistencewithBluetoothandotherexternalradiosviathreepinsavailableonthe
P1module.
Whentworadiosoccupyingthesamefrequencybandareusedinthesamesystem,suchasWi-Fi
andBluetooth,acoexistenceinterfacecanbeusedtocoordinatetransmitactivity,toensureoptimal
performancebyarbitratingconflictsbetweenthetworadios.
P1PinName
P1Pin
# I/O Description
BTCX_RF_ACTIVE 57 I Coexistencesignal:Bluetoothisactive
BTCX_STATUS 56 I Coexistencesignal:BluetoothprioritystatusandTX/RXdirection
BTCX_TXCONF 58 O OutputgivingBluetoothpermissiontoTX
WhenthesepinsareprogrammedtobeusedasaBluetoothcoexistenceinterface,they'resetas
highimpedanceonpowerupandreset.
EXTERNALCOEXISTENCEINTERFACE

MemoryMap
Bootloader(16KB)
DCT1(16KB),storesWi-Ficredentials,keys,mfginfo,systemflags,etc..
DCT2(16KB),swapareaforDCT1
EEPROMemulationbank1(16KB)
EEPROMemulationbank2(64KB)
Systemfirmware(512KB)[256KBWi-Fi/comms+256KBhal/platform/services]
Factorybackup,OTAbackupanduserapplication(384KB)[3x128KB]
TheDCTareaofflashmemoryhasbeenmappedtoaseparateDFUmediadevicesothatwecan
incrementallyupdatetheapplicationdata.Thisallowsoneitem(say,serverpublickey)tobe
updatedwithouterasingtheotheritems.
DCTlayoutin
release/stable
foundhereinfirmware.
Region Offset Size
systemflags 0 32
version 32 2
deviceprivatekey 34 1216
devicepublickey 1250 384
ipconfig 1634 120
featureflags 1754 4
countrycode 1758 4
claimcode 1762 63
claimed 1825 1
ssidprefix 1826 26
devicecode 1852 6
versionstring 1858 32
dnsresolve 1890 128
reserved1 2018 64
serverpublickey 2082 768
padding 2850 2
flashmodules 2852 100
productstore 2952 24
antennaselection 2976 1
cloudtransport 2977 1
altdevicepublickey 2978 128
altdeviceprivatekey 3106 192
altserverpublickey 3298 192
altserveraddress 3490 128
deviceid 3618 12
radioflags 3630 1
modebuttonmirror 3631 32
STM32F205RGY6FLASHLAYOUTOVERVIEW
DCTLAYOUT

ledmirror 3663 96
ledtheme 3759 64
reserved2 3823 435
Note:Writing0xFFtooffset34(DEFAULT)or3106(ALTERNATE)willcausethedevicetore-generatea
newprivatekeyonthenextboot.AlternatekeysarecurrentlyunsupportedontheP1butareusedon
theElectronasUDP/ECCkeys.Youshouldnotneedtousethisfeatureunlessyourkeysare
corrupted.
//RegenerateDefaultKeys
echo-e"\xFF">fillbyte&&dfu-util-d2b04:d00a-a1-s34-Dfillbyte
//RegenerateAlternateKeys
echo-e"\xFF">fillbyte&&dfu-util-d2b04:d00a-a1-s3106-D
fillbyte
Region StartAddress EndAddress Size
Bootloader 0x8000000 0x8004000 16KB
DCT1 0x8004000 0x8008000 16KB
DCT2 0x8008000 0x800C000 16KB
EEPROM1 0x800C000 0x8010000 16KB
EEPROM2 0x8010000 0x8020000 64KB
Region StartAddress EndAddress Size
SystemPart1 0x8020000 0x8060000 256KB
SystemPart2 0x8060000 0x80A0000 256KB
UserPart 0x80A0000 0x80C0000 128KB
OTABackup 0x80C0000 0x80E0000 128KB
FactoryBackup 0x80E0000 0x8100000 128KB
Region StartAddress EndAddress Size
Firmware 0x8020000 0x8080000 384KB
FactoryReset 0x8080000 0x80E0000 384KB
Unused(factoryresetmodular) 0x80E0000 0x8100000 128KB
MEMORYMAP(COMMON)
MEMORYMAP(MODULARFIRMWARE-DEFAULT)
MEMORYMAP(MONOLITHICFIRMWARE-OPTIONAL)
Tabla de contenidos

















